Detect and Don't Redirect Search Bots
If you are doing something like a client-side (front-end) redirect with Javascript you may want to still allow Google and other search bots to index the page's content so this snippet is a way to detect if the userAgency is a bot or not, and if they are don't redirect them.
Tags
Industries
Creators
Share this item
Have feedback or a question related to this item? Drop us some feedback!
Curated:
2.28.23
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Subscribe for updates
Get updates on the latest curated resources and be the first to hear of new features.
One more step!
Check your email for a confirmation to ensure we got it right.
Oops! Something went wrong while submitting the form.
Creative portfolios, auth tools, and a URL code trick.
We hope you are having a stellar week! Here are this weeks featured inspiration, code and resources.
Featured inspo
Bike in Portugal
Ramona Bizbac
Teletech
Circuit