Bot User-Agent Spoofing

The cluster centers on discussions about web crawlers and scrapers impersonating legitimate bots like Googlebot via user agents to evade detection, along with methods to identify and block such bots.

➡️ Stable 1.5x Security
2,582
Comments
20
Years Active
5
Top Authors
#6141
Topic ID

Activity Over Time

2007
2
2008
22
2009
32
2010
47
2011
79
2012
87
2013
84
2014
83
2015
81
2016
62
2017
146
2018
87
2019
120
2020
187
2021
183
2022
169
2023
238
2024
245
2025
590
2026
38

Keywords

JS ND AI HN archive.ph cloudflare.com GET anthropic.com IP OTOH bots bot user agent agent user scrapers crawler analytics archive detect

Sample Comments

CDRdude Jan 19, 2026 View on HN

Isn’t it somewhat likely that a lot of shady crawlers pretend to be a google bot with their user agent?

majewsky Jan 19, 2017 View on HN

Did you try a Googlebot or Baidubot user-agent?

IshKebab Jun 13, 2018 View on HN

This seems like a reasonable thing to do to detect bots.

blackcats Jan 31, 2021 View on HN

Yes. Bots do it all the time. GoogleBot, AhrefsBot, etc.

mythrwy Jun 1, 2017 View on HN

Meh, maybe they are catering to their main user base, the bot scrapers?

walls Jan 21, 2026 View on HN

A huge amount of the web is only crawlable with a googlebot user-agent and specific source IPs.

callamdelaney Apr 9, 2023 View on HN

Yeah I think something somewhere is saying 'damn, that's a suspect User Agent, must be a bot'.. like really?

qjz Sep 11, 2011 View on HN

How can you tell it works? How do you know the bot owners aren't returning to crawl those parts with User-Agent strings that impersonate ordinary users?

WolfRazu Nov 24, 2018 View on HN

This sounds to me like someone is simply using GoogleBot in their request headers whilst probing.

shadowangel Dec 19, 2025 View on HN

So if the bots use a google useragent it avoids the links?