Detect and Don't Redirect Search Bots

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.

Have feedback or a question related to this item? Drop us some feedback!

Curated: 
2.28.23

Similar items

Items
2767
Search

Church Canvas

3.4.25

Flowblock Webflow App

3.4.25

FC88

3.4.25

GRAPHICHUNTERS

3.4.25

Human After All

3.2.25

Siena Film Foundation

3.2.25

HockeyStack

3.2.25

Tambien Course

€195
2.27.25

Austin Stone Community Church

2.26.25

Image to ASCII Effect

2.26.25

Paper

2.26.25

Sui Overflow 2025 Hackathon

2.26.25

Arcol

2.26.25

Mark Clennon

2.25.25

Reel talk: the power of branded motion design

2.25.25

Matrix

2.24.25

Fountn

2.24.25

Bleibtgleich

2.24.25

Form Connector Webflow App

2.24.25

Print for Figma plugin

2.24.25

Tripletta

2.24.25

Making Software

2.24.25

Instant

2.22.25

Documenso

2.22.25

Bummer, no results

Try a different search/filter combo, or drop us some feedback if there is something missing you would love to see!

Reset filters

Subscribe for updates

Get updates on the latest curated resources and be the first to hear of new features.

Subscribe