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
Creator
Share this item
Have feedback or a question related to this item? Drop us some feedback!
Curated:
2.28.23
Subscribe for updates
Get updates on the latest curated resources and be the first to hear of new features.
SubscribeStyle, type, and motion in harmony, architectural web glory, AI your brand
When AI becomes your copilot, make sure you still know how to fly the plane.
Featured inspo
Refero Styles
Daniel Sun
21Oaks
Artemii Lebedev