# How to detect bot clicks: seven checks you can run on your own data

> Seven practical checks to detect bot clicks on your links and ads: user agents, published IP ranges, DNS checks, headers, timing, floods and behavior.

Source: https://hoplytic.com/blog/detect-bot-clicks · Updated 2026-11-28 · Hoplytic Guides

Video version (67 seconds): [https://hoplytic.com/video/detect-bot-clicks.mp4](https://hoplytic.com/video/detect-bot-clicks.mp4)

## Video transcript

Your link had two thousand hits yesterday. How many were people?

First, does the user agent name a bot, or is it empty? Second, is it a HEAD request or a prefetch? Neither is a person clicking. Third, a claimed crawler must come from its operator's published IP ranges. Fourth, more than thirty clicks a minute from one address is a flood.

Anyone can write Googlebot in a user agent. Check the address against published ranges, or with reverse and forward DNS.

Data-center, VPN and Tor addresses, missing headers and rapid repeats are suspicious, not proof. Flag them, and judge by placement.

Don't block everything you flag. Suspicious clicks include real buyers. And don't block ad review crawlers or link previews.

Hoplytic runs the first six checks on every click, after the redirect. Some label a click a bot; others only flag it as suspicious. Bots are labeled and never charged. Blocking stays off unless you turn it on for a link.

The full guide is right below. Hoplytic: ad tracking made simple.

## Key points

- Start with the cheap, certain checks: user agents that name themselves, HEAD requests and prefetches.
- Verify claimed crawlers with published IP ranges or a reverse and forward DNS lookup, because user agents are easy to fake.
- Floods and repeat clicks from one address within seconds are strong signs of automation.
- Data-center addresses and missing headers are suspicious, not proof: count them, flag them, compare placements.
- Detection is for labeling and evidence; blocking at the link is rarely worth the risk.

Your link had 2,310 hits yesterday. How many were people? You can get a good answer from data you already have: the request itself.

**Short answer:** check every click in this order: does the user agent name a bot, is it a HEAD or prefetch request, is a claimed crawler really from its operator's published IP ranges, does it send normal browser headers, and is it part of a flood from one address. Label what fails as bots. Then flag data-center, VPN and Tor clicks as suspicious, and judge those by placement, not one by one.

## What you need

Each check uses fields from the click request: time, IP address, user agent, request method, headers, and which link was hit. A tracker records these for you. If you only have web server logs, the default combined log format has the address, time, method, status and user agent, which covers most of the checks below.

## Check 1: the user agent names itself

Many bots are honest. Their user agent says what they are:

`Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.1; +https://openai.com/gptbot)
python-requests/2.31.0
curl/8.4.0
WhatsApp/2.23.20.0`
Don't maintain your own regex. Use a maintained open-source list, such as the isbot package for JavaScript, which matches thousands of known bot user agents. Also treat an empty user agent as a bot: every browser sends one.

## Check 2: HEAD requests and prefetches

A real click is a GET request. A HEAD request asks for headers only, which link checkers and scanners do and browsers never do on a click. Prefetches and preview fetches often carry a header like `Sec-Purpose: prefetch` or `Purpose: prefetch`. Neither is a person clicking. Label them.

## Check 3: verify claimed crawlers

Anyone can put "Googlebot" in a user agent. Real crawlers can be checked two ways:

- **Published IP ranges.** Google, Bing, OpenAI, Apple, DuckDuckGo, Perplexity, Common Crawl and others publish the address ranges their crawlers use, as JSON files. If the address is inside, it's the real crawler. If the user agent says Googlebot but the address isn't in Google's ranges, it's an impostor, which is a stronger bot signal still.

- **Reverse and forward DNS.** Google documents this method for its crawlers:

`$ host 66.249.66.1
1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.
$ host crawl-66-249-66-1.googlebot.com
crawl-66-249-66-1.googlebot.com has address 66.249.66.1`
The name must end in a domain the operator documents, and the forward lookup must return the same address. DNS lookups are slow, so do this when reviewing data, not inside a redirect.

The IP-range method also catches crawlers that don't announce themselves. Google's crawlers sometimes use ordinary browser user agents; their addresses still give them away.

## Check 4: browser headers

A real browser sends a set of headers with every request, including `Accept-Language`. Simple scripts often send a browser user agent but forget the rest. A request that claims to be Chrome but sends no language header is suspicious. Don't call it a bot on this alone: some privacy tools strip headers too.

## Check 5: floods and rapid repeats

Count clicks per address per minute. People don't click the same link 30 times a minute. Two thresholds work well in practice:

| Pattern | Label |
| --- | --- |
| More than 30 clicks in one minute from one address | Bot (flood) |
| 3 or more clicks on the same link within 10 seconds from one address | Suspicious (could be an impatient person) |

For IPv6, group by the /64 block rather than the full address, because one device can rotate through many addresses in its block.

## Check 6: where the address lives

Look up who owns the address (its ASN). Home broadband and mobile providers are where people are. Cloud and hosting providers are where scripts run, but also where VPNs run, so this is a suspicious flag, not a verdict. Tor exit nodes, which the Tor Project lists publicly, are in the same category. Two published lists are strong enough to act on: Spamhaus DROP (networks hijacked or run by criminals) is a bot signal, while lists of recent attack sources such as FireHOL level 1 are better used as a suspicious flag. Details on cloud ranges are in [datacenter traffic detection](https://hoplytic.com/blog/datacenter-traffic), and on masked traffic in [VPN and proxy clicks](https://hoplytic.com/blog/vpn-proxy-clicks).

## Check 7: behavior after the click

Some bots pass every request-level check. Their behavior gives them away over many clicks:

- Placements with thousands of people and no sales, while similar placements convert.

- All clicks from one device and OS version.

- Clicks at perfectly even intervals, or only at one minute past each hour.

- On your landing page: zero scroll and the same two-second visit, every time.

These are pattern signals. Use them to decide which placements to examine and cut, as covered in [click fraud detection](https://hoplytic.com/blog/click-fraud-detection).

## What not to do with the results

- **Don't block everything you flag.** Suspicious clicks include real buyers. Label them and compare placements.

- **Don't block ad review crawlers or link previews,** even though they are bots. See [ad review crawlers](https://hoplytic.com/blog/ad-review-crawlers).

- **Don't rely on analytics alone.** GA4 excludes known bots automatically, but it only sees visits where its tag loads, not hits on your redirect links.

## Doing it automatically

Running these checks by hand works for an audit. For every click, every day, it belongs in your tracker. Hoplytic automates checks 1 to 6 on every click after the redirect has been sent, so visitors never wait. Some of them label a click a bot; others only flag it as suspicious: named bots via the isbot list, HEAD requests, prefetches, headless browsers, missing user agents, crawler IP ranges published by Google, Bing, OpenAI, Apple and others, Spamhaus DROP, and floods are labeled bots and never charged; data-center and hosting networks, Tor, FireHOL level 1, missing language headers and rapid repeats are flagged suspicious and counted as people. Each link shows bots and suspicious clicks by reason. Blocking stays off unless you turn it on for a link, and then it only uses published lists. See [Clicks, bots and suspicious traffic](https://hoplytic.com/help/clicks-and-bots).

## Questions people ask

### How can I tell if clicks are from bots?

Check the user agent for crawler names, verify any claimed crawler against its operator's published IP ranges, look for HEAD requests, prefetch headers and missing browser headers, and look for many clicks from one address in a short time. Clicks that pass all of that but come from data centers are suspicious rather than proven bots.

### Does Google Analytics filter bot clicks?

GA4 automatically excludes traffic from known bots and spiders, and you can't turn that off. But it only sees visits where its tag runs, so it won't show bot hits on your redirect links that never reached a page.

### How do I verify a Googlebot visit?

Either check that the IP address falls in the Googlebot ranges Google publishes, or run a reverse DNS lookup on the address, check that the name ends in googlebot.com or google.com, then run a forward lookup on that name and confirm it returns the same address.
