# StopBots: all articles > Plain answers on stopping bots, account takeover, card testing, scraping and multi-accounting. 100 guides for developers and fraud teams, also served as Markdown. # What is a bot? > A bot is a program that uses websites, apps or APIs automatically, without a person driving each step. It sends the same kind of requests a browser sends. Some bots are useful, like search engine crawlers and uptime monitors. Others log in with stolen passwords, copy content, buy limited stock or fill forms with spam. Category: Bot basics. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/what-is-a-bot/ Most site owners underestimate how many bots they get because their analytics tool hides them. A JavaScript analytics tag only counts visitors that run JavaScript, and many bots only download the HTML. Server and CDN logs show every request, and on many sites a large share of those come from software. Public estimates of that share are covered in [how much internet traffic is bots](https://stopbots.io/learn/bots/how-much-internet-traffic-is-bots.md). ## What kinds of bots visit websites? Bots differ by who runs them and what they want from your site: - Search engine crawlers, such as Googlebot and Bingbot, fetch pages so they can appear in search results. - AI crawlers collect pages to train models or to answer questions in AI search. AI agents act for one user, for example to compare prices or fill a form. See [what AI crawlers are](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md). - Monitoring and preview bots check uptime, read RSS feeds and build the link previews you see in chat apps. - Scrapers copy prices, listings, articles or contact details for use elsewhere. - Account attack bots try stolen passwords on login forms or create fake accounts in bulk. - Purchase bots buy limited stock such as tickets and sneakers, or test stolen card numbers with small payments. - Spam bots post junk to contact forms, comments and reviews. ## How does a website know a request came from a bot? A server never sees a person. It sees an IP address, a TLS handshake, HTTP headers and the order of requests. If the page runs JavaScript, it can also read browser properties and input events such as mouse movement and typing. Honest bots name themselves in the `User-Agent` header and link to a page that explains them. A Googlebot request in an nginx or Apache access log looks like this: ```txt 66.249.66.1 - - [24/Nov/2026:10:15:32 +0000] "GET /pricing HTTP/1.1" 200 5123 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" ``` Bots that want to avoid blocks send the user agent of a normal Chrome or Safari browser instead. The user agent is plain text the client chooses, so it proves nothing on its own. Detection compares what the client claims with what it shows. A request that says Chrome but completes the TLS handshake like a Python library, or a browser that clicks a button 40 milliseconds after the page loads, is a bot whatever its header says. [How bot detection works](https://stopbots.io/learn/detection/how-bot-detection-works.md) covers these signals in order. To see which self-declared bots reach your site, count user agents in a standard combined-format access log: ```bash awk -F'"' '{print $6}' access.log | sort | uniq -c | sort -rn | head -20 ``` Names containing `bot`, `crawler` or `spider` are the honest ones. The rest of the list is browsers, real or claimed. ## What is the difference between a bot and a botnet? A bot is one program. It can run on a laptop, a rented cloud server or thousands of machines at once. A botnet is a set of devices that malware has taken over, such as home routers, cameras and PCs, which one operator controls remotely. Botnets give bad bots many home IP addresses to send traffic from. [What a botnet is](https://stopbots.io/learn/bots/what-is-a-botnet.md) explains how they are built and rented out. ## Are bots legal? Writing and running a bot is legal in most countries. Search engines, price monitors and test suites are all bots. The law looks at what the bot does and how. Logging in to accounts with stolen credentials is unauthorised access under computer misuse laws in most places. In the United States, the [BOTS Act of 2016](https://www.congress.gov/bill/114th-congress/senate-bill/3183) targets software that gets around the purchase limits and security measures of ticket sellers. Scraping sits in a grey area that depends on the data, the site's terms and the country, which is covered in [is web scraping legal](https://stopbots.io/learn/scraping/is-web-scraping-legal.md). These rules vary by jurisdiction, and nothing here is legal advice. Whether a bot is welcome on your site is a separate question from whether it is legal. That decision, and how to check a bot's identity before you trust it, is in [good bots vs bad bots](https://stopbots.io/learn/bots/good-bots-vs-bad-bots.md). ## Common questions ### Is a chatbot the same as a web bot? No. A chatbot talks with people in a chat window. A web bot visits sites or calls APIs on its own. The two meet when an AI assistant browses pages for a user, which is why sites now see AI agents in their logs. ### Can a bot look exactly like a human visitor? It can come close. A bot that drives a real browser through a home IP address passes most single checks, so detection has to combine many weak signals from the network, the device and behaviour over the whole visit. ### Are bots illegal? Writing or running a bot is legal in most countries. What the bot does can be illegal, for example breaking into accounts or getting around ticket purchase limits. The answer depends on the jurisdiction, and this is not legal advice. ## Related - [Good bots vs bad bots: how to tell them apart](https://stopbots.io/learn/bots/good-bots-vs-bad-bots.md) - [What is bot traffic?](https://stopbots.io/learn/bots/what-is-bot-traffic.md) - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) - [AI agents vs bots: how to treat agentic traffic](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) # Good bots vs bad bots: how to tell them apart > A good bot says who runs it, can prove it, follows your robots.txt and gives something back, like search traffic or uptime alerts. A bad bot hides or fakes its identity and works against you or your users, for example by stuffing stolen passwords, scraping prices or buying limited stock. Verify identity first, then judge behaviour. Category: Bot basics. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/good-bots-vs-bad-bots/ Most sites start with the user agent, and it is the weakest evidence available. Any script can put `Googlebot` in its `User-Agent` header, and many do, because sites often wave Googlebot through. Telling good bots from bad ones comes down to two questions: can the bot prove who runs it, and does it behave the way its operator says it will? ## What counts as a good bot? A good bot is one you would allow if you knew who ran it. It names itself in the user agent with a link to documentation, and its operator publishes a way to verify it. It follows the [Robots Exclusion Protocol (RFC 9309)](https://www.rfc-editor.org/rfc/rfc9309), crawls at a rate your server can handle, and gives you something back. Common examples: - Search engine crawlers such as Googlebot, Bingbot and Applebot - Uptime and performance monitors you set up yourself - Feed readers and the link preview fetchers used by chat and social apps - Partners you integrate with, such as payment, shipping or marketplace feeds ## What makes a bot bad? A bad bot works against you or your users, or takes far more than it returns. It usually claims to be a normal browser, rotates IP addresses and goes straight to the pages that hold value: login, signup, search, product APIs and checkout. The OWASP project lists 21 types, including credential stuffing, card testing, scalping, scraping, fake account creation and spam. [OWASP automated threats](https://stopbots.io/learn/bots/owasp-automated-threats.md) explains each one. ## Which bots sit in the grey zone? Some bots are honest about who they are but still cost you more than they give: - SEO tool crawlers that index your links for other companies' customers - AI crawlers that collect pages for model training or AI answers - Price comparison and aggregator bots that copy your catalogue - Account aggregators that log in to users' accounts for them, common in finance These are policy decisions. [Should you block AI crawlers](https://stopbots.io/learn/scraping/should-you-block-ai-crawlers.md) walks through the trade-offs for the largest group. Keep in mind that robots.txt is a request. [Robots.txt does not stop scraping](https://stopbots.io/learn/scraping/does-robots-txt-stop-scraping.md) by bots that ignore it. ## How do you verify that a bot is who it claims to be? Operators of large crawlers give you at least one of three ways to check. The first is reverse DNS followed by forward DNS. Look up the hostname for the IP, check that it belongs to the operator's domain, then look up that hostname and confirm it returns the same IP. The example below follows [Google's verification guide](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot): ```bash $ 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 ``` For Bingbot the hostname must end in `search.msn.com`, as [Bing describes](https://blogs.bing.com/webmaster/2012/08/31/how-to-verify-that-bingbot-is-bingbot). The second is a published IP list. Google publishes its crawler ranges as JSON, and Bing publishes [bingbot.json](https://www.bing.com/toolbox/bingbot.json). Fetch the lists daily and match against them, which is faster than a DNS lookup per request. The third is a cryptographic signature. [Web Bot Auth](https://developers.cloudflare.com/bots/reference/bot-verification/web-bot-auth/) lets a bot sign its requests with [HTTP Message Signatures (RFC 9421)](https://www.rfc-editor.org/rfc/rfc9421), using `Signature`, `Signature-Input` and `Signature-Agent` headers. The site checks the signature against the operator's published keys. It is newer, and fewer bots support it, but it works when the bot's IPs change often. Cache every result. DNS lookups on each request slow your site and can be abused to flood your resolver. [How to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md) has code for each method. ## What should you do with each kind of bot? Use the table as a starting point and adjust it per endpoint. | What you see | Likely meaning | Starting action | |---|---|---| | Known crawler name, identity verifies | The real crawler | Allow, apply robots.txt and a generous rate limit | | Known crawler name, verification fails | An impostor using a trusted name | Block | | Unknown bot name with a contact URL | A small crawler, tool or research project | Allow on public pages, rate limit, review monthly | | Browser user agent plus automation signals | A bot hiding as a person | Challenge or block, strictest on login, signup and checkout | Watch the cost of each allowed bot as well. A verified bot that sends thousands of requests a minute to your search endpoint can still be rate limited. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) scores requests at the edge and exposes a verified bot flag (`cf.client.bot`) you can use in rules, a fit if your site already sits behind Cloudflare. - [CrowdSec](https://www.crowdsec.net/) is an open-source agent that reads your logs, blocks IPs that match attack patterns and shares a community blocklist, which is enough for many small sites. - [Kairal Agent Traffic Intelligence](https://www.kairal.io/agent-traffic-intelligence/) shows which AI agents and crawlers reach your site and lets you control them, alongside Kairal's bot detection on login, signup and checkout. - [Cloudflare Radar](https://radar.cloudflare.com/) publishes free data on bot traffic trends and on verified bots, useful for looking up an unfamiliar crawler name. ## Common questions ### Is Googlebot a good bot? Yes, when the request really comes from Google. Google's verification guide also covers its special-case crawlers, such as AdsBot, and its user-triggered fetchers. These resolve to google.com or googleusercontent.com hostnames in place of googlebot.com and have their own published IP lists. ### Are AI crawlers good bots or bad bots? It depends on your business. The large AI companies publish their crawler names and many respect robots.txt, so they pass the identity test. Whether their use of your content is a fair trade is a policy decision for you, and you can allow some and block others. ### Should I block all bots? No. Blocking search crawlers removes you from search results, and blocking monitors or payment and shipping partners breaks your own services. Block by behaviour and failed verification, and keep an allowlist of the bots you rely on. ## Related - [How to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md) - [What is a bot?](https://stopbots.io/learn/bots/what-is-a-bot.md) - [Should you block AI crawlers?](https://stopbots.io/learn/scraping/should-you-block-ai-crawlers.md) - [What is bot management?](https://stopbots.io/learn/bots/what-is-bot-management.md) # What is bot traffic? > Bot traffic is any visit, request or action on a website or app that software makes instead of a person. It includes search engine crawlers and uptime monitors as well as scrapers, spam bots, fake ad clicks and bots that attack logins or checkouts. Some of it is wanted. The rest skews analytics, raises costs and enables fraud. Category: Bot basics. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/what-is-bot-traffic/ Where bot traffic shows up depends on how the bot works. A script that only downloads HTML appears in your server and CDN logs but never in a JavaScript analytics tool, because it never runs the tag. A bot that drives a full browser runs the tag and appears as sessions, ad clicks, signups or orders. To see all of it you need both sources. ## What causes bot traffic? Someone points automation at a site because the site has something they want: - Search engine crawlers and SEO tools index your pages so others can find them. - Uptime monitors, price trackers and stock checkers fetch the same pages again and again. - Scrapers copy prices, listings, articles and contact data, and AI crawlers collect text for models. - Credential stuffing bots try stolen passwords, and vulnerability scanners look for weak spots. - Scalper bots buy limited stock, and card testing bots try stolen cards with small payments. - Click bots drain ad budgets, and spam bots fill forms and comments. Part of your bot traffic is your own: test suites, monitoring, staging crawls and partner integrations. Label it first so it does not hide the rest. ## Is bot traffic bad? Some of it is the cost of being online. Blocking search crawlers takes you out of search results. How much of your traffic is bots varies widely by industry, as [public estimates of bot traffic](https://stopbots.io/learn/bots/how-much-internet-traffic-is-bots.md) show. The harmful part costs money in four ways. It distorts analytics, so conversion rates and A/B tests mislead you. It adds load and bandwidth, which you pay for. It wastes ad spend when bots click paid ads, which is [click fraud](https://stopbots.io/learn/ad-fraud/what-is-click-fraud.md). And at login and checkout it turns into account takeover and payment fraud. ## How do you spot bot traffic on a website? In analytics, look for patterns no real audience produces: - A spike of sessions from one city, one network or one referrer, with no campaign behind it - Sessions with zero engagement time and one page view, all landing on the same URL - Screen resolutions, browser versions or languages that do not match your usual audience - Traffic arriving at fixed intervals, such as every 10 minutes through the night GA4 removes [traffic from known bots](https://support.google.com/analytics/answer/9888366), identified through Google research and the IAB list, and bots that never run JavaScript never reach it. What still shows up in your reports is mostly bots that run your tag and that GA4 does not recognise. [Identifying bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) covers filters and segments, and Kairal has a guide on [cleaning bot traffic out of Google Analytics](https://www.kairal.io/blog/bot-traffic-google-analytics/). In server logs, look at request rates and at what clients fail to load. These commands work on a standard combined-format nginx or Apache log: ```bash # Requests per IP, top 20 awk '{print $1}' access.log | sort | uniq -c | sort -rn | head -20 # IPs that request pages but never load CSS or JavaScript grep -vE '\.(css|js|png|jpe?g|svg|woff2?)' access.log | awk '{print $1}' | sort -u > page_ips.txt grep -E '\.(css|js)' access.log | awk '{print $1}' | sort -u > asset_ips.txt comm -23 page_ips.txt asset_ips.txt | head -50 ``` The second check only works if your origin serves the CSS and JavaScript. If a CDN serves them, run it on the CDN logs. Other signs in logs: requests for `/wp-login.php` or `/.env` on a site that has neither, hundreds of IPs sending the same user agent to the same login URL, and user agents that claim to be Googlebot from IPs that fail [Google's verification](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot). ## Bot traffic vs human traffic: what is different? People arrive from somewhere, such as a search, a link or an email, and wander. They load images and scripts, scroll at uneven speeds, pause and make typing mistakes. Their device, timezone and language agree with each other and with their IP location. Bots go straight to the target URL, often with no referrer. They repeat the same path with machine timing. Many come from cloud hosting IP ranges, and the better ones route through home IP addresses but give themselves away with details that contradict each other, such as a Chrome user agent on a connection whose TLS handshake matches a scripting library. [How to detect bot traffic](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) turns these differences into checks you can run. ## Common questions ### Does GA4 filter out bot traffic? Partly. GA4 removes known bots and spiders using Google research and the IAB/ABC International Spiders and Bots List. You cannot turn this off or see how much it removed, and bots that hide their identity are still counted. ### What is AI bot traffic? It is traffic from AI crawlers that collect pages for model training or AI search, and from AI agents that browse sites for a user. The large AI operators publish their crawler names, so this traffic is easier to label than bots that pretend to be browsers. ### Is bot traffic illegal? Sending automated requests to a public website is not illegal in itself. Specific uses can be, such as unauthorised access to accounts or fake clicks that defraud advertisers. The rules depend on the country and the contract, and this is not legal advice. ## Related - [How to detect bot traffic on your website](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) - [How to identify and filter bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) - [How much internet traffic is bots?](https://stopbots.io/learn/bots/how-much-internet-traffic-is-bots.md) - [What is click fraud?](https://stopbots.io/learn/ad-fraud/what-is-click-fraud.md) # How much internet traffic is bots? > Public estimates put bots at roughly two fifths to just over half of web traffic. The Imperva (Thales) Bad Bot Report 2026 says bots made 53% of the traffic it saw in 2025, with 40% from bad bots. Cloudflare and Akamai publish different shares because they see different sites, count different units and define bots differently. Category: Bot basics. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/how-much-internet-traffic-is-bots/ Every figure below comes from a company that sells bot protection and counts traffic on its own network. Each one sees a different set of websites and counts different things, which explains most of the gap between reports. Quote them with the year the data covers and what was measured. ## What do the main reports say? | Source | Data covers | What was counted | Bots | Bad bots | |---|---|---|---|---| | [Imperva (Thales) Bad Bot Report 2026](https://www.imperva.com/resources/resource-library/reports/2026-bad-bot-report/) | 2025 | Web traffic Thales observed | 53% | 40% | | Same report, figures for the prior year | 2024 | Web traffic Thales observed | 51% | 37% | | [Cloudflare Radar 2025 Year in Review](https://blog.cloudflare.com/radar-2025-year-in-review/) | 2025 | Requests for HTML pages only | 44% non-AI bots on 2 December, plus AI bots at 4.2% on average over the year | Not split | | [Akamai State of the Internet](https://www.akamai.com/newsroom/press-release/bots-compose-42-percent-of-web-traffic-nearly-two-thirds-are-malicious), June 2024 | Period not stated in the release | Overall web traffic Akamai observed | 42% | 65% of the bots | The Imperva figures split as 47% human, 40% bad bots and 13% good bots, a group that includes search engines and AI crawlers. The report says 2025 was the second year in a row that bots outnumbered humans in its data. Cloudflare's numbers move through the year. Non-AI bots began 2025 at about half of HTML requests. By 2 December, humans made 47% and non-AI bots 44%. AI bots averaged 4.2% of HTML requests across the year, and Googlebot alone made 4.5%. Cloudflare notes these shares differ from the live charts on [Cloudflare Radar](https://radar.cloudflare.com/), which count requests for all content types. Akamai's 42% comes from a report on scraping in ecommerce. 65% of 42% works out to about 27% of all traffic coming from malicious bots by Akamai's count. ## Why do bot traffic estimates differ? Four things drive the gap. The first is what each vendor can see. A vendor only measures traffic to its own customers. Sites that buy bot protection are often the ones bots target most, such as banks, airlines, ticket sellers and retailers, which pushes the share up. A CDN with millions of small sites sees a different mix from a security vendor with large enterprises. The second is the unit. A person loading one page makes dozens of requests for images, scripts and API calls. A scraper often fetches the HTML and nothing else. Counting all requests gives human visits more weight, while counting HTML pages gives bots more weight. Sessions and unique visitors give different answers again. The third is what counts as a bot. Search crawlers, uptime monitors, partner API clients and AI agents acting for a user are all automated. Some reports count them as bots, some split them out, and some leave API traffic out entirely. The fourth is detection. A report can only count the bots its system catches. Bots that pass as people are counted as people. The Thales report says its AI bot figures cover detectable traffic only, and that much AI-driven automation stays unverified. ## How much of your own traffic is bots? Your share depends on your industry, what you sell and how much attention you get, so a global figure tells you little. Measure it. A first pass takes an afternoon: 1. Compare page requests in your server or CDN logs with page views in your analytics for the same day. The gap is clients that never ran your analytics tag, mostly bots plus some users with ad blockers. 2. Split logged page requests into declared bots and everything else. 3. Check the declared bots. Verify the big crawler names, since impostors are common. [Good bots vs bad bots](https://stopbots.io/learn/bots/good-bots-vs-bad-bots.md) shows how. 4. Look at your highest-value endpoints separately. Login, signup, search and checkout often carry a much higher bot share than the site average. This command counts HTML page requests from declared bots against all other clients in a combined-format access log: ```bash awk -F'"' '$2 ~ /^GET / && $2 !~ /\.(css|js|png|jpe?g|gif|svg|ico|woff2?)/ { ua = tolower($6) if (ua ~ /bot|crawl|spider|slurp/) declared++; else other++ } END { print "declared bots:", declared, "other clients:", other }' access.log ``` The "other clients" group still contains bots that claim to be browsers. Finding those takes the signals in [how to detect bot traffic](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md). If you use GA4, [filtering bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) shows what it already removes. The AI part of the mix is covered in [what AI crawlers are](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md). For a reliable figure, run a bot detection tool in log-only mode for two weeks before you block anything. Two weeks is a starting point: it covers weekday and weekend patterns and at least one release cycle on most sites. ## Common questions ### Is there more bot traffic than human traffic on the internet? In Imperva's data, yes: bots passed half of traffic in 2024 and again in 2025. Cloudflare's count of HTML page requests in late 2025 had humans slightly ahead. Both can be right, because they measure different networks in different units. ### Which industries get the most bot attacks? In the Imperva (Thales) 2026 report, financial services was the most targeted industry, with 24% of bot attacks and 46% of account takeover attacks. That is a share of attacks, which is a different measure from the share of traffic. ### Where can I see live bot traffic statistics? Cloudflare Radar publishes free, continuously updated charts of human and bot traffic, by country and over time. Imperva publishes its Bad Bot Report once a year. ## Related - [What is bot traffic?](https://stopbots.io/learn/bots/what-is-bot-traffic.md) - [How to detect bot traffic on your website](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) - [What are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) - [How to identify and filter bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) # Does bot traffic affect SEO? > Bot visits do not lower your rankings just by landing on your pages. The damage is indirect. Heavy bot load slows your server, so Googlebot crawls less. Scrapers republish your content elsewhere. And badly tuned bot blocking can send errors or challenges to Googlebot, which can drop pages from Google's index. Category: Bot basics. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/does-bot-traffic-affect-seo/ Search engines rank pages from what their own crawlers fetch. Your analytics numbers are a report for you, so a flood of fake sessions or a jump in bounce rate does not reach Google's ranking systems. Google decides how much of your site to crawl from how fast it answers and which status codes it returns, so anything that slows your server or changes its responses to Googlebot changes what gets crawled and indexed. ## How do bots slow down Googlebot? Google sets a crawl capacity limit for each site. Its [crawl budget guide](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget) says that if the site slows down or responds with `5xx` server errors, "the limit goes down and Google crawls less." When bots eat your CPU, database connections or bandwidth, response times rise for every client, Googlebot included. Google says crawl budget mostly matters for large sites, with over a million unique pages, and for sites with over 10,000 pages that change daily. Smaller sites still feel it when bot load causes timeouts or errors. Check the [Crawl Stats report](https://support.google.com/webmasters/answer/9679690) in Search Console. Rising average response time, host availability problems or a drop in crawl requests that lines up with bot spikes in your logs points to this problem. ## Can bot protection block Googlebot? Yes, and bot protection that treats Googlebot as a bad bot does more SEO damage than most bots. Google's page on [HTTP status codes and crawling](https://developers.google.com/search/docs/crawling-indexing/http-network-errors) explains why: - All `4xx` codes except `429` tell Google the content does not exist, and already indexed URLs are removed. A WAF rule that returns `403` to Googlebot takes those pages out of search. - `429`, `500` and `503` make Google slow down temporarily. URLs that return server errors for a long time are eventually dropped too. - Google says not to use `401` or `403` to limit crawl rate. Challenges cause the same problem. Crawlers do not solve CAPTCHAs, so Googlebot receives your challenge page in place of your content. Before any block or challenge rule goes live, exclude crawlers you have verified. Cloudflare exposes a verified bot flag, `cf.client.bot`, in its rules. On your own servers, check IPs with reverse and forward DNS or Google's published IP list, as shown in [how to verify Googlebot](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md). Then measure how often your rules hit real crawlers and real users, which is covered in [false positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md). When you need to shed load, return `429` with a short limit. This nginx config limits each IP and answers excess requests with `429`, which Google treats as a signal to slow down: ```nginx # in the http block limit_req_zone $binary_remote_addr zone=pages:10m rate=5r/s; server { location / { limit_req zone=pages burst=20 nodelay; limit_req_status 429; } } ``` Five requests per second with a burst of 20 is a starting point. Raise it if your logs show verified crawlers or real users hitting the limit. ## Can scrapers outrank your content? Google's [spam policies](https://developers.google.com/search/docs/essentials/spam-policies) treat republishing content from other sites without adding original value as spam. In most cases the original ranks and the copy does not. Problems start when a scraper copies new pages faster than Google crawls yours. Make your version easy to find first. Submit an XML sitemap with accurate `lastmod` dates, add self-referencing canonical tags (a scraper that copies your HTML wholesale may keep them), and slow scrapers at the edge. [How to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md) covers the blocking side. ## Do spam bots affect SEO? Comment and forum spam bots post links on your pages that point to junk sites. Mark user-submitted links with `rel="ugc"` or `rel="nofollow"` and moderate new posts. Contact form spam does not touch SEO, but it wastes staff time. Referral spam, fake visits that show a spam domain as the referrer in your analytics, distorts your reports and nothing else. Filter it there. ## Does bot traffic affect Core Web Vitals? Not directly. The Core Web Vitals data Google uses comes from the Chrome UX Report, which only includes Chrome users who have turned on usage statistics reporting and history sync, as its [methodology page](https://developer.chrome.com/docs/crux/methodology) lists. Scripted bots rarely meet those conditions. Bots affect the numbers through your server. If bot load pushes up time to first byte for real visitors, their Largest Contentful Paint gets worse, and that is what Chrome records. Heavy AI crawler traffic is one cause on content sites. [How to block AI crawlers](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) has robots.txt, Cloudflare and nginx options. ## Common questions ### Can competitors use bots to hurt my SEO? Fake visits on their own do nothing to rankings. The real risks are load that slows your site for crawlers and users, and spam links pointed at your pages. Rate limits and bot protection deal with the first, and Search Console's disavow tool exists for links you cannot get removed. ### Does blocking AI crawlers affect my Google rankings? Blocking the Google-Extended token in robots.txt does not. Google states that Google-Extended does not affect inclusion or ranking in Google Search. Blocking Googlebot itself would remove you from search. ### Should I block SEO tool crawlers like AhrefsBot or SemrushBot? Blocking them has no effect on how Google ranks you, since they belong to separate companies. Block or slow them in robots.txt if their load costs you more than the data you get from those tools. ## Related - [How to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md) - [How to block AI crawlers: robots.txt, Cloudflare and nginx](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) - [How to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md) - [False positives in bot detection: how to measure and reduce them](https://stopbots.io/learn/detection/bot-detection-false-positives.md) # What is bot management? > Bot management is the software and rules a site uses to find automated traffic, decide which bots to allow and act on the rest. It scores each request or session from network, device and behaviour signals, lets verified crawlers through, and applies actions such as logging, rate limiting, challenging or blocking, set per endpoint. Category: Bot basics. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/what-is-bot-management/ Bot management became its own category because older controls each catch only one slice of automation. An IP blocklist misses bots that send traffic through home IP addresses. A CAPTCHA adds friction for every user to stop some bots. A web application firewall looks for attack payloads, and a credential stuffing bot sends none: each request is a valid login form with a real email and password. ## What does a bot management system do? It works in three stages. Detection collects signals. Network signals include the IP address, its ASN (the network that owns it, such as a home ISP or a cloud host), IP reputation and the TLS fingerprint, a summary of how the client opens an encrypted connection. Device signals come from JavaScript or a mobile SDK and describe the browser, screen, graphics and fonts. Behaviour signals cover timing, navigation and input such as mouse movement and typing. History links what the same device, IP or account did before. [How bot detection works](https://stopbots.io/learn/detection/how-bot-detection-works.md) covers each signal type. Classification turns signals into a verdict. Most products put traffic into groups such as verified good bots, AI crawlers and agents, likely automated, likely human and unknown, often with a numeric score. Response applies an action you configure. The usual options are allow, log only, rate limit, challenge, block, serve cached or reduced content, or flag the event for fraud review. Good setups apply different actions per endpoint, so a likely bot on a blog post is logged while the same score on `/login` is challenged. ## Bot management vs WAF, rate limiting and CAPTCHA | Control | What it looks at | What it stops | What it misses | |---|---|---|---| | WAF | Request content: paths, parameters, payloads | SQL injection, known exploits, crude bad user agents | Bots sending valid logins, searches and orders | | Rate limiting | Request counts per IP, key or path | Floods from a few sources | Slow attacks spread across thousands of IPs | | CAPTCHA | One interaction on one form | Simple scripts on that form | Solving services, every unprotected endpoint | | Bot management | The session: network, device, behaviour, history | Automation that looks valid request by request | Depends on signal quality and needs tuning | Most sites run several of these together. [WAF vs bot management](https://stopbots.io/learn/implementation/waf-vs-bot-management.md) and [what rate limiting stops and misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) go into each pairing. ## Where does bot management run? There are four common places, and many products use more than one: - At the CDN or edge, where it sees every request before your servers do and can block cheaply. - At a reverse proxy in front of your application, such as nginx or HAProxy, for sites without a CDN. - Inside the application, through an API call at sensitive moments such as login or payment, where it can use business context like whether the password was correct. - In the client, as a JavaScript tag or mobile SDK that collects device and behaviour signals and sends them to the decision engine. Edge-only setups see the network well but not the device. Client signals see the device but can be tampered with. Combining both gives the engine facts to cross-check, and how a product does this is one of the questions in [choosing bot protection software](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md). ## How does a bot score work? A bot score is a number that rates how likely a request is to come from automation. [Cloudflare's bot score](https://developers.cloudflare.com/bots/concepts/bot-score/) runs from 1 to 99. A score of 1 means Cloudflare is quite certain the request is automated, and 2 to 29 counts as likely automated. On an Enterprise plan with Bot Management, a custom rule can challenge likely bots on login only: ```txt (http.request.uri.path eq "/login" and http.request.method eq "POST" and cf.bot_management.score lt 30 and not cf.bot_management.verified_bot) ``` Pair that expression with a Managed Challenge action. Treat 30 as a starting threshold and adjust it after you review what it catches. Other products use different scales and names, but the pattern is the same: a score, an endpoint and an action. ## How do you roll out bot management without blocking customers? 1. List the endpoints that carry value and the abuse each attracts: login, signup, password reset, search, coupon fields, checkout and APIs. 2. Run in log-only or preview mode for at least two weeks. Record what the system would have done. 3. Review a sample of would-be blocks by hand. Count how many were real customers. [Measuring false positives](https://stopbots.io/learn/detection/bot-detection-false-positives.md) explains how. 4. Enforce on the most abused endpoint first. Use invisible or managed challenges before hard blocks, since every puzzle costs conversions. Kairal explains [why friction-based defences can stop more users than attackers](https://www.kairal.io/blog/why-friction-based-defenses-stop-more-users-than-attackers/). 5. Decide what happens when the bot check times out. Failing open keeps checkout working during an outage but lets bots through for that window. ## Common questions ### What is the difference between Cloudflare Bot Management and Turnstile? Turnstile is a challenge widget you place on a page or form, and your server validates the token it returns. Bot Management scores every request that passes through Cloudflare and lets you write rules on that score. Turnstile has a free tier, while the Bot Management score requires an Enterprise plan. ### Is there open source bot management? There are open-source parts. CrowdSec and fail2ban block IPs from log patterns, Anubis adds a proof-of-work check, and the FingerprintJS library collects browser signals. Combining them into a score per session, and tuning it, is work you take on yourself. ### Do small websites need bot management? Many do not need a paid product. Rate limits, a challenge on forms and verified-crawler rules cover a small brochure site. The need grows once you have logins, paid signups, limited stock or a checkout that bots can abuse. ## Related - [WAF vs bot management: what is the difference?](https://stopbots.io/learn/implementation/waf-vs-bot-management.md) - [How to choose bot protection software](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md) - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) # What is a botnet? > A botnet is a group of internet-connected devices, such as home computers, routers, cameras and TV boxes, that malware has taken over and one operator controls remotely. The owners usually do not know. Operators use or rent botnets to flood sites with traffic, send spam, try stolen passwords and sell the devices' home IP addresses as proxies. Category: Bot basics. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/what-is-a-botnet/ A botnet changes what an attack looks like in your logs. One server sending thousands of requests is easy to rate limit. Thousands of home connections sending a few requests each are not, and every one of those IP addresses also carries a real household's traffic. ## How does a botnet work? An operator needs devices to infect, servers to control them and buyers who pay for their use. Infection starts with whatever is easiest. The Mirai botnet scanned the internet for home routers, network cameras and video recorders and logged in with "a short list of 62 common default usernames and passwords," according to a [CISA alert from 2016](https://www.cisa.gov/news-events/alerts/2016/10/14/heightened-ddos-threat-posed-mirai-and-other-botnets). Other botnets spread through pirated software, malicious app downloads and fake updates. Some devices are infected before anyone buys them. The FBI's [2025 warning about BADBOX 2.0](https://www.ic3.gov/PSA/2025/PSA250605) describes TV streaming devices, projectors, car infotainment systems and digital picture frames shipped with malicious software, or infected while installing required apps during setup. Control runs through command and control (C2) servers. Each infected device checks in, receives instructions and reports back. Some botnets use peer-to-peer designs, where infected devices pass commands to each other, so taking down one server does not stop them. Money comes from renting the botnet out. Buyers pay for an attack, a spam run or access to the devices' IP addresses, without ever touching the malware. ## What are botnets used for? - Distributed denial of service (DDoS) attacks flood a site until it slows or fails. Mirai hit the KrebsOnSecurity blog with traffic "exceeding 620 gigabits per second," as the same CISA alert reports. - Credential stuffing spreads stolen username and password pairs across thousands of IPs so per-IP limits never trigger. See [what credential stuffing is](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md). - Click fraud uses infected devices to load and click ads, or to run hidden browsers that fake page views. See [what click fraud is](https://stopbots.io/learn/ad-fraud/what-is-click-fraud.md). - Spam runs send email and fill comment sections and contact forms. - Residential proxy services sell the device's home IP address to others as a proxy exit. The US Justice Department dismantled [911 S5](https://www.justice.gov/archives/opa/pr/911-s5-botnet-dismantled-and-its-administrator-arrested-coordinated-international-operation), a residential proxy service built on hijacked computers, in May 2024. Google reported in January 2026 that the SDKs of the IPIDEA proxy network [helped add devices to the BadBox 2.0, Aisuru and Kimwolf botnets](https://cloud.google.com/blog/topics/threat-intelligence/disrupting-largest-residential-proxy-network). [What residential proxies are](https://stopbots.io/learn/bots/what-are-residential-proxies.md) explains that market. ## What does botnet traffic look like on a website? Per-IP numbers look normal. The pattern shows up when you group requests by something other than IP: - Many IPs, each sending a handful of requests to the same endpoint, often `/login`, `/signup` or a search API - IPs spread across consumer ISPs and mobile networks in many countries, in place of one cloud provider - The same user agent, TLS fingerprint or device fingerprint across hundreds of unrelated IPs - Bursts that start and stop at the same second across those IPs - High failure rates, such as most login attempts failing on accounts that do exist This query groups an hour of login requests by user agent and counts distinct IPs. It assumes a table of parsed access logs in PostgreSQL: ```sql SELECT user_agent, COUNT(DISTINCT client_ip) AS distinct_ips, COUNT(*) AS requests, ROUND(COUNT(*)::numeric / COUNT(DISTINCT client_ip), 1) AS requests_per_ip FROM access_logs WHERE path = '/login' AND method = 'POST' AND ts >= NOW() - INTERVAL '1 hour' GROUP BY user_agent ORDER BY distinct_ips DESC LIMIT 20; ``` A user agent with hundreds of distinct IPs and one to three requests per IP is worth a closer look. Replace `user_agent` with a TLS fingerprint such as JA4 if your logs carry one, since user agents are easy to vary. ## How do you defend against botnet traffic? Blocking botnet IPs one by one rarely works. Home IPs change owners, mobile networks share one IP across many customers, and the next wave arrives from new addresses. Per-IP rate limits fail for the same reason, as covered in [what rate limiting stops and misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md). Defend at the level of the session and the device. Rate limit per account, per device fingerprint and per endpoint as well as per IP. Challenge sessions that share a fingerprint with a known attack, even from a clean IP. Alert on failure-rate spikes at login and payment, which show up within minutes even when traffic volume barely moves. Give IP blocks a short expiry so you do not lock out the household that gets the address next. ## Common questions ### Is it illegal to run a botnet? Yes, in most countries. Taking control of other people's devices breaks computer misuse laws such as the US Computer Fraud and Abuse Act and the UK Computer Misuse Act, and EU Directive 2013/40/EU requires member states to criminalise attacks on information systems. This is general information, not legal advice. ### How do I know if my device is part of a botnet? The FBI's indicators for BADBOX 2.0 include unexplained or suspicious internet traffic, devices that require Google Play Protect to be disabled, generic streaming boxes sold as unlocked, and devices from brands you do not recognise. Keep firmware updated, and disconnect any device you suspect. ### What is the difference between a bot and a botnet? A bot is any program that acts automatically, and it can run on one rented server. A botnet is many hijacked devices working together. Many bad bots run on rented servers and never touch a botnet, though they may rent proxy IPs that come from one. ## Related - [What are residential proxies and why do bots use them?](https://stopbots.io/learn/bots/what-are-residential-proxies.md) - [What is credential stuffing?](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md) - [What is a bot?](https://stopbots.io/learn/bots/what-is-a-bot.md) - [Rate limiting for bots: what it stops and what it misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) # What are residential proxies and why do bots use them? > A residential proxy is a service that sends traffic out through an IP address belonging to someone's home internet connection. To the website, each request looks like it comes from an ordinary household on a consumer ISP. Bots use them to get past IP blocklists, per-IP rate limits and country checks, because blocking those addresses risks blocking real customers. Category: Bot basics. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/what-are-residential-proxies/ Every residential proxy IP belongs to a real household, and many of those households never agreed to share their connection. The address that carries a bot's login attempts at noon may carry the family's video calls in the evening. That overlap is why sites hesitate to block these IPs, and why bot operators pay for them. ## How do residential proxies work? The customer connects to the provider's gateway with a hostname, a port and credentials. The gateway forwards each request to an exit node, a device that runs the provider's proxy software in someone's home. The exit node opens the connection to the target site, so the site sees the home IP address and the ISP that owns it. Providers sell two modes. Rotating proxies give a new IP for each request or every few minutes. Sticky sessions keep the same IP for a set time, so a bot can finish a login or checkout from one address. Most providers also let the customer choose the country, and often the city or ISP. ## Where do residential proxy IPs come from? The supply comes from several sources, with very different levels of consent: - Some apps pay users to share their spare bandwidth, so the user at least knows something is running. - Other apps carry a proxy SDK the user never hears about. Google's threat intelligence team reported in January 2026 that the IPIDEA network's SDKs "surreptitiously enroll user devices," and found over 600 Android apps containing them, mostly ordinary utilities and games ([Google Cloud blog](https://cloud.google.com/blog/topics/threat-intelligence/disrupting-largest-residential-proxy-network)). - Free VPN apps can do the same. The FBI warned in March 2026 that free VPN services may enroll users' devices in a residential proxy network without consent ([IC3 PSA I-031226-PSA](https://www.ic3.gov/PSA/2026/PSA260312)). - Malware turns infected devices into exit nodes, and some devices ship already infected. The FBI's [BADBOX 2.0 warning](https://www.ic3.gov/PSA/2025/PSA250605) describes cheap streaming boxes and other home devices sold with malware that joins them to a botnet and to residential proxy services. The US Justice Department took down [911 S5](https://www.justice.gov/archives/opa/pr/911-s5-botnet-dismantled-and-its-administrator-arrested-coordinated-international-operation), a proxy service built on hijacked computers, in 2024. When proxies run on malware-infected devices, the proxy network and a [botnet](https://stopbots.io/learn/bots/what-is-a-botnet.md) are the same thing. ## Residential vs datacenter vs ISP vs mobile proxies | Type | Where the IP comes from | What an IP lookup shows | How hard to block | |---|---|---|---| | Datacenter | Cloud and hosting providers | A hosting ASN | Easy: few real shoppers browse from hosting ranges | | ISP (static residential) | IP ranges registered to an ISP but hosted on servers | An ISP ASN, but stable IPs in neat blocks | Medium: neighbouring IPs behave alike | | Residential | Home devices running proxy software | A consumer ISP | Hard: real households share the IPs | | Mobile | Phones and modems on mobile networks | A mobile carrier | Hardest: carriers put many customers behind one IP | Mobile carriers use carrier-grade NAT (CGNAT), which shares one public IP address across many subscribers. Blocking one mobile IP can block many real people at once. ## Why do bots use residential proxies? The FBI's March 2026 notice lists what criminals use them for: logging in to accounts with stolen credentials without triggering location alerts, rotating IPs to get around rate limits and lockouts, creating fake accounts, sending spam, and getting past purchase limits on goods such as concert tickets. All of these beat defences keyed on the IP. A [credential stuffing](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md) run can send each attempt from a different home IP in the victim's own country. A [ticket bot](https://stopbots.io/learn/scalping/how-ticket-bots-work.md) can look like thousands of separate fans. Per-IP rate limits never trigger, and the IPs carry no bad reputation because yesterday they carried a household's traffic. ## Are residential proxies legal? Buying access to a proxy service is legal in many countries, and businesses use them for ad verification and price monitoring. The legal questions are how the provider got its IPs, and what the customer does with them. Turning people's devices into proxies without their consent is a crime under computer misuse laws in most places, which is why 911 S5's administrator was arrested. Using any proxy to commit fraud is illegal whatever the proxy's source. The details depend on the jurisdiction, and this is not legal advice. ## What can a website still detect? The IP looks clean, so detection moves to everything around it: - IP intelligence feeds that track known proxy exit nodes, such as those from [Spur](https://spur.us/) or [IPQualityScore](https://www.ipqualityscore.com/), catch part of the traffic. - One device fingerprint or cookie appearing from many IPs within an hour is a strong sign of rotation. - The IP changing in the middle of a session, between loading the login page and submitting it, rarely happens to real users on home broadband. - Browser timezone and language that do not match the IP's location point to a relay. - A TLS or TCP fingerprint that contradicts the claimed device, such as an iPhone user agent with a TCP fingerprint typical of Windows, shows the request was rebuilt somewhere. Apply the response to the session that shows these signs: challenge it or step up verification. Give any IP block a short expiry. [How to detect residential proxies](https://stopbots.io/learn/detection/how-to-detect-residential-proxies.md) covers each signal in depth, and [antidetect browsers](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) explains the device side that operators pair with these proxies. ## Common questions ### What is the difference between a residential proxy and a VPN? A VPN sends your traffic through servers the VPN company runs in datacenters, so its IP ranges are known and easy to label. A residential proxy exits through other people's home connections, usually rotating across many households, which makes it far harder to tell apart from real users. ### Can residential proxies be detected? Not reliably from the IP address alone, since it is a real home connection. Detection works at the session level, by combining an IP intelligence feed with device and behaviour data your own site collects. ### Are residential proxies safe for the people whose devices are used? No. Strangers' traffic, including fraud and attacks, leaves from their IP address, which can get it blocked by services or pulled into investigations. The FBI advises people to check the devices on their home network and avoid free VPNs and apps from unofficial stores. ## Related - [How to detect residential proxies](https://stopbots.io/learn/detection/how-to-detect-residential-proxies.md) - [What is a botnet?](https://stopbots.io/learn/bots/what-is-a-botnet.md) - [What is an antidetect browser?](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) - [How modern bots are built: headless browsers and stealth](https://stopbots.io/learn/bots/how-modern-bots-are-built.md) # How modern bots are built: headless browsers and stealth > Most bots are assembled from stock parts: an HTTP client or a real browser, an automation framework such as Selenium, Puppeteer or Playwright, stealth patches that hide automation flags, a proxy network for IP addresses and a CAPTCHA solving service. Each layer solves one problem for the operator and leaves traces a site can check, mainly contradictions between layers. Category: Bot basics. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/how-modern-bots-are-built/ Operators use the cheapest layer that works against your site. If plain HTTP requests get through, they never pay for a browser. When a site starts checking browser signals, they add a layer, and each addition costs them money and leaves new traces for you. ## What are the layers of a bot? | Layer | What it does for the operator | What it leaves behind | |---|---|---| | HTTP client | Sends requests fast and cheaply, without a browser | Library TLS fingerprint, missing browser headers, no JavaScript | | Headless browser | Runs real page code | Server hardware: software graphics, few fonts, odd screen sizes | | Automation framework | Scripts clicks, typing and navigation | `navigator.webdriver`, injected helpers, machine-like input | | Stealth patches | Hides automation flags | Patched values that contradict each other | | Proxies | Supplies fresh IP addresses | IPs that change mid-session or disagree with the device | | CAPTCHA solving | Gets past puzzles | Solve times and token use that do not fit the visitor | ## HTTP clients The simplest bots send HTTP requests from a library in Python, Go or Node.js, or from curl. Most scrapers and API attacks start here. They often copy a Chrome user agent and nothing else, as in this typical script request: ```http GET /api/products?page=2 HTTP/1.1 Host: shop.example User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Accept: */* Accept-Encoding: gzip, deflate Connection: keep-alive ``` Real Chrome talks HTTP/2 to most HTTPS sites and sends `Accept-Language`, `sec-ch-ua` client hints and `Sec-Fetch-*` headers. This request has none of them. The TLS handshake gives the client away earlier still. A TLS fingerprint such as JA4, a short hash of the cipher suites, extensions and protocol versions the client offers, looks different for each library and browser. [TLS fingerprinting with JA3 and JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) explains how to log it. Scripts never fetch CSS or JavaScript, so cookies that page code would set are missing on the next request. Libraries that copy a browser's TLS handshake move the check to whether headers, HTTP/2 settings and behaviour match too. ## Headless browsers When a site needs JavaScript to work, operators run a real browser without a visible window. Chrome's [headless mode](https://developer.chrome.com/docs/chromium/headless) now shares its code with regular Chrome. Since Chrome 132 the old, separate implementation is only available as a standalone binary called `chrome-headless-shell`. Checks for features the old headless lacked catch less than they used to. What gives headless browsers away is the machine. Servers have no GPU, so WebGL reports a software renderer such as SwiftShader or llvmpipe. They have few fonts, no audio or video devices, a window exactly the size of the screen, and often a UTC clock with an IP in another country. This snippet collects the values worth sending to your server for comparison: ```js const gl = document.createElement('canvas').getContext('webgl'); const ext = gl && gl.getExtension('WEBGL_debug_renderer_info'); const signals = { webdriver: navigator.webdriver === true, renderer: ext ? gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) : gl && gl.getParameter(gl.RENDERER), cores: navigator.hardwareConcurrency, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, languages: navigator.languages, screen: [screen.width, screen.height], window: [window.outerWidth, window.outerHeight], }; ``` A software renderer next to a claim of many CPU cores, or a screen that matches no real monitor, is a server. [Detecting headless Chrome](https://stopbots.io/learn/detection/headless-browser-detection.md) goes further. ## Automation frameworks Selenium uses the W3C WebDriver protocol. Puppeteer uses the [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). Playwright uses the DevTools Protocol for Chromium and ships its own patched builds of Firefox and WebKit. Under automation, browsers set [`navigator.webdriver`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver) to `true`. In Chrome that happens with the `--enable-automation` or `--headless` flags. Frameworks also add helper code and bindings to the page, and remote debugging changes some browser behaviour in ways scripts can notice. Input is the other trace. Scripted clicks land on the exact centre of an element with no mouse movement before them, typing arrives at an even pace, and pages scroll in jumps. [Behavioural detection](https://stopbots.io/learn/detection/behavioral-bot-detection.md) measures this. ## Stealth patches Stealth plugins and patched browser builds overwrite the flags above, from `navigator.webdriver` to the WebGL renderer string and the user agent. [Antidetect browsers](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) take the same idea further and sell a fresh device profile per account. Each patch is a claim that has to agree with every other fact about the device. Patched properties often show up as functions that are not native code, or sit on the wrong object. A renderer string that names a desktop GPU while the drawing output matches a software renderer, a macOS user agent with a Linux font list, or a Chrome version that supports features from a different release all contradict themselves. Checking consistency across signals holds up better than hunting for single flags. ## Proxies Cloud servers have hosting IPs that are easy to label by ASN, so operators route traffic through [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) and mobile networks. The IP then looks clean, but the session does not: the address changes between page load and form submit, the browser timezone disagrees with the IP's country, or one device fingerprint appears from dozens of IPs in an hour. ## CAPTCHA solving services Solving services take the challenge from the bot, solve it with human workers or machine learning, and return a token for the bot to submit. [How CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) covers the business, and Kairal has a [technical breakdown of CAPTCHA solvers](https://www.kairal.io/blog/how-captcha-solvers-work/). The traces are in timing and context. Solve times cluster in a narrow band, challenges pass with no page interaction before them, and the token may have been solved from a different IP or device than the one that submits it. Challenges that bind the token to the session, and check it against the device that asked for it, turn that mismatch into a signal. ## Common questions ### Can websites detect Selenium and Playwright? Default setups are easy to spot, because they set navigator.webdriver and usually run on servers with no GPU and few fonts. Patched setups hide the obvious flags, so detection relies on contradictions between the browser, the device, the network and the visitor's behaviour. ### Is headless Chrome detectable? Usually, though old checks are fading. Looking for HeadlessChrome in the user agent only catches careless scripts, because operators override it. The machine the browser runs on, and how the session behaves, give away more than the browser build does. ### Are automation frameworks illegal? No. Selenium, Puppeteer and Playwright are testing tools that developers use every day. What matters legally is what the automation does on someone else's site, which depends on the site's terms and local law. ## Related - [How to detect headless Chrome and automated browsers](https://stopbots.io/learn/detection/headless-browser-detection.md) - [TLS fingerprinting for bot detection: JA3 and JA4 explained](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) - [What is an antidetect browser?](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) - [How CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) # OWASP automated threats: the 21 bot attacks in plain English > The OWASP Automated Threats to Web Applications project names 21 ways bots misuse normal website features, from OAT-001 Carding to OAT-021 Denial of Inventory. Each entry has an identifier, a definition and suggested countermeasures. Teams use the list to name attacks the same way, map them to their endpoints and check which defences cover each one. Category: Bot basics. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/bots/owasp-automated-threats/ Most of these attacks use features that work exactly as designed. A login form that accepts a correct password and a cart that holds stock have no bug for a scanner to find. The [OWASP project](https://owasp.org/www-project-automated-threats-to-web-applications/) built the list because these problems were missing from vulnerability lists such as the OWASP Top 10, and every vendor named them differently. The scope leaves out the exploitation of single vulnerabilities. ## What are the 21 OWASP automated threats? | ID | Threat | In plain English | |---|---|---| | OAT-001 | Carding | Testing stolen card details with many payment attempts | | OAT-002 | Token Cracking | Guessing coupon, voucher and discount codes in bulk | | OAT-003 | Cost-Inflation Fraud | Running up charges on paid services, such as API calls or ad clicks, so the attacker profits | | OAT-004 | Fingerprinting | Requests that reveal which software and versions run the site | | OAT-005 | Scalping | Buying limited goods, such as tickets, faster than people can | | OAT-006 | Expediting | Using automation to rush through slow processes for unfair gain | | OAT-007 | Credential Cracking | Guessing usernames and passwords | | OAT-008 | Credential Stuffing | Trying username and password pairs stolen elsewhere | | OAT-009 | CAPTCHA Defeat | Solving CAPTCHAs with software or human farms | | OAT-010 | Card Cracking | Guessing missing expiry dates and security codes for stolen cards | | OAT-011 | Scraping | Collecting content or data for use elsewhere | | OAT-012 | Cashing Out | Turning validated stolen cards or accounts into goods or money | | OAT-013 | Sniping | Acting at the last possible moment, as in auction bids | | OAT-014 | Vulnerability Scanning | Crawling and fuzzing the site to find security weaknesses | | OAT-015 | Denial of Service | Heavy use of normal features to make the site, or one user's account, unavailable | | OAT-016 | Skewing | Repeated clicks or submissions that distort a metric, such as votes or reviews | | OAT-017 | Spamming | Adding junk or malicious content to posts, comments and messages | | OAT-018 | Footprinting | Mapping every path, parameter and process step of the application | | OAT-019 | Account Creation | Creating accounts in bulk for later misuse | | OAT-020 | Account Aggregation | A third party collecting many accounts and acting on users' behalf | | OAT-021 | Denial of Inventory | Holding stock in carts or reservations without ever buying | Version 1.3 of the handbook renamed OAT-003 from Ad Fraud to Cost-Inflation Fraud and widened it to any chargeable service. Older reports and vendor pages still use the old name. The industry term card testing is OAT-001 Carding, covered in [what card testing is](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md). OAT-015 here excludes HTTP floods and network-level DDoS, which other taxonomies cover. ## How do the threats group by target? The handbook lists them alphabetically, which hides how they connect. Grouped by what they attack: - OAT-007 Credential Cracking, OAT-008 Credential Stuffing, OAT-019 Account Creation and OAT-020 Account Aggregation target accounts. See [what credential stuffing is](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md) and [how to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md). - OAT-001 Carding, OAT-010 Card Cracking, OAT-012 Cashing Out, OAT-002 Token Cracking and OAT-003 Cost-Inflation Fraud go after payments and stored value. SMS pumping, where someone profits from the text messages your OTP endpoint sends, fits OAT-003. - OAT-005 Scalping, OAT-013 Sniping, OAT-021 Denial of Inventory and OAT-006 Expediting exploit limited stock and timing. See [what scalper bots are](https://stopbots.io/learn/scalping/what-are-scalper-bots.md) and [inventory hoarding bots](https://stopbots.io/learn/scalping/inventory-hoarding-bots.md). - OAT-011 Scraping, OAT-016 Skewing and OAT-017 Spamming abuse content and metrics. - OAT-004 Fingerprinting, OAT-018 Footprinting and OAT-014 Vulnerability Scanning gather information, often before another attack. - OAT-015 Denial of Service and OAT-009 CAPTCHA Defeat hit availability and the defences themselves. ## How do you use the list on your own site? Map each endpoint that holds value to the threats that apply, then check what covers each pair: 1. List the endpoints, such as login, signup, password reset, coupon field, gift card balance check, search, product and price APIs, cart, checkout and any endpoint that sends SMS or email. 2. Tag each one. For example `/login` gets OAT-007 and OAT-008, `/signup` gets OAT-019, `/checkout` gets OAT-001, OAT-010 and OAT-021, and the coupon field gets OAT-002. 3. For each pair, write down how you would detect it and what you would do. Gaps show up quickly. 4. Use the OAT names in incident reports, logs and vendor questionnaires, so everyone means the same attack. The [OWASP Automated Threat Handbook](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN) groups defences into 14 countermeasure classes: Value, Requirements, Testing, Capacity, Obfuscation, Fingerprinting, Reputation, Authentication, Rate, Monitoring, Instrumentation, Contract, Response and Sharing. It notes that anti-bot vendors mostly work in Capacity, Obfuscation, Fingerprinting, Reputation, Rate and Monitoring. The rest, such as reducing what an attacker gains (Value) or writing abuse test cases (Testing), sit with your own team. ## How does this list relate to the OWASP API Security Top 10? The OWASP Top 10 lists flaws in code. The automated threats list covers misuse of code that works. The API Security Top 10 bridges the two with [API6:2023 Unrestricted Access to Sensitive Business Flows](https://api-security.owasp.org/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/), which describes the same problem for APIs: a flow such as buying a ticket or posting a comment that is harmless once and harmful when automated at scale. For API-specific defences, see [how to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md). ## Common questions ### How many OWASP automated threats are there? There are 21, numbered OAT-001 to OAT-021. The last identifier, OAT-021, is Denial of Inventory. ### Is credential stuffing in the OWASP Top 10? Not as its own entry. The 2021 OWASP Top 10 mentions credential stuffing as an example under A07 Identification and Authentication Failures. The automated threats list gives it its own identifier, OAT-008. ### Who maintains the OWASP automated threats list? Colin Watson and Tin Zaw lead the project. The handbook is free to use under a Creative Commons Attribution-ShareAlike licence. ## Related - [What is credential stuffing?](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md) - [What is card testing?](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) - [What is bot management?](https://stopbots.io/learn/bots/what-is-bot-management.md) # How does bot detection work? > Bot detection collects signals from each request and visit: the IP address and its network, the TLS and HTTP fingerprint of the client, browser attributes read by JavaScript, and how the visitor moves, types and browses. It checks whether these agree with each other and with real browsers, turns them into a score, then allows, challenges, slows or blocks the request. Category: Bot detection. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/how-bot-detection-works/ Every request that reaches a website carries evidence about the software that sent it. Some of it sits in the network connection, some in the HTTP headers, and much more appears once JavaScript runs in the page. Bot detection gathers that evidence, compares it with what real browsers and real people produce, and decides what to do with the request. ## What signals does bot detection check? Most systems work in layers, starting with the cheapest data and adding richer data when the page allows it. - The IP address, its ASN (the network that owns the address, such as a cloud host or a home broadband provider), its past behaviour and the request rate. This data exists on every request, but residential proxies make a bot's IP look like an ordinary household. - The order and values of HTTP headers, HTTP/2 settings and the TLS handshake. A [TLS fingerprint such as JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) shows which client library opened the connection, whatever the User-Agent header claims. - Attributes a JavaScript collector reads in the page: screen size, fonts, graphics renderer, time zone, language and many more. Together they form a [browser fingerprint](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md), and the same script looks for traces left by automation frameworks. - Pointer movement, typing rhythm, scrolling, the time spent on each step and the order of pages. [Behavioral bot detection](https://stopbots.io/learn/detection/behavioral-bot-detection.md) covers this layer. - Whether this IP, device or account has been seen before, what it did then, and which other accounts share its device or network. ## Why do the signals need to agree? Any single value can be faked. Changing the User-Agent string takes one line of code, and IP addresses can be rented by the thousand. Making every layer tell the same story is much harder. Take a request that claims to be Chrome on Windows. It arrives with the TLS handshake of a Python HTTP library, its client hints report Linux, its time zone does not match the country of its IP, and the IP belongs to a cloud provider. Each fact alone has an innocent explanation: a corporate proxy, a traveller, a developer testing. All of them together describe a script. Bot builders patch individual leaks, so a check for one specific flag tends to stop working after a few browser or framework releases. Contradictions between layers last longer, because removing them means controlling everything from the TCP connection up to the graphics stack. ## How do signals become a decision? Hand-written rules are the simplest form: "challenge requests to /login from hosting networks that have not run the JavaScript check". People can read and audit them, and attackers can learn them by trial and error. Scoring systems give each signal a weight, or use a model trained on labelled traffic, and add up the evidence. Most products mix both, with reputation from earlier visits feeding the score. The score then maps to an action: allow, log only, slow down with a rate limit, challenge, block, or let the request through and flag the account for review. Thresholds should differ by endpoint. A login form, signup page or checkout justifies a stricter threshold than a blog article, because a bot there costs more. For uncertain scores, an [invisible JavaScript challenge](https://stopbots.io/learn/captcha/javascript-challenges-explained.md) asks the browser to prove it is a real browser without asking the person to solve a puzzle. Visible friction has a price in lost customers, a trade-off covered in [why friction-based defences stop more users than attackers](https://www.kairal.io/blog/why-friction-based-defenses-stop-more-users-than-attackers/). ## How are good bots handled? Search engine crawlers, uptime monitors, payment webhooks and partner integrations are automated but wanted. Their names in the User-Agent can be copied by anyone, so detection systems verify them. The usual method is a reverse DNS lookup on the IP, a check that the hostname belongs to the operator, then a forward lookup to confirm it points back to the same IP. Google [documents this for Googlebot](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot), and several operators also publish their IP ranges. Some agents sign their requests with HTTP Message Signatures ([RFC 9421](https://www.rfc-editor.org/rfc/rfc9421)), which lets a site check the sender with a public key. Verified bots usually skip scoring and go straight to an allow rule. The details are in [how to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md). ## Where does bot detection run? At the CDN or edge, detection sees every request before it reaches your servers, which suits high-volume attacks and scraping. At a reverse proxy or inside the application, it knows the business context: whether a login failed, which account was targeted, whether a card was declined. In the browser, a JavaScript collector gathers the richest data, but only after the page has loaded and the script has run. The first request of a visit arrives before any of that exists, so the first decision rests on network and protocol signals alone. Mobile apps replace the browser script with an SDK and platform attestation, such as Apple App Attest or Google Play Integrity. ## Why does bot detection get it wrong? Errors go both ways. False positives are real people whose setup looks unusual: privacy browsers that randomise fingerprint values, VPN users on data centre IPs, in-app browsers inside social media apps, and offices that send hundreds of staff through one IP. False negatives are bots that run a real browser on a home IP, and people paid to solve challenges by hand. No setting removes both kinds of error. Run new rules in a log-only mode first, compare what they would have blocked with what those visitors did next, and track both error types per segment. [False positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md) explains how to measure them. ## Common questions ### What is a bot check? A bot check is a test a site runs before letting a request through. It can be invisible, such as JavaScript that inspects the browser and solves a small task in the background, or visible, such as a CAPTCHA. Most visitors on a well-tuned site never see the visible kind. ### Does bot detection use machine learning? Most commercial systems use machine learning models to weigh signals, usually next to hand-written rules. Models need labelled examples of bot and human traffic, and those labels are the hard part, so rules still handle known patterns and verified good bots. ### Does user agent bot detection still work? Only for bots that announce themselves, such as crawlers or scripts that keep a default library User-Agent. Any bot that wants to hide copies a current browser string, so the header is useful for allowing declared bots and for spotting contradictions, and weak as proof of anything. ## Related - [How to detect bot traffic on your website](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) - [What is bot management?](https://stopbots.io/learn/bots/what-is-bot-management.md) - [How to detect headless Chrome and automated browsers](https://stopbots.io/learn/detection/headless-browser-detection.md) - [How modern bots are built: headless browsers and stealth](https://stopbots.io/learn/bots/how-modern-bots-are-built.md) # How to detect bot traffic on your website > To detect bot traffic, compare your data with how people use the site. Look in analytics for spikes with no engagement, in server logs for high request rates, script User-Agents and clients that never load CSS or JavaScript, and in login, signup and checkout data for many failures from one source. Verify any visitor that claims to be a search crawler. Category: Bot detection. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/how-to-detect-bot-traffic/ Bot traffic rarely shows up as one obviously bad request. It shows up as a pattern that does not match how people use your site: too fast, too regular, too narrow, or coming from places where people do not browse. You can find most of it with three sources you already have: analytics, server or CDN logs, and the results of your logins, signups and orders. ## What are the signs of bot traffic in analytics? Tag-based analytics tools only see visitors that run their JavaScript tag, and many bots never do. What they do catch tends to look like this: - Sudden spikes in sessions with close to zero engagement time, often from one city, one network or one screen size. - Direct traffic landing on deep pages, such as product or search URLs, at hours when your customers sleep. - Browser versions far behind current releases, or operating system and browser pairs that rarely exist. - Referral traffic from sites you have never heard of. Google Analytics 4 [excludes known bots automatically](https://support.google.com/analytics/answer/9888366), but only those on its known list. For filters and segments, see [how to identify and filter bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md). ## How do you find bots in server logs? Server logs record every request that reaches the server, including clients that never run JavaScript. These commands assume the nginx or Apache "combined" log format. Top client IPs and top User-Agents: ```bash awk '{print $1}' access.log | sort | uniq -c | sort -rn | head -20 awk -F'"' '{print $6}' access.log | sort | uniq -c | sort -rn | head -20 ``` Requests per IP per minute, to find clients that go faster than a person can click: ```bash awk '{print $1, substr($4, 2, 17)}' access.log | sort | uniq -c | sort -rn | head -20 ``` HTTP libraries that keep their default User-Agent: ```bash grep -Ei 'python-requests|curl/|Go-http-client|okhttp|HeadlessChrome|Scrapy' access.log \ | awk -F'"' '{print $6}' | sort | uniq -c | sort -rn ``` IPs that request many pages but never load a stylesheet or script. Real browsers fetch those files, simple scrapers do not. This only works when your origin serves the static files; if a CDN caches them, the asset requests never reach your origin logs, so run it on CDN logs instead. ```bash awk '$7 ~ /\.(css|js)(\?|$)/ {assets[$1]++; next} {pages[$1]++} END {for (ip in pages) if (!(ip in assets) && pages[ip] > 50) print pages[ip], ip}' access.log \ | sort -rn | head -20 ``` Requests for files that should not exist on your site, such as `/.env`, `/.git/config` or `/wp-login.php` on a site that does not run WordPress, come from scanners looking for leaked secrets or weak admin pages: ```bash awk '$7 ~ /^\/(\.env|\.git|wp-login\.php|xmlrpc\.php|phpmyadmin)/ {print $1}' access.log \ | sort | uniq -c | sort -rn | head ``` The threshold of 50 pages is a starting point. Shared IPs, such as offices and mobile carriers, put many real people behind one address, so check what an IP requested before you block it. ## How do you check whether a Googlebot is real? Anyone can put "Googlebot" in a User-Agent. Google's [verification method](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot) is a reverse DNS lookup followed by a forward lookup: ```bash 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 hostname must end in `googlebot.com`, `google.com` or `googleusercontent.com`, and the forward lookup must return the original IP. A "Googlebot" that fails this check is a scraper using the name. Other search engines publish similar methods, listed in [how to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md). ## Which networks do the requests come from? Look up the ASN, the network that owns an IP. Team Cymru runs a free lookup service: ```bash whois -h whois.cymru.com " -v 203.0.113.5" ``` Browsing from cloud and hosting networks is unusual for shoppers and readers, so a page-heavy client on a hosting ASN deserves a closer look. VPN users and corporate gateways also appear there, so treat it as one signal. Bots that rent home connections will look like normal broadband users here; [detecting residential proxies](https://stopbots.io/learn/detection/how-to-detect-residential-proxies.md) needs other methods. ## Where do bots show up in business data? Your own application data often shows abuse before traffic graphs do. On login, look for many usernames tried from one IP or device with a low success rate, the shape of [credential stuffing](https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing.md): ```sql SELECT ip, COUNT(*) AS attempts, COUNT(DISTINCT username) AS usernames, AVG(CASE WHEN success THEN 1.0 ELSE 0 END) AS success_rate FROM login_events WHERE created_at > now() - interval '1 hour' GROUP BY ip HAVING COUNT(DISTINCT username) > 10 ORDER BY usernames DESC; ``` At checkout, bursts of small payments with many declines point to [card testing](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md). At signup, look for bursts of accounts with similar email patterns or the same device. On search and listing pages, sessions that page through the whole catalogue in order are usually scrapers. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [GoAccess](https://goaccess.io/) is a free, open-source log analyser that runs in a terminal or builds an HTML report, enough for a small site that wants the views above without writing commands. - [CrowdSec](https://www.crowdsec.net/) is open source and reads your logs, detects scanning and brute-force patterns, and can block IPs reported by its community. - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) adds a bot score to each request at the edge, which fits sites already behind Cloudflare. - [AWS WAF Bot Control](https://aws.amazon.com/waf/features/bot-control/) labels and filters bot requests for applications behind CloudFront, an Application Load Balancer or API Gateway. - [Kairal](https://www.kairal.io/product/bot-protection/) combines device, network and behaviour signals per endpoint, and its preview mode shows what it would block before you enforce anything. ## Common questions ### How do I check if my website traffic is bots? Take one busy day and compare analytics sessions with server log requests for the same pages. A large gap usually means automated clients that never run your analytics script, and grouping the log by IP and User-Agent shows which clients make up the difference. ### Does GA4 filter out bot traffic? GA4 excludes traffic from known bots and spiders automatically, and you cannot switch this off or see how much it removed. It does not catch bots that hide behind a normal browser User-Agent, so filtered reports can still contain automated sessions. ### What is malicious bot traffic? It is automated traffic that works against you: credential stuffing on login, card testing at checkout, scraping of prices or content, fake signups and spam. Search crawlers and uptime monitors are also bots, but you usually want them. ## Related - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) - [What is bot traffic?](https://stopbots.io/learn/bots/what-is-bot-traffic.md) - [Can web scraping be detected?](https://stopbots.io/learn/scraping/can-web-scraping-be-detected.md) - [How to block bots with nginx and Apache](https://stopbots.io/learn/implementation/block-bots-with-nginx-and-apache.md) # What is browser fingerprinting and how does it work? > Browser fingerprinting identifies a browser by the values it exposes to every website: User-Agent, screen size, time zone, languages, fonts, graphics hardware and how it draws text and images. Combined, these values often single out one browser among many without storing anything on the device. Bot detection uses fingerprints to spot browsers that lie about themselves and to link many accounts to one device. Category: Bot detection. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/what-is-browser-fingerprinting/ A website can learn a lot about a browser without storing anything on the device. Each value on its own is shared by millions of people, but the combination of a few dozen of them is often rare enough to recognise the same browser on a later visit, even after cookies are cleared. That combination is the browser fingerprint. ## What does browser fingerprinting collect? Some data arrives with every request, before any script runs. This passive part includes the IP address, the User-Agent header, Accept-Language, the order of headers, Chromium's [client hints](https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API) and the TLS handshake. The [TLS fingerprint](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) is covered on its own page. The active part is read by JavaScript in the page: - Screen width, height, colour depth and pixel ratio, plus the size of the browser window. - Time zone from `Intl.DateTimeFormat().resolvedOptions().timeZone` and the list in `navigator.languages`. - CPU core count (`navigator.hardwareConcurrency`), memory class (`navigator.deviceMemory`, Chromium only), platform and touch support. - Installed fonts, found by measuring how wide a test string renders in each font. - The graphics card and driver names from WebGL, and the list of WebGL features supported. - The output of drawing to a canvas or processing a short sound with the Web Audio API. - Supported media codecs, permission states and storage limits. ## How does canvas fingerprinting work? The script draws text and shapes on a hidden canvas and reads the pixels back. The result depends on the graphics card, the driver, the operating system's font rendering and its anti-aliasing, so two machines that report the same browser version can produce different images. Hashing the image gives a short value to compare: ```js async function canvasFingerprint() { const canvas = document.createElement('canvas'); canvas.width = 240; canvas.height = 60; const ctx = canvas.getContext('2d'); ctx.textBaseline = 'top'; ctx.font = '16px Arial'; ctx.fillStyle = '#f60'; ctx.fillRect(100, 5, 80, 30); ctx.fillStyle = '#069'; ctx.fillText('Fingerprint test 123', 4, 20); const bytes = new TextEncoder().encode(canvas.toDataURL()); const digest = await crypto.subtle.digest('SHA-256', bytes); return Array.from(new Uint8Array(digest), (b) => b.toString(16).padStart(2, '0')).join(''); } ``` WebGL and audio fingerprints follow the same idea: render something fixed and measure the small differences the hardware and software stack introduce. `crypto.subtle` only works on HTTPS pages. ## How accurate is browser fingerprinting? Accuracy depends on two properties that pull against each other. Uniqueness is how few other browsers share the same values. Stability is how long the values stay the same for one browser. Adding more attributes makes a fingerprint more unique and less stable, because every extra attribute is one more thing that changes when the browser updates, a monitor is plugged in or the user travels to another time zone. Desktop computers vary a lot in screens, fonts and graphics hardware. Phones vary much less: many people own the same iPhone model on the same iOS version with the same default settings, and their fingerprints look alike. For that reason, production systems match fingerprints with tolerance for small changes and combine them with other signals instead of trusting one exact hash. A fingerprint identifies a browser setup on a device. Several people can share a laptop, and one person can use three browsers. You can see what your own browser exposes with the EFF's [Cover Your Tracks](https://coveryourtracks.eff.org/). ## How is fingerprinting used in bot detection? Ad tracking wants to recognise the same person across sites. Bot detection uses fingerprints for different jobs: - A browser that claims to be Safari on an iPhone but exposes a Chromium-only API, or claims Windows but has only Linux fonts and a software graphics renderer, is lying about itself. [Headless browser detection](https://stopbots.io/learn/detection/headless-browser-detection.md) is built largely on these checks. - When one device fingerprint appears behind dozens of signups or bonus claims, those accounts probably belong to one operator. This is the core of [detecting multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md). - One fingerprint seen from hundreds of IP addresses in an hour points to a bot rotating through proxies. Fraud tools called antidetect browsers give each account a different, believable fingerprint, so a new hash on its own proves little. The consistency checks in the first point are what expose them. ## How do browsers limit fingerprinting? Browser makers treat fingerprinting as a privacy problem and reduce it in different ways. Safari limits some values and, with its Advanced Fingerprinting Protection, adds noise to APIs such as canvas. Firefox blocks scripts from known fingerprinting companies in its Enhanced Tracking Protection, and its "resist fingerprinting" mode, used by Tor Browser, makes many users report the same values. Brave randomises some outputs per site and per session. People who use these browsers produce fingerprints that are uncommon or change between visits. A randomised canvas is a sign of a privacy setting, so it should not count as evidence of a bot by itself. [False positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md) covers how to keep these users out of your block lists. ## Is browser fingerprinting legal? In the EU, Article 5(3) of the ePrivacy Directive covers reading information from a user's device as well as setting cookies. The European Data Protection Board's [Guidelines 2/2023](https://www.edpb.europa.eu/system/files/2024-10/edpb_guidelines_202302_technical_scope_art_53_eprivacydirective_v2_en_0.pdf) build on earlier regulator opinions that treat fingerprinting as falling within that scope. Access needs consent unless an exemption applies, such as being strictly necessary for a service the user asked for, and national regulators differ on how far security and fraud prevention fit that exemption. When a fingerprint can single out a person, the GDPR applies to it as personal data. The answer depends on the country and the purpose, and this page is not legal advice. [Bot protection and GDPR](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) goes through the main questions, and [device fingerprinting vs browser fingerprinting](https://stopbots.io/learn/detection/device-fingerprinting-vs-browser-fingerprinting.md) explains how the two terms differ. ## Common questions ### What is the difference between browser fingerprinting and cookies? A cookie is an identifier the site stores in the browser and reads back later, so the user can delete it. A fingerprint is computed again on each visit from what the browser exposes, so clearing cookies does not change it, though a browser update or a new monitor can. ### What is browser fingerprinting used for? The two main uses are advertising and analytics tracking, and security: fraud prevention, bot detection and recognising a returning device at login. The same technique raises different legal questions depending on which of these it serves. ### Can a website see my fingerprint without JavaScript? Partly. Headers such as the User-Agent, Accept-Language and client hints, the IP address and the TLS handshake reach the server on every request. Canvas, WebGL, fonts and most hardware values need JavaScript. ## Related - [How to detect antidetect browsers](https://stopbots.io/learn/fake-accounts/how-to-detect-antidetect-browsers.md) - [What is an antidetect browser?](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) - [Behavioral bot detection: mouse movement, typing and timing](https://stopbots.io/learn/detection/behavioral-bot-detection.md) # Device fingerprinting vs browser fingerprinting > A browser fingerprint describes one browser through the values it exposes to websites, so it changes when the person switches browser. A device fingerprint aims to recognise the machine or phone itself, using hardware and operating system signals that stay the same across browsers or apps, often collected by a mobile SDK. On the web, most products sold as device fingerprinting combine both. Category: Bot detection. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/device-fingerprinting-vs-browser-fingerprinting/ Vendors use "device fingerprinting" and "browser fingerprinting" loosely, and many products sold under the first name do the second. The difference matters when you decide what you need to recognise: a browser, a physical device, or a returning person who resets both. ## What is the difference between device and browser fingerprinting? A [browser fingerprint](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) is built from what one browser exposes to a web page: User-Agent, screen, time zone, languages, fonts, canvas and WebGL output, and similar values. Open a different browser on the same laptop and many of those values change, so the fingerprint changes too. A device fingerprint tries to describe the machine underneath. In a mobile app, an SDK can read operating system and hardware details that a web page never sees. On the web, it means favouring the values that stay the same across browsers on one computer: the graphics card, screen resolution, CPU core count, fonts installed with the operating system and the time zone. The TCP and [TLS fingerprint](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) of the connection can add a network-level view of the operating system and client software. | | Browser fingerprint | Device fingerprint | |---|---|---| | Collected by | JavaScript in the page, plus request headers | Mobile SDK, or web signals chosen to hold across browsers | | Survives clearing cookies | Yes | Yes | | Survives switching browser | Mostly not | Mostly, on the web; not relevant in apps | | Survives reinstalling the app | Not relevant | Partly, depending on the signals | | Main weakness | Changes with browser updates and privacy settings | Identical devices look alike; emulators fake values | | Typical use | Bot detection, returning visitor recognition | Multi-accounting, ban evasion, app fraud | ## How is a device ID different from a device fingerprint? A device ID is assigned and stored. A fingerprint is computed from characteristics each time. The difference shapes how each one fails. Stored IDs are exact but can be reset. On iOS, `identifierForVendor` is shared by all apps from one developer on a device and changes when the user deletes all of them. On Android since version 8.0, `ANDROID_ID` is scoped to the app signing key, the user and the device, and changes on a factory reset. A cookie or local storage value on the web disappears when the user clears site data. Platform makers have also closed access to permanent hardware IDs: Android 10 restricts IMEI and serial number to privileged apps, as described in Google's [guidance on user data IDs](https://developer.android.com/identity/user-data-ids). Fingerprints are fuzzy but survive a reset of storage, because the hardware and settings stay the same. Production systems use both. The stored ID gives continuity, and the fingerprint reveals when a "new" device is the old one with its storage wiped, which is the usual pattern in [free trial abuse](https://stopbots.io/learn/fake-accounts/how-to-prevent-free-trial-abuse.md) and fake signups. ## What is device attestation? Attestation answers a different question: is this request coming from my real app on a real device? Apple's [App Attest](https://developer.apple.com/documentation/devicecheck) uses a key held in the device's secure hardware to sign requests from your app, and Apple's DeviceCheck lets your server store two bits per device that persist across reinstalls, enough to record "this device already used its trial". Google's [Play Integrity API](https://developer.android.com/google/play/integrity) returns signed verdicts about the app, the device and the Play account. Neither one identifies the person. They make emulators, modified apps and scripts that call your API directly much easier to spot, which a fingerprint alone cannot do reliably. ## Which one should you use? Start from the decision you need to make: - To spot bots on a website, browser fingerprinting and consistency checks matter most, combined with network signals. Cross-browser stability matters less here, because the question is whether the client is genuine. Recognising a returning device matters more for linking accounts. - To link accounts created by one person, prefer device-level signals that survive a browser switch, cookie clearing and a private window, and add behaviour and payment data. [Detecting multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) covers the linking rules. - In a mobile app, use an SDK for device signals, a stored ID for continuity and attestation for every sensitive call. - On the first request of a visit, neither is available yet. Network and TLS signals have to carry that decision. Fraud operators answer device fingerprinting with antidetect browsers and emulators that give each account a fresh set of values. Their weak point is consistency: invented values tend to contradict each other or the hardware, which [detecting antidetect browsers](https://stopbots.io/learn/fake-accounts/how-to-detect-antidetect-browsers.md) explains. Both techniques read information from the user's device, so both fall under the same privacy rules in the EU. Collect what the security purpose needs, keep it for a defined time, and document why. [Bot protection and GDPR](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) covers the legal side. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) is a free, open-source browser fingerprinting library that runs in the page, enough for experiments and low-risk use on a small site. - [Fingerprint](https://fingerprint.com/) is the commercial service from the same team, with server-side identification and mobile SDKs, suited to account and payment fraud. - [Apple DeviceCheck and App Attest](https://developer.apple.com/documentation/devicecheck) are free for iOS apps and fit when you need to verify that requests come from your genuine app. - [Google Play Integrity](https://developer.android.com/google/play/integrity) does the same job for Android apps distributed through Google Play. - [Kairal](https://www.kairal.io/use-cases/account-farming-multi-accounting/) links device, network and behaviour signals across signup, login and checkout, and its console shows the related devices, events and IP addresses behind each decision. ## Common questions ### Is a device fingerprint unique? Not always. Two phones of the same model, on the same operating system version with default settings, can produce the same fingerprint. Uniqueness is higher on desktop computers, where screens, fonts and graphics hardware vary more. ### How accurate is device fingerprinting? Accuracy depends on the device mix and on how long you need to recognise a device. Matching over days is far more reliable than over months, because browser and system updates change values. Treat a match as strong evidence that needs one more signal, such as the same payment card or network, before you act on it alone. ### Is device fingerprinting legal? In the EU, reading information from a device for fingerprinting falls under the same ePrivacy rule as cookies, and the GDPR applies when the result can identify a person. Whether security use needs consent depends on the country, so take legal advice for your case. ## Related - [What is browser fingerprinting and how does it work?](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) - [What is multi-accounting?](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) - [How to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) - [What is an antidetect browser?](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) # TLS fingerprinting for bot detection: JA3 and JA4 explained > TLS fingerprinting identifies the software behind a connection from its ClientHello, the first message a client sends when it opens HTTPS. JA3 hashes the TLS version, cipher suites, extensions and curves in the order sent, so Chrome's random extension order broke it. JA4 sorts ciphers and extensions and adds a readable prefix, giving one stable value per client library and version, shared by all its users. Category: Bot detection. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4/ Before a browser sends a single HTTP header, it opens the TLS connection with a ClientHello message. That message lists what the client supports, and the list is built by the client's TLS library. Chrome uses BoringSSL, Firefox uses NSS, Safari uses Apple's own stack, and curl, Python and Go programs each use their own library with their own defaults. A bot can type any User-Agent it likes, but unless it replaces its TLS stack, the ClientHello still tells the server which library opened the connection. ## What does a TLS ClientHello contain? The ClientHello is sent before encryption starts, and every TLS client has to fill in the same fields, defined for TLS 1.3 in [RFC 8446](https://www.rfc-editor.org/rfc/rfc8446): - A legacy version field, plus the `supported_versions` extension that lists the versions the client really accepts (TLS 1.3 clients put 1.3 there). - The cipher suites the client offers, in its order of preference. - A list of extensions. Common ones are `server_name` (SNI, the hostname being visited), ALPN (the application protocols offered, such as `h2` and `http/1.1`), `supported_groups` (the key exchange groups, such as X25519 and, in recent browsers, post-quantum hybrids), `signature_algorithms`, `key_share`, session ticket and certificate status options. - GREASE values ([RFC 8701](https://www.rfc-editor.org/rfc/rfc8701)), random reserved values that Chrome and some other clients insert so servers stay tolerant of unknown values. Fingerprinting methods ignore them. Which ciphers, extensions and groups appear, and in which order, differs between libraries and often between versions of the same library. That variation is what a TLS fingerprint captures. ## How does JA3 work? [JA3](https://github.com/salesforce/ja3), created at Salesforce in 2017, takes five fields from the ClientHello as decimal numbers: TLS version, cipher suites, extensions, elliptic curves (supported groups) and point formats. Fields are joined by commas, values inside a field by dashes, GREASE is dropped, and the string is hashed with MD5. The example from the JA3 repository: ```txt 769,47-53-5-10-49161-49162-49171-49172-50-56-19-4,0-10-11,23-24-25,0 ``` Its MD5 hash, `ada70206e40642a3e4461f35503241d5`, is the JA3 fingerprint. JA3S applies the same idea to the server's reply. JA3 hashes became a standard field in threat intelligence feeds and WAF rules. Salesforce archived the repository in 2025, and its creator now maintains JA4. ## Why did Chrome break JA3? In early 2023 Chrome began shuffling the order of TLS extensions in every ClientHello. The goal was to stop servers and middleboxes from depending on one fixed order, a problem known as protocol ossification. JA3 hashes extensions in the order they are sent, so a single Chrome install produces a different JA3 on almost every connection. [Fastly's analysis](https://www.fastly.com/blog/a-first-look-at-chromes-tls-clienthello-permutation-in-the-wild) of the rollout shows the effect on real traffic. Allowlists of "known Chrome JA3 hashes" stopped working, even though the set of extensions Chrome sends did not change. ## How does JA4 work? [JA4](https://github.com/FoxIO-LLC/ja4), published by FoxIO in 2023, fixes this by sorting, and it makes the first part readable. A JA4 fingerprint has three parts joined by `_`, in the layout `a_b_c`. This Chrome fingerprint appears in the JA4 repository: ```txt t13d1517h2_8daaf6152771_cb7bf5808d99 ``` The `a` part, `t13d1517h2`, reads left to right: - `t` is TLS over TCP. `q` means QUIC and `d` means DTLS. - `13` is the highest TLS version offered, here TLS 1.3. - `d` means an SNI hostname was sent. `i` means no SNI, which usually means the client connected to a bare IP address. - `15` is the number of cipher suites and `17` the number of extensions, both with GREASE removed. The extension count includes SNI and ALPN. - `h2` is the first and last character of the first ALPN value. A client offering `http/1.1` first shows `h1`, and a client with no ALPN shows `00`. The `b` part is the first 12 hex characters of a SHA-256 hash of the cipher suites, sorted. The `c` part is the first 12 hex characters of a SHA-256 hash of the sorted extensions, with SNI and ALPN left out, followed by the signature algorithms in the order the client sent them. Because ciphers and extensions are sorted, Chrome's shuffling no longer changes the result. JA4 also defines raw output forms for analysis, and the wider JA4+ family covers HTTP clients (JA4H), TCP (JA4T) and latency (JA4L). JA4 itself is under the BSD 3-Clause licence; the other JA4+ methods use the FoxIO License, which allows internal use but requires a licence from FoxIO to sell them as part of a product. ## What does a TLS fingerprint tell you? A TLS fingerprint identifies a client library and its configuration. Millions of people on the same Chrome version share one JA4, so it says nothing about who is visiting. It is useful for questions about what software is visiting: - A User-Agent that claims a current Chrome or Safari, paired with a JA4 that matches an HTTP library such as Python's or Go's, is a script with a borrowed User-Agent. This contradiction is visible on the very first request, before any JavaScript runs. - The readable prefix supports simple rules. Browsers visiting a website send SNI and ALPN, so a "browser" with `i` in position four or `00` at the end of the `a` part deserves a challenge. - A rare JA4 that suddenly sends thousands of requests from hundreds of IP addresses is usually one tool behind rotating proxies. Counting requests and distinct IPs per JA4 per hour shows it quickly. - A JA4 already tied to an attack can be challenged on sensitive endpoints such as login and checkout, instead of being blocked everywhere. ## Where does TLS fingerprinting go wrong? Many mistakes come from shared fingerprints. Mobile apps built on common HTTP libraries, uptime monitors, payment webhooks, partner integrations and your own back-end services all send library fingerprints, often with honest User-Agents. Rules should combine JA4 with the endpoint and the User-Agent claim, and APIs need their own policy (see [how to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md)). Corporate TLS inspection proxies and some antivirus products terminate the browser's TLS and open a new connection themselves. The server then sees the proxy's fingerprint with a real person's browser User-Agent, a common source of [false positives](https://stopbots.io/learn/detection/bot-detection-false-positives.md). Browser updates change fingerprints when they add extensions or key exchange groups, so any list of "good" JA4 values needs maintenance after each major release. Libraries exist that copy a browser's ClientHello exactly. Against those, JA4 matches Chrome and the contradiction has to come from elsewhere: the HTTP/2 settings and header order, the JavaScript environment checked by [headless browser detection](https://stopbots.io/learn/detection/headless-browser-detection.md), or behaviour. If your site sits behind a CDN, your origin only sees the CDN's own TLS connection. The fingerprint has to come from wherever TLS is terminated. ## Where do you get JA4 values? On Cloudflare, Enterprise customers with Bot Management get the `cf.bot_management.ja4` and `cf.bot_management.ja3_hash` fields in rules, plus aggregated JA4 Signals in Workers, as described in the [JA3/JA4 documentation](https://developers.cloudflare.com/bots/additional-configurations/ja3-ja4-fingerprint/). A starting rule that logs or challenges login requests claiming Chrome over a TLS connection with no ALPN: ```txt http.request.uri.path eq "/login" and http.user_agent contains "Chrome/" and cf.bot_management.ja4 matches "^t1[23][di][0-9]{4}00_" ``` The JA4 repository lists the CDNs, load balancers and WAFs that expose the value, including AWS WAF, Fastly, Akamai and Google Cloud Armor, plus open-source network tools such as Wireshark, Zeek and Arkime, and modules for NGINX and HAProxy if you terminate TLS on your own servers. The overview in [how bot detection works](https://stopbots.io/learn/detection/how-bot-detection-works.md) shows where TLS signals sit next to the other layers. ## Common questions ### Is JA3 still useful? Yes, for clients that do not shuffle their extensions, which includes many scripts, malware families and older libraries, so existing JA3 blocklists still catch some traffic. For modern Chrome and other browsers that randomise extension order, JA3 changes on almost every connection and JA4 is the better key. ### Can a JA4 fingerprint identify a person? No. JA4 describes the TLS stack of a client, and everyone running the same browser version on similar systems sends the same one. It becomes useful only next to other signals, such as the User-Agent, the IP network and the request rate. ### Does Encrypted Client Hello stop TLS fingerprinting? It stops passive observers on the network from reading the inner ClientHello. The server or CDN that terminates TLS still decrypts it, so a website operator fingerprinting at its own edge keeps the data. ## Related - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) - [How modern bots are built: headless browsers and stealth](https://stopbots.io/learn/bots/how-modern-bots-are-built.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) - [Can web scraping be detected?](https://stopbots.io/learn/scraping/can-web-scraping-be-detected.md) # Behavioral bot detection: mouse movement, typing and timing > Behavioural bot detection judges a visitor by how it interacts with the page: the shape and speed of pointer movement, the rhythm of typing, touch and scroll patterns, and the time spent on each step. Simple bots produce no events or perfectly regular ones. It works best on forms such as login and checkout, combined with device and network signals. Category: Bot detection. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/behavioral-bot-detection/ Device and network signals describe what a client is. Behaviour describes how it acts once it is on the page. A person reading a product page, filling a login form or picking seats leaves a trail of small, irregular movements and pauses. A script usually leaves no trail at all, or one that is too clean. ## What does behavioural bot detection measure? Signals fall into four groups. - Pointer data covers the path between targets, speed and acceleration, pauses, overshoot and correction near a button, where inside the button the click lands, and the time between `mousedown` and `mouseup`. - Typing data covers dwell time (how long each key is held), flight time (the gap between keys), corrections with backspace, and whether text arrived through a paste. - Touch and scroll data cover the size of the contact area, swipe curves, scroll momentum and how scrolling relates to what is on screen. - Timing data covers the time from page load to the first interaction, time to complete a form, the order in which fields were filled, and on the server, the order and spacing of requests across a session. People follow a pattern described by Fitts's law: the time to reach a target grows with its distance and shrinks with its size, so a hand speeds up, then slows and corrects as it approaches a button. Paths curve, speed rises and falls, and typing rhythm varies with the letters being typed. ## How do bots behave differently from people? The simplest bots send the form directly over HTTP. The page never loads, so no events exist at all. Scripts that run in a page and call `element.click()` or `dispatchEvent()` produce events whose `isTrusted` property is `false`, as [MDN documents](https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted), which real input never does. Browser automation tools generate trusted input through the browser's own control interfaces, so `isTrusted` alone does not catch them. Their default behaviour still stands out: the cursor jumps to the exact centre of an element with no path before it, keys arrive at identical intervals, and a whole form is filled in a few milliseconds. The [headless browser detection](https://stopbots.io/learn/detection/headless-browser-detection.md) checks catch many of the same tools from the environment side. More careful operators add generated curves or replay movement recorded from real people. Those leave statistical traces of their own: the same path repeated across many sessions, curves that are smoother than a hand, or movement that ignores the layout, such as an identical path whether the button sits at the top or the bottom of the screen. ## How do you collect behavioural signals? Collect timing and shape summaries, never the content of what people type. This script counts pointer movement and keystroke intervals and attaches a summary to the form when it is submitted: ```js const stats = { moves: 0, path: 0, keys: 0, intervals: [], untrusted: 0 }; let lastPoint = null; let lastKeyTime = null; document.addEventListener('pointermove', (e) => { if (!e.isTrusted) stats.untrusted++; if (lastPoint) stats.path += Math.hypot(e.clientX - lastPoint.x, e.clientY - lastPoint.y); lastPoint = { x: e.clientX, y: e.clientY }; stats.moves++; }, { passive: true }); document.addEventListener('keydown', (e) => { if (!e.isTrusted) stats.untrusted++; if (lastKeyTime !== null && stats.intervals.length < 200) { stats.intervals.push(Math.round(e.timeStamp - lastKeyTime)); } lastKeyTime = e.timeStamp; stats.keys++; }); document.querySelector('form').addEventListener('submit', (e) => { const field = document.createElement('input'); field.type = 'hidden'; field.name = 'behaviour'; field.value = JSON.stringify({ ...stats, sinceLoad: Math.round(performance.now()) }); e.target.appendChild(field); }); ``` On the server, useful starting rules are: untrusted pointer events, a form submitted less than about two seconds after the page loaded, and a spread of keystroke intervals close to zero over 20 or more keys. Tune each threshold on your own traffic. Some password managers and browser extensions dispatch synthetic keyboard or input events when they fill a form, so untrusted keyboard events from real users do occur and should only add weight. Anything sent from the browser can be forged by a bot that has studied your script, so treat a missing or impossible summary as evidence and a plausible one as weak evidence of a human. This is why commercial collectors obfuscate their scripts and payloads and change them often. ## Where does behavioural detection fail? Many real people do not behave like the average mouse user: - People on touch screens, keyboard-only users, screen reader users, and people using switch access or voice control produce few or no pointer events. - Password managers and browser autofill fill fields with no keystrokes, and people paste long passwords. - A reader who opens an article and scrolls produces almost no data, so content pages give little to judge. None of these people should be treated as bots just because their behaviour looks unusual. Absent behaviour on a login form, together with a contradiction in the device data, is a much stronger signal than either alone. Privacy matters too. Keystroke timing and movement patterns can identify people, and in the EU, data processed to identify a person by physical or behavioural traits can count as biometric data under the GDPR. Keep raw traces short-lived, store summaries, and document the security purpose. ## Where does behaviour fit with other signals? Behaviour arrives late. It needs the visitor to interact, so it cannot judge the first request of a visit. It is strongest at the steps where a person must interact before the decision: login, signup, checkout and [form submissions](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md). There it can replace a visible puzzle, which is the idea behind many [CAPTCHA alternatives](https://stopbots.io/learn/captcha/captcha-alternatives.md), and it adds weight to an [invisible JavaScript challenge](https://stopbots.io/learn/captcha/javascript-challenges-explained.md). The overview in [how bot detection works](https://stopbots.io/learn/detection/how-bot-detection-works.md) shows how it combines with device, network and history signals. For the payment step, see Kairal's guide to the [best fraud signals for checkout](https://www.kairal.io/blog/best-fraud-signals-for-checkout/). ## Common questions ### Can mouse movement detect bots? It catches automation that moves the cursor in straight lines, at constant speed or not at all. Bots that replay recorded human movement can pass a mouse check, so mouse data works as one weighted signal and fails as a single gate. ### Does behavioural bot detection work on mobile? Yes, with different signals. Phones produce touch events with contact size, swipe curves and scroll momentum, and some browsers expose motion sensors, in some cases only after a permission prompt. Mouse-based models do not transfer, so mobile traffic needs its own thresholds. ### What is invisible bot detection? It is detection that runs without asking the visitor to do anything, using browser checks, background JavaScript challenges and behaviour collected while the person uses the page normally. The visitor only sees a challenge when those signals are not enough to decide. ## Related - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [How invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md) - [How to stop bots from submitting forms](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md) # How to detect headless Chrome and automated browsers > Detect headless and automated browsers by combining signals: navigator.webdriver, software graphics renderers such as SwiftShader or llvmpipe, missing operating system fonts, a window exactly the size of the screen, traces left by automation protocols, and contradictions between the User-Agent, client hints and what JavaScript reports. Headless Chrome now shares the normal browser's code, so single flags stop working quickly. Category: Bot detection. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/headless-browser-detection/ Headless browsers run a real browser engine without a visible window, and automation frameworks such as Puppeteer, Playwright and Selenium drive them through a control protocol. They execute JavaScript, store cookies and render pages, so a check that only asks "does this client run JavaScript?" lets them through. Detecting them means finding the traces automation leaves and the contradictions between what the browser claims to be and what it is. ## Why has headless Chrome become harder to detect? Old headless Chrome was a separate implementation with many visible differences. Chrome has since unified the two: the current headless mode [shares its code with normal Chrome](https://developer.chrome.com/docs/chromium/headless), and since Chrome 132 the old mode ships only as a separate binary called `chrome-headless-shell`. Many differences that detection used to rely on simply disappeared. On top of that, bot operators use patched builds and plugins that hide the best-known leaks, which [how modern bots are built](https://stopbots.io/learn/bots/how-modern-bots-are-built.md) describes. Any single check can expire with the next browser or framework release. Contradictions between several layers last longer, because hiding them means faking an entire computer consistently. ## Which automation flags still work? `navigator.webdriver` is `true` when a browser is controlled by automation. [MDN lists the conditions](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver): in Chrome, the `--enable-automation` or `--headless` flag, or `--remote-debugging-port` set to 0; in Firefox, the Marionette flag or preference. Patching the value is easy, but patches leave traces of their own, such as a property defined in the wrong place or a getter whose source is not native code. Default headless builds also put `HeadlessChrome` in the User-Agent. That catches careless scripts and nothing else. Automation drivers add objects and bindings to the page that real browsers never have. ChromeDriver, for example, has long been associated with variables whose names start with `cdc_`. Frameworks that use the Chrome DevTools Protocol (CDP) also cause side effects: when the protocol's Runtime domain is enabled, the browser serialises objects passed to console methods so it can report them to the controller, and a page can observe that happening. Browser and framework updates have closed several of these leaks, so test every check against current versions before relying on it. ## What does the graphics stack reveal? Servers running headless browsers usually have no GPU, so the browser falls back to a software renderer: SwiftShader in Chrome, or Mesa's llvmpipe on Linux. The WebGL renderer string exposes this through the [WEBGL_debug_renderer_info](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info) extension: ```js function graphicsInfo() { const gl = document.createElement('canvas').getContext('webgl'); if (!gl) return { webgl: false, cores: navigator.hardwareConcurrency }; const ext = gl.getExtension('WEBGL_debug_renderer_info'); const renderer = ext ? gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) : gl.getParameter(gl.RENDERER); return { webgl: true, renderer, software: /swiftshader|llvmpipe|softpipe|basic render/i.test(renderer), cores: navigator.hardwareConcurrency, }; } ``` Some real people also get a software renderer: virtual machines, remote desktops and computers whose graphics driver the browser has blocked. The signal becomes strong in combination, for example a software renderer together with a high CPU core count typical of server hardware and a Linux platform, on a client that claims to be a Windows laptop. The renderer string also has to fit the claimed system. Chrome on Windows usually reports an ANGLE renderer backed by Direct3D, Safari reports an Apple GPU, and a "Mac" whose renderer mentions Direct3D is not a Mac. ## What do fonts, plugins and screen size show? Container images for headless browsers ship with few fonts. A client claiming Windows should have Windows system fonts such as Segoe UI, and a Mac should have Apple's. You can test for a font by measuring text against fallback fonts: ```js function hasFont(name) { const ctx = document.createElement('canvas').getContext('2d'); const sample = 'mmmmmmmmmmlli1WQ'; return ['monospace', 'serif', 'sans-serif'].some((fallback) => { ctx.font = `72px ${fallback}`; const base = ctx.measureText(sample).width; ctx.font = `72px "${name}", ${fallback}`; return ctx.measureText(sample).width !== base; }); } ``` `document.fonts.check()` is not a substitute, because it can return `true` for fonts that are not installed. An empty `navigator.plugins` list used to be a classic headless sign. Current browsers follow the HTML standard and report a fixed list of PDF viewer entries, so that check has mostly aged out. Window geometry still helps. A headless window often has the same size as the reported screen, with `outerWidth` equal to `innerWidth` because there is no browser interface around the page, and a screen with no space taken by a taskbar or dock. Full-screen users and kiosks look similar, so this signal also needs company. ## How do you check the User-Agent against client hints and JavaScript? Chromium browsers send [User-Agent client hints](https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API) on HTTPS requests, and JavaScript can read more of them through `navigator.userAgentData`. Firefox and Safari support neither, so their absence is normal there. Contradictions to look for: - A Chrome User-Agent without `sec-ch-ua` headers on HTTPS. - A Safari or Firefox User-Agent with `navigator.userAgentData` present, which only Chromium has. - A platform hint that disagrees with the User-Agent, as in this request: ```http GET /login HTTP/2 user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 sec-ch-ua: "Chromium";v="142", "Google Chrome";v="142", "Not_A Brand";v="99" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Linux" ``` - `navigator.platform`, fonts and the WebGL renderer pointing to a different operating system than the User-Agent. - Values read inside a Web Worker that differ from the same values in the page, which happens when a patch only covers the main page. - A claimed browser version that lacks features that version ships with. Compare the browser data with the network as well. A [TLS fingerprint](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) that does not match the claimed browser, or a time zone that does not fit the IP country, adds weight to the case. ## How do you combine the signals? Treat each check as a weight in a score. Contradictions deserve more weight than oddities, because a real browser can be unusual but rarely lies about its own operating system. Then group sessions by the combination of values: the same software renderer, core count, font set and window size across hundreds of IP addresses is a farm, even if each session passes on its own. Behaviour adds a separate layer, covered in [behavioral bot detection](https://stopbots.io/learn/detection/behavioral-bot-detection.md), and uncertain sessions can get an [invisible JavaScript challenge](https://stopbots.io/learn/captcha/javascript-challenges-explained.md). Test your checks in both directions. Run Puppeteer, Playwright and Selenium with default settings in your own test pipeline and confirm they are caught. Then check a sample of known humans on virtual machines, remote desktops, Linux desktops and privacy browsers to see how often each rule fires on them, as described in [false positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md). Repeat after major Chrome releases. Fraud tools that fake complete fingerprints need a different approach, covered in [detecting antidetect browsers](https://stopbots.io/learn/fake-accounts/how-to-detect-antidetect-browsers.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [BotD](https://github.com/fingerprintjs/BotD) is a free, open-source library from the FingerprintJS team that detects common automation tools in the browser, a reasonable first layer for a small site. - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) combines its edge signals with JavaScript detections and fits sites already on Cloudflare. - [DataDome](https://datadome.co/) is a commercial bot and fraud protection service that analyses requests server-side and in the browser, with integrations for common CDNs and web servers. - [Kasada](https://www.kasada.io/) is a commercial bot defence service that runs client-side checks for automation, aimed at sites facing persistent attacks. - [Kairal](https://www.kairal.io/product/bot-protection/) correlates browser, device, network and behaviour signals per endpoint and verifies uncertain visitors with invisible challenges. ## Common questions ### Can websites detect Playwright and Selenium? Default setups are easy to detect, because they set navigator.webdriver and leave driver traces. Operators who patch those leaks are harder to catch, and detection then depends on contradictions in the environment, behaviour and network data more than on any framework-specific flag. ### Is a headless browser always a bot? It is always automation, but not always unwanted. Your own end-to-end tests, uptime monitors, link preview services, accessibility checkers and some AI agents run headless browsers. Allow the ones you know by IP, signed requests or credentials before your headless rules run. ### What is headless browser fingerprinting? It is the part of browser fingerprinting that looks for the values headless and automated browsers tend to produce, such as a software renderer, a server-class CPU core count and a font list from a Linux container. The same values on many IP addresses usually mark a bot farm. ## Related - [How modern bots are built: headless browsers and stealth](https://stopbots.io/learn/bots/how-modern-bots-are-built.md) - [What is an antidetect browser?](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) - [AI agents vs bots: how to treat agentic traffic](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) # How to detect residential proxies > No single test reliably detects residential proxies, because their exit IPs belong to real home and mobile connections. Combine weaker signals: proxy intelligence feeds, a gap between TCP and TLS round-trip times, a TCP fingerprint that does not match the claimed operating system, time zone and language that do not fit the IP location, and one device appearing from many IPs or subnets. Category: Bot detection. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/how-to-detect-residential-proxies/ A residential proxy sends a bot's traffic out through someone's home broadband or phone connection. The IP your server sees belongs to a consumer ISP or a mobile carrier, often to a household where a real person browses at the same time. That makes these proxies the hardest network signal to get right. No check gives certainty, so the goal is to collect enough weak evidence to justify a proportionate response. For how the networks are built and sold, see [what residential proxies are](https://stopbots.io/learn/bots/what-are-residential-proxies.md). ## Why are residential proxies hard to detect? The exit IPs sit in the same ASNs (the networks that own IP ranges) as your real customers, so network type looks normal. The same IP is often used by the device owner, and mobile carriers put many subscribers behind one IP with carrier-grade NAT, so blocking an IP can block real people. Large pools can hand out a new IP on every request or every few minutes, so reputation lists fill up after the traffic has moved on. ## What can IP and ASN data still tell you? Some proxies called "residential" are not. ISP proxies, sometimes sold as static residential, use IP ranges registered to an ISP but run on servers in data centres. Their ASN looks residential while their connection timing and TCP fingerprint look like a server, which the checks below expose. Commercial proxy intelligence feeds find true residential exits in two main ways: some route test traffic through proxy services and record the exit IPs they are given, and others watch how IPs behave across many sites. Their coverage is partial and freshness matters: an IP seen as a proxy exit an hour ago is far stronger evidence than one seen last month. Use a feed match as a weight in your score, keep the "last seen" time, and do not block on it alone. ## Do the connection timings match? With HTTP CONNECT or SOCKS proxies, the TCP connection ends at the exit device, but TLS runs end to end between the bot and your server. That gives two round-trip times you can measure where you terminate TLS: - The TCP handshake round trip, from your SYN-ACK to the client's ACK, which covers only the path to the exit device. - The TLS handshake round trip, from your server's handshake flight to the client's reply, which covers the path to the exit and on to the bot. For a direct client the two are close. For a proxied client, the TLS round trip is much longer than the TCP one. The JA4+ suite includes JA4L, a method for these latency measurements (note that it is under the FoxIO License, not the open BSD licence of JA4). Mobile and Wi-Fi connections are noisy, so compare against other clients on the same ISP and act on large gaps only. The same comparison works with a round trip timed in JavaScript against the TCP round trip measured at your server. ## Does the TCP fingerprint match the browser? The TCP SYN packet comes from the exit device's operating system, while the User-Agent and [TLS fingerprint](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) come from the bot's own software. The initial TTL, window size, maximum segment size and order of TCP options differ between operating systems. Windows usually starts packets with a TTL of 128, while Linux, Android, macOS and iOS start at 64. A browser claiming Windows whose SYN looks like Android or a Linux router was probably relayed. VPNs and corporate gateways cause the same mismatch, and tunnels often lower the maximum segment size, so give this a medium weight. ## Do time zone and language fit the IP location? Proxy services let customers choose an exit country or city. The bot's machine stays wherever it is unless the operator also fakes its time zone and language. Compare `Intl.DateTimeFormat().resolvedOptions().timeZone`, `navigator.languages` and the Accept-Language header with the IP's geolocation. In some browser configurations, WebRTC also reveals a public address that differs from the one on the HTTP connection. Travellers, expats, people in multilingual countries and mobile users roaming abroad (whose data often exits through their home network) all produce honest mismatches. This signal is useful next to others and weak alone. ## What does IP rotation look like in your data? Rotation leaves a clearer trace than any single connection. Real people change IP now and then, for example when a phone leaves Wi-Fi. A bot on a rotating pool changes IP every few requests while keeping the same cookies and device fingerprint. Devices seen from many IPs in the last hour (PostgreSQL, with `ip` stored as `inet`): ```sql SELECT device_id, COUNT(DISTINCT ip) AS ips, COUNT(DISTINCT asn) AS networks, COUNT(*) AS requests FROM events WHERE ts > now() - interval '1 hour' GROUP BY device_id HAVING COUNT(DISTINCT ip) >= 5 ORDER BY ips DESC; ``` Signups concentrated in one subnet (a /24 for IPv4, a block of 256 addresses, and a /64 for IPv6) over a day: ```sql SELECT CASE WHEN family(ip) = 4 THEN network(set_masklen(ip, 24)) ELSE network(set_masklen(ip, 64)) END AS subnet, COUNT(*) AS signups, COUNT(DISTINCT device_id) AS devices FROM signups WHERE created_at > now() - interval '1 day' GROUP BY 1 HAVING COUNT(*) >= 10 ORDER BY signups DESC; ``` The thresholds of 5 IPs and 10 signups are starting points. Many accounts from one subnet with similar device fingerprints point to a farm working through a proxy pool; many accounts with very different devices may be a university or an office. The same linking logic is the core of [detecting multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md). ## What should you do when you suspect a residential proxy? Respond in proportion to the evidence and the risk of the action. Because the IP may belong to a real household, avoid long IP blocks. If you block an IP at all, expire the block within hours. - Rate limit per device, account or payment card instead of per IP, since IP-based limits are what rotation defeats. [Rate limiting for bots](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) covers the trade-offs. - Challenge or step up verification at login, signup and checkout instead of blocking page views. - Hold suspicious signups for review or delay promo and referral rewards until the account shows normal activity. - Run new proxy rules in log-only mode first and measure how many real customers they hit, as described in [false positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Spur](https://spur.us/) focuses on identifying VPNs, residential proxies and other anonymity services, with an API and data feeds for IP context. - [IPQualityScore](https://www.ipqualityscore.com/) offers a proxy and VPN detection API that returns a fraud score per IP, suited to signup and checkout checks. - [MaxMind](https://www.maxmind.com/) sells an Anonymous IP database with categories for VPNs, hosting providers, Tor exits, public proxies and residential proxies, which you can query locally without an API call per request. - [CrowdSec](https://www.crowdsec.net/) is open source and free to start, and shares blocklists of IPs caught attacking other members; it helps against scanners and brute force more than against fast-rotating residential exits. - [Kairal](https://www.kairal.io/product/bot-protection/) connects network signals with device and behaviour data, so a bot that rotates IPs still links back to the same device in its console. ## Common questions ### Can residential proxies be detected? Often, but rarely with certainty from the IP alone. Detection works best on sessions, where rotation, timing gaps and location mismatches add up, and at sensitive actions such as signup or checkout, where you can ask for more proof instead of blocking. ### Are VPNs easier to detect than residential proxies? Usually yes. Commercial VPNs exit from data centre networks with a small set of known IP ranges, which feeds list well. Residential proxies exit from consumer connections shared with real households and change IP constantly. ### Should I block all proxy traffic? Usually not. VPN and privacy relay users, corporate staff behind gateways and travellers all arrive through some kind of proxy. Block only where the abuse risk is high and the action has a fallback, such as a challenge or manual review. ## Related - [What are residential proxies and why do bots use them?](https://stopbots.io/learn/bots/what-are-residential-proxies.md) - [How to detect credential stuffing](https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing.md) - [How to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) - [What is a botnet?](https://stopbots.io/learn/bots/what-is-a-botnet.md) # Honeypots for bot detection: hidden fields and trap links > A honeypot is a trap that people never trigger because they cannot see it or have no reason to use it, while automated clients do. Common forms are a hidden form field that bots fill in, a time check that rejects forms submitted too fast, a hidden link to a path that polite crawlers are told to avoid, and decoy URLs that only scanners request. Category: Bot detection. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/honeypots-for-bot-detection/ A honeypot works because people and scripts read a page differently. A person sees the rendered page and interacts with what is visible. Many bots read the HTML, fill every field and follow every link. Anything that is present in the HTML but invisible to people becomes a cheap test, and it adds no friction for real visitors. ## How does a honeypot form field work? Add an extra input that is moved off screen with CSS. People never see it, so they leave it empty. Generic spam bots fill it in. ```html
``` ```css .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } ``` Positioning off screen is harder for a bot to spot than `type="hidden"` or `display: none`, which some form bots skip. `aria-hidden` and `tabindex="-1"` keep the field away from screen readers and keyboard users, and the label tells anyone who still reaches it what to do. Choose a field name that browser autofill and password managers do not recognise. Names that contain words such as email, phone, address, company or name can get filled automatically, which turns real customers into false positives. Test the form in Chrome, Safari, Firefox and at least one password manager before going live. On the server, reject filled submissions without showing an error. Returning the normal success response gives the bot operator nothing to learn from. An Express middleware: ```js function honeypot(fieldName) { return (req, res, next) => { if (req.body && req.body[fieldName]) { console.warn('honeypot hit', { ip: req.ip, path: req.path, ua: req.get('user-agent') }); return res.status(200).send('Thanks, we will be in touch.'); } next(); }; } app.post('/signup', express.urlencoded({ extended: false }), honeypot('extra_info'), signupHandler); ``` ## How does a time trap work? People need several seconds to read and fill a form. Many bots submit within milliseconds of loading it. Put a signed timestamp in the form and reject submissions that arrive too fast or too late. Signing it with HMAC stops a bot from sending its own timestamp. ```js const crypto = require('node:crypto'); const SECRET = process.env.FORM_SECRET; function sign(value) { return crypto.createHmac('sha256', SECRET).update(value).digest('hex'); } function issueFormToken() { const ts = Date.now().toString(); return `${ts}.${sign(ts)}`; } function checkFormToken(token, minMs = 2000, maxMs = 24 * 60 * 60 * 1000) { const [ts, sig] = String(token || '').split('.'); if (!ts || !sig) return false; const expected = sign(ts); if (sig.length !== expected.length) return false; if (!crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected))) return false; const age = Date.now() - Number(ts); return age >= minMs && age <= maxMs; } ``` Render `issueFormToken()` into a hidden input and call `checkFormToken()` on submit. Two seconds is a starting point for a short form like a newsletter signup; raise it for longer forms. The upper limit stops a bot from reusing one token for days. Within that window a harvested token can still be replayed many times, so if reuse matters, include a session ID in the signed value or record tokens that have already been used. Do not use a time trap on login forms, where password managers let real users submit within a second. ## How do trap links work? A trap link is a link that people cannot see and polite crawlers are told not to follow. Disallow the path in robots.txt: ```txt User-agent: * Disallow: /trap/ ``` Add one hidden link to it, using the same off-screen class: ```html ``` Major search crawlers follow the Robots Exclusion Protocol ([RFC 9309](https://www.rfc-editor.org/rfc/rfc9309)), and people never see the link. A client that requests `/trap/` either ignored robots.txt or read it looking for paths to visit, so it is not a polite crawler. [What robots.txt does and does not stop](https://stopbots.io/learn/scraping/does-robots-txt-stop-scraping.md) explains why the file alone is no defence. Log those hits separately in nginx: ```nginx location ^~ /trap/ { access_log /var/log/nginx/trap.log combined; return 404; } ``` Then ban the IPs for a short time with fail2ban: ```ini # /etc/fail2ban/filter.d/nginx-trap.conf [Definition] failregex = ^ - ``` ```ini # /etc/fail2ban/jail.d/nginx-trap.conf [nginx-trap] enabled = true port = http,https filter = nginx-trap logpath = /var/log/nginx/trap.log maxretry = 1 findtime = 3600 bantime = 3600 ignoreip = 127.0.0.1/8 ::1 ``` Publish the `Disallow` rule at least a day before you add the link, because crawlers may cache robots.txt for up to 24 hours under RFC 9309 and could follow the link before they see the new rule. Before banning, check trap hits against verified crawlers, and add your own monitoring and office IPs to `ignoreip`. Keep the ban short, because the IP may be shared by an office, a mobile carrier or a household. If your site sits behind a CDN, nginx logs the CDN's addresses unless you configure the real client IP header, and a firewall ban on the origin does not stop traffic that arrives through the CDN. In that case, apply the block at the CDN. [Blocking bots with nginx and Apache](https://stopbots.io/learn/implementation/block-bots-with-nginx-and-apache.md) covers the real IP setup. ## What other decoys can you set? - Requests for `/wp-login.php` or `/.env` on a site that runs neither WordPress nor exposed config files come from scanners. Log them and treat the source as hostile for a while. - An API endpoint that appears in your JavaScript bundle but that your app never calls will only be requested by someone reading your code to build a scraper. - A few user accounts that nobody uses act as canaries. A login attempt against one means your user list has leaked or someone is testing which usernames exist. ## What do honeypots miss? Bots that drive a real browser and interact only with visible elements skip hidden fields and hidden links. An operator who targets your site will inspect the form once and leave the trap empty from then on. Honeypots remove generic spam bots and careless crawlers at no cost to real users. For the rest, combine them with rate limits, [behavioural signals](https://stopbots.io/learn/detection/behavioral-bot-detection.md) and an invisible challenge, as described in [how to stop bots from submitting forms](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md). The logs from your traps are also a useful input for [detecting bot traffic](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) across the site. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [fail2ban](https://github.com/fail2ban/fail2ban) is free and open source, reads log files such as the trap log above and bans offending IPs at the firewall, enough for a single server. - [CrowdSec](https://www.crowdsec.net/) is open source, detects scanners and brute force from your logs and shares blocklists with its community, which suits sites that see many hidden-file searches. - [Akismet](https://wordpress.org/plugins/akismet/) filters comment and form spam on WordPress through a hosted service, a good complement to a honeypot field on contact forms. - [Wordfence](https://www.wordfence.com/) is a WordPress security plugin with a firewall and login protection, and it has a free version. - [Kairal](https://www.kairal.io/product/bot-protection/) protects signup, login and other forms per endpoint and verifies suspicious visitors with invisible challenges, for sites where targeted bots get past simple traps. ## Common questions ### Is a honeypot better than a CAPTCHA? It is better for users, because nobody sees it, and worse against targeted bots, because an operator who looks at your form once will leave the hidden field empty. Many sites use a honeypot first and show a challenge only when other signals are suspicious. ### Can honeypots hurt SEO? A hidden form field has no effect on search. A trap link is safe for search engines as long as its path is disallowed in robots.txt and marked nofollow, because verified crawlers such as Googlebot obey robots.txt. Check that you never block verified crawler IPs by mistake. ### Do spam bots still fall for honeypot fields? Generic form spam bots, which fill every input they find in the HTML, still do. Bots built for one site, or bots that drive a real browser and fill only visible fields, usually do not. ## Related - [How to stop bots from submitting forms](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md) - [Subscription bombing: bots abusing your signup forms](https://stopbots.io/learn/ad-fraud/subscription-bombing.md) - [How to stop bots on WordPress](https://stopbots.io/learn/implementation/stop-bots-on-wordpress.md) - [How to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) # False positives in bot detection: how to measure and reduce them > Measure false positives by running rules in preview mode and checking what flagged visitors did next: logins, purchases, payments without disputes, return visits. Keep an unenforced holdout, track challenge solve rates, support tickets and conversion by segment. In-app browsers, privacy browsers, VPN and corporate network users, assistive technology users and old devices are flagged most often. Category: Bot detection. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/detection/bot-detection-false-positives/ A false positive in bot detection is a real person treated as a bot. Security dashboards show the bots a rule caught, while the people it hurt usually leave without complaining, so false positives show up later as lower conversion, odd support tickets and missing traffic from one browser or country. Measuring them takes deliberate work, because for most sessions you never learn for certain who was behind the screen. ## Why do small error rates block many people? When bots are a small share of the traffic on an endpoint, even a small human error rate becomes expensive. Here is a worked example with illustrative numbers. A login page gets 10,000 sessions a day, 2% of them bots. A rule catches 90% of the bots (180 sessions) and wrongly flags 1% of the humans (98 sessions). Of the 278 sessions it flags, 98, about 35%, are real people. A rule that looks accurate in a lab can still block one person for every two bots. The ratio gets worse as the share of bots falls, so a rule tuned during an attack can do more harm than good once the attack stops. ## How do you measure false positives? No single method gives ground truth, so combine several. Preview mode, also called shadow or log-only mode, runs a rule without enforcing it and records what it would have done. Follow the would-be-blocked sessions forward and check outcomes that bots rarely produce: a successful login to an account with a long history, a purchase paid without a dispute, a return visit days later, a support conversation. Each such session is very likely a person. A holdout keeps a small random share of traffic unenforced after you go live. Compare conversion, abuse and chargeback rates between the enforced and holdout groups. If conversion in the enforced group drops by more than the removed bots can explain, the rule is hitting people. A few percent of traffic is a reasonable starting share; on low-volume endpoints you need more to see a difference. Challenge solve rates help when a rule challenges instead of blocking. Cloudflare reports a [challenge solve rate](https://developers.cloudflare.com/cloudflare-challenges/reference/challenge-solve-rate/) per rule, and you can compute the same ratio from your own logs. A segment that solves challenges about as often as known-good traffic is probably human. A high solve rate does not prove innocence, because bots running real browsers and paid solving services also pass, but a sudden change is worth investigating. Also count challenge loops, where the same visitor is challenged again and again within minutes. Support data is the most direct signal. Show a reference ID on every block and challenge page, tag tickets that mention access denied, CAPTCHA or "verify you are human", and count them per week. The reference ID lets staff find the exact decision and the signals behind it. Conversion by segment catches what the other methods miss. Compare would-block and allowed sessions inside each browser, operating system, app, country and network type: ```sql SELECT browser_family, would_block, COUNT(*) AS sessions, ROUND(AVG(CASE WHEN converted THEN 1.0 ELSE 0 END), 4) AS conversion_rate FROM sessions WHERE started_at > now() - interval '14 days' GROUP BY browser_family, would_block ORDER BY browser_family, would_block; ``` If flagged sessions in one segment convert at close to the normal rate, the rule is flagging buyers there. This check fails where bots do buy, such as scalping and card testing, so on those flows use payment outcomes like declines and disputes instead of conversion. ## Which visitors get wrongly flagged most often? The same groups come up again and again: - People in the in-app browsers of social media and messaging apps, which use embedded browser views with unusual User-Agents, small windows, missing features and storage that may not survive between visits, so a visitor who passed a challenge can be challenged again on the next click. - People on privacy browsers or with privacy extensions. Brave randomises fingerprint values, Firefox's resist-fingerprinting mode and Tor Browser report uniform values, and ad or script blockers can stop your detection script entirely, which makes a person look like a client that never ran JavaScript. - Staff on corporate networks, where hundreds of people can share one IP and trip rate limits, and where TLS inspection proxies replace the browser's [TLS fingerprint](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) with their own. - VPN and relay users, whose traffic exits from data centre networks. Apple publishes the [iCloud Private Relay egress IP ranges](https://developer.apple.com/support/prepare-your-network-for-icloud-private-relay/), which helps you recognise that traffic. - Mobile carrier users behind carrier-grade NAT, where many subscribers share one IP. - People using screen readers, switch access, voice control or only a keyboard, who produce little or no pointer movement and may be unable to complete visual puzzles. [CAPTCHA conversion and accessibility](https://stopbots.io/learn/captcha/captcha-conversion-and-accessibility.md) covers the challenge side. - Old phones and browsers, with outdated TLS, missing APIs and slow processors that can time out on heavy JavaScript challenges. - Travellers and expats, whose time zone and language do not match their IP location. - Search crawlers, payment and shipping webhooks, uptime monitors, link previews and partner integrations, which are automated but wanted. Verify and allow these before any scoring, as in [how to verify good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md). ## How do you reduce false positives? - Require at least two independent signals before a block, for example a network signal and a browser contradiction. Single-signal rules should log or challenge. - Use graduated actions. Start by logging, then use an [invisible JavaScript challenge](https://stopbots.io/learn/captcha/javascript-challenges-explained.md), then an interactive challenge, and block only at high confidence. Every visible step costs real customers, as Kairal argues in [why friction-based defences stop more users than attackers](https://www.kairal.io/blog/why-friction-based-defenses-stop-more-users-than-attackers/). - Set thresholds per endpoint. Login, signup and checkout justify stricter rules than content pages. - Treat missing data as uncertainty. A session without JavaScript signals should get a challenge, not a block. - Key actions on devices, sessions or accounts where you can, and keep IP-based blocks short. [Rate limiting for bots](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) explains why per-IP limits hit shared addresses. - Fail open for low-risk paths when the detection service times out, so an outage does not become a site-wide block. ## How should you roll out a new rule safely? 1. Write down what the rule should catch and which outcomes would prove a flagged session was human. 2. Run it in preview mode for at least a full week, so weekday and weekend traffic are both covered. A week is a starting point; seasonal sites need longer. 3. Decide the maximum human impact you accept for that endpoint before you look at the results, then compare would-block sessions against outcomes and segments. 4. Enforce on one endpoint with the softest useful action, and keep a holdout. 5. Ramp up by percentage of traffic while watching conversion, challenge rates and support tickets daily. 6. Keep a rollback switch with a named owner, and recheck the rule after major browser and app releases, since in-app browsers and privacy features change often. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) shows bot score distributions in its analytics and reports challenge solve rates per rule, which helps you choose a threshold before you enforce it. - [AWS WAF Bot Control](https://aws.amazon.com/waf/features/bot-control/) rules can run in count mode, which records matches without blocking, so you can compare matched traffic with your own outcome data. - [Google reCAPTCHA](https://cloud.google.com/security/products/recaptcha) score-based keys return a risk score without showing a puzzle, so you can log scores against outcomes before deciding on any action. - [Kairal](https://www.kairal.io/product/bot-protection/) has a preview mode that shows the decisions it would take without blocking, shows the evidence behind each decision in its console, and fails open if an evaluation times out. ## Common questions ### What is a false positive in bot detection? It is a real person treated as a bot: blocked, served a challenge they cannot pass, or shown degraded content. The opposite error, a bot treated as a person, is a false negative, and every threshold trades one for the other. ### What false positive rate is acceptable? There is no standard number. Set a ceiling per endpoint before you look at results, based on what a wrongly blocked person costs you there. A content page can tolerate an occasional invisible challenge, while a checkout block on a paying customer is expensive every time. ### Why do some real users keep getting challenged? Usually because something stops the pass from sticking or makes their setup look automated: blocked cookies, a privacy extension that stops the detection script, a VPN or office IP with a poor reputation, or an in-app browser that loses storage between visits. ## Related - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [What is browser fingerprinting and how does it work?](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) - [How to detect residential proxies](https://stopbots.io/learn/detection/how-to-detect-residential-proxies.md) # What is a CAPTCHA and how does it work? > A CAPTCHA is a test that tries to tell a person from a program. The site loads a widget that shows a puzzle or runs hidden checks in the browser. When the visitor passes, the widget returns a short-lived token, and the site's server sends that token to the CAPTCHA vendor to confirm it before accepting the form. Category: CAPTCHA and challenges. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/what-is-a-captcha/ CAPTCHA stands for Completely Automated Public Turing test to tell Computers and Humans Apart. Luis von Ahn, Manuel Blum, Nicholas Hopper and John Langford at Carnegie Mellon University coined the term in a 2003 paper. Their idea was to build a test from a problem computers could not yet solve, such as reading warped text, so that any program able to pass it would also mark progress in AI. That bet has played out. Machines now solve most classic puzzles, and modern CAPTCHA services put more weight on hidden checks of the browser than on the answer. ## How does a CAPTCHA work? Hosted CAPTCHAs such as reCAPTCHA, hCaptcha and Cloudflare Turnstile all follow the same steps: 1. Your page loads the vendor's script with your public site key. 2. The widget runs checks in the browser and, if the risk looks high, shows a puzzle. 3. When the visitor passes, the vendor issues a token and the widget puts it in a hidden form field. 4. The browser submits the form with the token. Your server sends the token and your secret key to the vendor's verification endpoint. 5. The vendor answers with success or failure, plus details such as the hostname where the test ran and when it ran. Your server then accepts or rejects the request. Here is step 4 for reCAPTCHA, using the endpoint from [Google's verification docs](https://developers.google.com/recaptcha/docs/verify): ```http POST /recaptcha/api/siteverify HTTP/1.1 Host: www.google.com Content-Type: application/x-www-form-urlencoded secret=YOUR_SECRET_KEY&response=TOKEN_FROM_THE_FORM&remoteip=203.0.113.7 ``` ```json { "success": true, "challenge_ts": "2026-11-24T10:15:02Z", "hostname": "shop.example.com" } ``` Check step 4 first when you audit a form. If the server never calls the verification endpoint, the widget is decoration: a bot can post the form directly without loading the page. Tokens are short-lived and single use. Google's tokens are valid for two minutes, and a second verification of the same token fails with `timeout-or-duplicate`. ## What types of CAPTCHA are there? - Distorted text. The visitor types letters from a warped image. This was the first common type. Machine learning reads it reliably, so few sites still depend on it. - Image selection. "Select all squares with traffic lights." reCAPTCHA v2 and hCaptcha show grids like this when they want more evidence. - Audio. Spoken digits or words for visitors who cannot see the image. Speech recognition models handle many of these. - Checkbox. The "I'm not a robot" box. The click matters less than what the widget measures around it: the browser, its cookies and how the visitor reached the box. - Score only. reCAPTCHA v3 shows nothing and returns a score from 0.0 to 1.0, and your code decides what to do. See [reCAPTCHA v2 vs v3](https://stopbots.io/learn/captcha/recaptcha-v2-vs-v3.md). - Managed and invisible challenges. Turnstile runs browser checks and shows at most a checkbox. - Proof of work. The browser spends some CPU time on a hash puzzle and the visitor sees a short wait. See [proof-of-work challenges](https://stopbots.io/learn/captcha/proof-of-work-challenges.md). - Sliders and games. Drag a piece into a gap, or turn an object upright. ## Where do websites use CAPTCHA? They appear where an automated request costs the site something. Sign-up forms attract fake accounts. Login forms attract [credential stuffing](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md), where bots try leaked username and password pairs. Contact and comment forms attract spam. Checkout and gift card balance pages attract card testing. Ticket and limited-release sales attract scalpers. Password reset and SMS code requests attract bots that run up messaging bills. Put the check on the action that costs money or creates an account, not on every page view. Each visible challenge loses some real visitors, and challenges on every page teach people to click through without reading. ## What does passing a CAPTCHA prove? A valid token shows that someone or something passed the test for your site key within the last few minutes. It does not show that the visitor is a person, that it is the same visitor as last time, or that the request is honest. Bots get valid tokens from [CAPTCHA solving services](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md), which pass the test with human workers or machine learning models and sell the token. For this reason the vendors now lean on the hidden checks: whether the browser is consistent with what it claims to be, the reputation of the IP address, cookies from earlier visits and how the page was used. That is the same work as [bot detection](https://stopbots.io/learn/detection/how-bot-detection-works.md), done once at the moment of the form. Sites with real attack pressure run those checks on every sensitive request and keep the puzzle for the few visitors whose evidence is unclear. ## Common questions ### Why is CAPTCHA used? To make each automated attempt slower or more expensive than it is worth. That is enough to stop low-effort spam scripts, but a pass tells you nothing about who is behind the request. ### What is the difference between CAPTCHA and reCAPTCHA? CAPTCHA is the general name for any test of this kind. reCAPTCHA is one product: it started at Carnegie Mellon, Google acquired it in 2009, and it now runs as v2 (checkbox and image challenges) and v3 (a score with no challenge). ### Are CAPTCHAs used to train AI? The original reCAPTCHA showed words from scanned books that OCR software could not read, so human answers helped digitise text, as its creators described in Science in 2008. Image challenges collect human labels for photos, so read each vendor's terms to see what it does with the answers. ## Related - [Do CAPTCHAs stop bots?](https://stopbots.io/learn/captcha/do-captchas-stop-bots.md) - [How CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) # Do CAPTCHAs stop bots? > CAPTCHAs stop cheap bots, such as scripts that post forms without running a browser. They do not stop attackers who buy solved tokens, use AI models that read image puzzles, or drive real browsers that pass the hidden checks. Treat a CAPTCHA as one cost added to each automated attempt, and back it with server-side checks on the same request. Category: CAPTCHA and challenges. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/do-captchas-stop-bots/ A CAPTCHA puts a price on each automated attempt. A spam script that hits thousands of contact forms will not pay that price for one site, so the spam stops. An attacker testing stolen passwords or buying limited stock will pay it, because a solved token costs much less than what one successful request is worth. Whether CAPTCHAs stop bots on your site depends on which of these two groups you face. ## What do CAPTCHAs still stop? - Scripts that send HTTP requests without running JavaScript. They never get a token, so their submissions fail as long as your server verifies tokens. - Generic spam bots that look for any open form on the web. They rarely spend money on a single target. - Mass sign-ups by people with no budget for solving services. - Scrapers that follow form actions by accident. ## What gets past a CAPTCHA? - Solving services. The bot sends your site key and page URL to a service, which returns a valid token produced by a human worker or a model. See [how CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md). - AI models. Researchers at ETH Zurich reported solving 100% of reCAPTCHA v2 image challenges with object detection models, against 68 to 71% in earlier work ([Plesner, Vontobel and Wattenhofer, 2024](https://arxiv.org/abs/2409.08831)). The same paper found that reCAPTCHA v2 relies heavily on cookies and browser history when it decides, so the puzzle answer carries less weight than many site owners assume. More in [can AI solve CAPTCHAs](https://stopbots.io/learn/captcha/can-ai-solve-captchas.md). - Real browsers. Automation frameworks drive full Chrome or Firefox, often through [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) that make traffic look like home broadband. Low-friction checks that only look at the browser can score these as human. - Missing server checks. If the server does not verify the token, or treats a failed verification as a pass, bots skip the widget and post the form directly. - Side doors. The CAPTCHA protects the web signup form, but the mobile app API or an older form that creates the same accounts has none. ## How can you tell if your CAPTCHA is working? Log every verification with the endpoint, the vendor's response fields and what happened to the request afterwards. Then look at these: - Pass rate per endpoint during an attack. If nearly every attempt passes, the CAPTCHA is not what stops the attack. - What happens after the pass. Accounts that pass and are banned within days, or logins that pass the CAPTCHA and then fail on the password at a high rate, mean bots are getting tokens. - Error codes. A rise in `timeout-or-duplicate` or `invalid-input-response` means bots are replaying or forging tokens. That is the check doing its job. - Hostname. A verified token whose `hostname` is not yours means your site key is being solved somewhere else. - Time from page load to submit. Human timings spread out. Scripts cluster, and solving services add a delay that is often longer and more regular than your users' typing. - Network origin. Passes from data centre ASNs on a consumer site deserve a look. An ASN is the number that identifies a network, such as a hosting provider or an ISP. ## Should you rely on a CAPTCHA? Use this as a starting point and adjust it to what your logs show: - Contact and comment forms on a small site: a honeypot field and a free low-friction challenge are usually enough. See [how to stop form spam](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md). - Signup, login, checkout and anything with resale value: use the CAPTCHA as one signal among several. Add rate limits per account and per IP address, device and network checks, and an extra verification step for risky sessions. [How to stop bots on your website](https://stopbots.io/learn/implementation/how-to-stop-bots-on-your-website.md) covers these layers. - A puzzle for every visitor: avoid it. It costs conversions and locks out some disabled users, and the bots that matter pass it anyway. [CAPTCHA alternatives](https://stopbots.io/learn/captcha/captcha-alternatives.md) lists options with less friction. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/): a free challenge that runs browser checks and shows at most a checkbox, enough for many small sites. - [hCaptcha](https://www.hcaptcha.com/): checkbox and image challenges, with a free tier and paid plans that add risk scores. - [Google reCAPTCHA](https://cloud.google.com/security/products/recaptcha): v2 challenges or v3 scores, a common choice for teams already on Google Cloud. - [Friendly Captcha](https://friendlycaptcha.com/): proof of work plus risk signals with no image puzzles, from a German company. - [Kairal](https://www.kairal.io/product/bot-protection/): bot and fraud detection that connects device, network and behaviour signals across login, signup and checkout, and verifies suspicious visitors with invisible challenges instead of puzzles. ## Common questions ### Are CAPTCHAs still effective? Against low-effort automation, yes, and that is enough for many small sites with form spam. They are weak on high-value targets such as login, gift cards and limited stock, where a solved token costs far less than what the attacker gains from the request. ### Can CAPTCHA prevent DDoS? A CAPTCHA widget on a form does not stop a flood, because every request still reaches your server. Challenge pages run by a CDN or reverse proxy can absorb some application-layer floods, since requests without a valid clearance cookie never reach the origin. Network-layer attacks need DDoS protection from your host or CDN. ### Should I add CAPTCHA to my website? Add one where automated submissions cost you something and simpler measures have failed. Start with a honeypot field and rate limits, then add a low-friction challenge on signup and login, and show puzzles only to traffic that already looks risky. ## Related - [Can AI solve CAPTCHAs?](https://stopbots.io/learn/captcha/can-ai-solve-captchas.md) - [How CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [How to stop bots on your website](https://stopbots.io/learn/implementation/how-to-stop-bots-on-your-website.md) # Can AI solve CAPTCHAs? > Yes. Machine learning models read distorted text and pick objects in image grids as well as people do, and published research has solved every reCAPTCHA v2 image challenge it was given. What still slows bots down is the hidden part of modern challenges: checks on the browser, the network and behaviour, which a model cannot pass just by answering the puzzle. Category: CAPTCHA and challenges. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/can-ai-solve-captchas/ CAPTCHA was designed as a bet. In their 2003 paper the Carnegie Mellon authors proposed building tests from problems AI could not yet solve, so that either the test kept bots out or breaking it would advance AI. Both halves came true in turn. In 2013 a Google team reported 99.8% accuracy on the hardest category of reCAPTCHA text puzzles, using a model built to read house numbers in Street View photos ([Goodfellow et al.](https://arxiv.org/abs/1312.6082)). In 2024 researchers at ETH Zurich solved 100% of the reCAPTCHA v2 image challenges they attempted, and found no significant difference between the number of challenges humans and their bot needed to pass ([Plesner, Vontobel and Wattenhofer](https://arxiv.org/abs/2409.08831)). ## How do AI models solve CAPTCHAs? - Distorted text. Optical character recognition models trained on warped characters read them reliably. Training data is cheap, because anyone can generate millions of synthetic CAPTCHA images with known answers. - Image grids. Object detection models find the traffic lights, buses or crosswalks in each tile. The ETH Zurich study used YOLO models, a widely used family of open object detectors. - Audio. Speech recognition transcribes spoken digits and words. Audio is the fallback for visitors who cannot see the image, so it has to stay easy enough for people, which also keeps it easy for machines. - Sliders and rotation puzzles. Computer vision finds the gap or the angle, and the script moves the pointer. - Anything new. Multimodal language models can read an instruction such as "select all squares with bicycles" and act on the image without being trained for that exact puzzle. When models fail on a new puzzle type, bots send it to human solving farms instead. [How CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) covers that route. ## Why do modern CAPTCHAs look at more than the answer? The answer is cheap to produce, and current designs reflect that. The ETH Zurich paper found that reCAPTCHA v2 relies heavily on cookies and browser history to decide whether a visitor is human. reCAPTCHA v3 has no puzzle at all and returns a score. Cloudflare Turnstile shows no images and decides from browser checks. So a current CAPTCHA is mostly [bot detection](https://stopbots.io/learn/detection/how-bot-detection-works.md) carried out at one moment. A model that can read every puzzle still has to run inside an environment that looks like an ordinary browser on an ordinary network. Headless browsers, data centre IP addresses, browser properties that contradict the User-Agent and many accounts sharing one device fingerprint still stand out. [Headless browser detection](https://stopbots.io/learn/detection/headless-browser-detection.md) explains the signals. ## How do AI agents deal with CAPTCHAs? Browser agents, AI systems that operate a web browser for a user, add a new kind of visitor. Some are built to stop and ask the user to take over at a CAPTCHA or a login page. Others try to solve the challenge or route it to a person. OpenAI's GPT-4 system card describes a test run by the Alignment Research Center in which the model messaged a TaskRabbit worker to solve a CAPTCHA for it. When the worker asked whether it was a robot, the model said it had a vision impairment ([GPT-4 system card](https://cdn.openai.com/papers/gpt-4-system-card.pdf)). For site owners this means a CAPTCHA blocks the agents that behave well and stop, while agents that pay or solve get through. Decide first whether you want agent traffic on a given page, then identify and handle it on that basis. [AI agents vs bots](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) covers the options. ## What should you do instead of a harder puzzle? Harder puzzles hurt people before they hurt bots: every step up in difficulty fails more real visitors, while models keep improving. Put the weight on checks that a model cannot answer its way past: - Verify every token on the server and check its hostname, action, age and single use. - Compare the network layer with the browser's claims. A TLS fingerprint, a hash of how the client opens an encrypted connection, that does not match the claimed browser is a strong sign of automation. See [TLS fingerprinting with JA3 and JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md). - Count attempts per account, device and IP range, and slow down or block bursts. - Ask for a stronger step only on risky actions: email confirmation at signup, passkeys or one-time codes at login, payment authentication at checkout. - Treat declared AI agents and crawlers as their own category, with an allow, limit or block decision per path. ## Common questions ### Does CAPTCHA work against AI? The puzzle itself does little against current models. The checks around it still add cost, because an AI agent has to run in a browser and on a network that pass the vendor's risk checks, and modern CAPTCHA services put most of their weight there. ### Can CAPTCHA be automated? Yes. Bots automate CAPTCHAs with their own models or by sending them to a solving service that returns a token. Tokens expire within minutes and work only once, so bots cannot stockpile them and have to solve on demand, one token per protected request. ### Can AI agents like ChatGPT get past CAPTCHAs? Some browser agents can click checkbox challenges or read image puzzles, and some products are built to stop and hand control back to the user instead. Whether an agent gets through depends more on how its browser and network look to the vendor than on its ability to read the image. ## Related - [How CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) - [Do CAPTCHAs stop bots?](https://stopbots.io/learn/captcha/do-captchas-stop-bots.md) - [AI agents vs bots: how to treat agentic traffic](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) - [How to detect headless Chrome and automated browsers](https://stopbots.io/learn/detection/headless-browser-detection.md) # How CAPTCHA solving services work > A CAPTCHA solving service takes the site key and page URL of a CAPTCHA, solves it on its own side with human workers or machine learning models, and returns the token. The bot submits that token with its request. The site only catches this if its server checks more than success: hostname, action, score, token age, single use and the session the token belongs to. Category: CAPTCHA and challenges. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/how-captcha-solvers-work/ Solving services sell completed CAPTCHAs in bulk. They work because a token from reCAPTCHA, hCaptcha or Turnstile is a bearer token: whoever holds it can submit it, and the vendor's verification endpoint confirms only that the token is genuine, unexpired and unused. It does not confirm which browser solved it. ## What kinds of CAPTCHA solvers are there? There are two kinds, and many services sell both behind one API. - Human solving farms. Workers paid per solve complete CAPTCHAs from a work queue, and the service passes the result back to the bot. People handle a new puzzle type the day it appears but are slower than a model. The setup resembles [click farms](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md), with the labour sold through an API. - Automated solvers. Machine learning models classify image tiles, read text, transcribe audio and find slider positions. They are faster and cheaper per solve, and they cover the puzzle types that are common enough to train for. Many services try a model first and send failures to people. [Can AI solve CAPTCHAs](https://stopbots.io/learn/captcha/can-ai-solve-captchas.md) covers the research. ## How does the token flow work? 1. The bot loads the target page, or reads it once, and takes the public site key and the page URL. The site key sits in a `data-sitekey` attribute, or in the script URL for reCAPTCHA v3. 2. It sends both to the service's API, sometimes with the expected action name and a proxy for the service to use. 3. The service loads the vendor's widget for that site key and URL, and a worker or model passes it. The vendor issues a token. 4. The service returns the token to the bot. 5. The bot puts the token in the field your form expects (`g-recaptcha-response`, `h-captcha-response` or `cf-turnstile-response`) and submits. 6. Your server sends the token to the vendor's siteverify endpoint and gets back `"success": true`. The vendor saw a real solve, so the token is real. A valid token proves a puzzle was solved somewhere, not that this visitor solved it. ## How do you make solved tokens less useful? Run these checks on your server after the siteverify call. - Verify every token. On login, signup and checkout, treat a failed or timed-out verification as a failure. - Check `hostname` against the host that served the form, and keep the domain restriction on your site key switched on in the vendor console. - Check `action` (reCAPTCHA v3 and Turnstile). Give each form its own action name, so a token solved for the newsletter form fails on login. - Check the score where you get one (reCAPTCHA v3, hCaptcha Enterprise). Solved tokens can carry good scores, so a high score is not proof. Use the score to decide when to ask for an extra step. - Check age. Vendors expire tokens within minutes, but you can set a shorter limit by comparing `challenge_ts` with the current time, based on how long real users take on that form. - Reject reuse. Vendors treat tokens as single use, but [Turnstile's documentation](https://developers.cloudflare.com/turnstile/get-started/server-side-validation/) notes that redemption tracking is eventually consistent, so repeats sent close together may pass. Keep your own record of redeemed tokens until they expire. - Bind the token to the session. Turnstile lets you pass up to 255 characters of your own data (`cData`) when the widget renders and returns it from siteverify. Put an HMAC of the session ID there and compare it on the server. This kills pools of pre-solved tokens and tokens shared between sessions. A bot that copies your `cData` into its request to the solver still gets a matching token, so binding raises the cost of each solve without closing the route. - Send `remoteip`. It is optional in all three APIs and gives the vendor one more input. hCaptcha also accepts a `sitekey` parameter, so a token issued for a different site key fails ([hCaptcha docs](https://docs.hcaptcha.com/)). Render the widget with the action and the session tag: ```html
``` Then check everything on the server (Node.js 18 or later): ```js import { createHmac } from "node:crypto"; const sessionTag = (sessionId) => createHmac("sha256", process.env.CDATA_KEY).update(sessionId).digest("hex"); const MAX_AGE_MS = 120_000; async function verifyTurnstile(token, { sessionId, ip, action, hostname, seen }) { const body = new URLSearchParams({ secret: process.env.TURNSTILE_SECRET, response: token, remoteip: ip }); const res = await fetch("https://challenges.cloudflare.com/turnstile/v0/siteverify", { method: "POST", body }); const data = await res.json(); if (!data.success) return "failed"; if (data.hostname !== hostname) return "wrong-hostname"; if (data.action !== action) return "wrong-action"; if (data.cdata !== sessionTag(sessionId)) return "other-session"; if (Date.now() - Date.parse(data.challenge_ts) > MAX_AGE_MS) return "too-old"; if (await seen(token)) return "reused"; return "ok"; } ``` `seen` stores the token and reports whether it was already there, for example with Redis `SET token 1 NX EX 300`. The two-minute `MAX_AGE_MS` is a starting point. Log the result codes, because each one tells you which shortcut a bot tried. ## What does solver use look like in your logs? - The time between widget render and token arrival is longer and more uniform than for your users. - Requests carry a valid token but the session shows no page view, asset load or JavaScript beacon before the submit. - Your own widget callback never fired. If your page script records when the widget hands over a token, a submission whose token never passed through that callback came from somewhere else. - Many successful verifications come from one device fingerprint or a few IP ranges, each for a new account. [Browser fingerprinting](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) is how you link them. - A valid token arrives with signs of automation on the same request, such as a TLS fingerprint that does not match the claimed browser. Kairal's blog has a second walk-through of [how CAPTCHA solvers work](https://www.kairal.io/blog/how-captcha-solvers-work/). For a side-by-side of what each vendor returns, see [reCAPTCHA vs hCaptcha vs Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/): a free challenge whose `action` and `cData` fields let you tie tokens to a form and a session. - [Google reCAPTCHA](https://cloud.google.com/security/products/recaptcha): v3 returns a score and action for each token, useful for deciding when to ask for an extra step. - [hCaptcha](https://www.hcaptcha.com/): siteverify accepts the expected site key, and the Enterprise tier adds a risk score. - [Fingerprint](https://fingerprint.com/): device identification that links many token-carrying signups back to one device, with a free [open source library](https://github.com/fingerprintjs/fingerprintjs) for small sites. - [Kairal](https://www.kairal.io/product/bot-protection/): checks device, network and behaviour signals on the same request as the token, with protection set per endpoint and invisible challenges in place of puzzles. ## Common questions ### Are CAPTCHA solvers illegal? It depends on the jurisdiction and on what the tokens are used for. Using them to commit fraud, take over accounts or break access controls can fall under computer misuse and fraud laws, and the US BOTS Act covers getting around security measures on ticket sites. This is not legal advice. ### How long does a CAPTCHA token last? reCAPTCHA tokens are valid for two minutes, Turnstile tokens for 300 seconds and hCaptcha tokens for 120 seconds by default, according to each vendor's documentation. All three treat tokens as single use. ### Can CAPTCHA be bypassed? Yes: by solving it elsewhere and passing on the token, by AI models, or by skipping it entirely when the server does not verify tokens. Server-side verification closes the last route. The first two need checks beyond the CAPTCHA itself. ## Related - [Can AI solve CAPTCHAs?](https://stopbots.io/learn/captcha/can-ai-solve-captchas.md) - [reCAPTCHA vs hCaptcha vs Cloudflare Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md) - [How do click farms work?](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md) - [What is browser fingerprinting and how does it work?](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) # reCAPTCHA vs hCaptcha vs Cloudflare Turnstile > All three put a widget on your form and return a token that your server verifies. reCAPTCHA is Google's, offers v2 challenges or v3 scores, and is billed through Google Cloud above a no-cost tier. hCaptcha shows checkbox and image challenges, positions itself around privacy and sells paid tiers. Turnstile runs browser checks without image puzzles and is free to use. Category: CAPTCHA and challenges. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile/ The three services work the same way. A script on your page renders a widget, the widget decides whether the visitor needs a visible challenge, and a token goes into a hidden form field. Your server posts that token and your secret key to the vendor's siteverify endpoint and reads the answer. The differences are in what visitors see, what your server gets back, how the vendor handles data and how you pay. ## How do reCAPTCHA, hCaptcha and Turnstile compare? | | reCAPTCHA | hCaptcha | Cloudflare Turnstile | |---|---|---|---| | What visitors see | v2: checkbox, image grid when risk is high. v3: nothing (a badge) | Checkbox, image challenges when risk is high | At most a checkbox, no image puzzles | | Score sent to your server | v3: 0.0 to 1.0 | Enterprise tier only | No, pass or fail | | Your own data in the token | `action` (v3) | Not returned by the standard API | `action` and `cData` | | Token field name | `g-recaptcha-response` | `h-captcha-response` | `cf-turnstile-response` | | Token lifetime | 2 minutes | 120 seconds by default | 300 seconds | | Pricing model | No-cost tier, then billed through Google Cloud | Free tier and paid plans | Free to use | Sources: Google's [v3 guide](https://developers.google.com/recaptcha/docs/v3) and [verification docs](https://developers.google.com/recaptcha/docs/verify), the [hCaptcha developer docs](https://docs.hcaptcha.com/) and Cloudflare's [Turnstile server-side validation](https://developers.cloudflare.com/turnstile/get-started/server-side-validation/) page. Prices and free tier limits change, so check each vendor's pricing page. ## What does each one look like to visitors? reCAPTCHA v2 shows the "I'm not a robot" checkbox and, when it is unsure, a grid of photos to select. v3 shows no challenge, only a badge in the corner, and leaves the decision to your code. The trade-offs between them are in [reCAPTCHA v2 vs v3](https://stopbots.io/learn/captcha/recaptcha-v2-vs-v3.md). hCaptcha shows a checkbox and image challenges in the same style as reCAPTCHA v2. It also has an invisible mode bound to a button, which still shows a challenge when the risk is high. Turnstile has three widget modes. Managed mode picks between a non-interactive check and a checkbox based on risk. Non-interactive mode shows a spinner while it runs. Invisible mode shows nothing at all. None of them asks the visitor to read text or label images, which matters if many of your visitors use screen readers or small screens (see [CAPTCHA, conversion and accessibility](https://stopbots.io/learn/captcha/captcha-conversion-and-accessibility.md)). ## What does your server get back? All three accept the same form-encoded POST with `secret`, `response` and an optional `remoteip`, and all three return `success`, `challenge_ts` and `hostname`. One function covers them (Node.js 18 or later, which has `fetch` built in): ```js const VERIFY_URLS = { recaptcha: "https://www.google.com/recaptcha/api/siteverify", hcaptcha: "https://api.hcaptcha.com/siteverify", turnstile: "https://challenges.cloudflare.com/turnstile/v0/siteverify", }; async function verifyCaptcha(vendor, secret, token, remoteip) { const body = new URLSearchParams({ secret, response: token }); if (remoteip) body.set("remoteip", remoteip); const res = await fetch(VERIFY_URLS[vendor], { method: "POST", body }); if (!res.ok) return { success: false, "error-codes": [`http-${res.status}`] }; return res.json(); } ``` What you check after that differs. With reCAPTCHA v3 you compare `action` and decide on the `score`. With Turnstile you compare `action` and `cdata`, which you can use to tie a token to one session. With hCaptcha you can send the expected `sitekey` in the request, and Enterprise customers get a `score`. On every vendor, check `hostname`. A token that verifies proves only that someone solved the challenge, which is why [CAPTCHA solving services](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) work against all three. ## What about privacy and GDPR? Each service runs code in the visitor's browser and receives their IP address and browser details on the vendor's servers. Under the GDPR that is personal data, so you need a legal basis, a mention in your privacy notice and the right contract with the vendor. Some points to check: - reCAPTCHA. Google's FAQ says it sets a necessary cookie, `_GRECAPTCHA`, for risk analysis. You may hide the badge only if you show reCAPTCHA branding in the user flow, with links to Google's Privacy Policy and Terms of Service. Check whether your terms make Google a processor for this data or give it its own purposes, since that changes what you must tell users. - hCaptcha. It markets itself on privacy. Read its privacy policy and data processing terms for what it collects and keeps. - Turnstile. Cloudflare's documentation says Turnstile does not access, store or transmit form entries or other page inputs. Its privacy terms cover the signals it does collect. In the EU, reading information from a device can also fall under ePrivacy consent rules, and regulators differ on how they treat security checks. The answer depends on jurisdiction and this is not legal advice. [Bot protection and GDPR](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) covers the questions to ask. ## Which one should you choose? Use these rules as a starting point: - You want a score to drive your own logic, and you already run on Google Cloud: reCAPTCHA v3, with a v2 fallback for low scores. - You want no image puzzles and no cost: Turnstile. - You want a vendor other than Google, with image challenges for higher-risk traffic and paid tiers: hCaptcha. - You want no puzzle and data kept in Europe, or no third party at all: look at Friendly Captcha or a self-hosted [proof-of-work challenge](https://stopbots.io/learn/captcha/proof-of-work-challenges.md). - Login, signup or checkout are under paid attack: none of the three is enough alone. Add device and network detection, as covered in [how to choose bot protection](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Google reCAPTCHA](https://cloud.google.com/security/products/recaptcha): v2 checkbox and image challenges or v3 scores, managed through Google Cloud. - [hCaptcha](https://www.hcaptcha.com/): checkbox and image challenges with a free tier and paid plans that add features such as risk scores. - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/): a free, puzzle-free challenge that works on any site, enough for many small sites. - [Friendly Captcha](https://friendlycaptcha.com/): proof of work plus risk signals with no image tasks, from a German company with EU hosting options. - [Kairal](https://www.kairal.io/product/bot-protection/): for teams that want to drop the CAPTCHA widget, it scores device, network and behaviour signals per endpoint and verifies suspicious visitors with invisible challenges. ## Common questions ### Does reCAPTCHA cost money? reCAPTCHA has a no-cost tier with usage limits, and usage above it is billed through Google Cloud. Google has changed these terms over time, so check the current Google Cloud reCAPTCHA pricing page before you plan around them. ### hCaptcha vs Turnstile: which is easier to switch to? Both follow the same pattern as reCAPTCHA: a script tag, an element with data-sitekey, a hidden response field and a POST to siteverify with secret and response. Moving between them is mostly a change of script URL, field name, endpoint and keys. ### Do I need to use Cloudflare's CDN to use Turnstile? No. Cloudflare's documentation says Turnstile can be embedded in any website without sending traffic through Cloudflare. You need a Cloudflare account to create the widget and get its keys. ## Related - [reCAPTCHA v2 vs v3: which one stops more bots?](https://stopbots.io/learn/captcha/recaptcha-v2-vs-v3.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [Bot protection and GDPR: is fingerprinting legal?](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) - [How to choose bot protection software](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md) # reCAPTCHA v2 vs v3: which one stops more bots? > reCAPTCHA v2 asks the visitor to tick a box and sometimes pick images, then returns pass or fail. v3 never shows a challenge. It returns a score from 0.0 (likely a bot) to 1.0 (likely human) with the action name, and your code decides what to do. v3 blocks only what your own thresholds block, so its protection depends on how you tune them. Category: CAPTCHA and challenges. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/recaptcha-v2-vs-v3/ Both versions use the same token model and the same siteverify endpoint. The difference is who makes the decision. With v2, Google decides: the visitor passes the checkbox or image challenge, or fails it. With v3, Google sends a score for every request and leaves the decision, and the tuning, to your code. ## How does reCAPTCHA v2 work? v2 comes in three forms: the "I'm not a robot" checkbox, an invisible variant bound to a button that only shows a challenge when it is unsure, and a version for Android apps. When the visitor ticks the box, reCAPTCHA scores the browser and its history with Google. If that is not enough, it shows an image grid ("select all squares with buses"). Your server gets `success`, `challenge_ts` and `hostname`. There is no score, so every token that verifies counts as a pass and the gate is Google's decision. Researchers at ETH Zurich solved all the v2 image challenges they attempted with object detection models, and found that v2 relies heavily on cookies and browser history ([Plesner, Vontobel and Wattenhofer, 2024](https://arxiv.org/abs/2409.08831)). Bots also buy v2 tokens from [solving services](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md). ## How does reCAPTCHA v3 work? v3 runs in the background and returns a token for a named action. [Google's v3 guide](https://developers.google.com/recaptcha/docs/v3) gives the details that matter: - The score runs from 0.0 to 1.0, where 1.0 is very likely a good interaction and 0.0 very likely a bot. - "By default, you can use a threshold of 0.5." - You should verify that the action name is the one you expect, and actions must not be user-specific. - Tokens expire after two minutes, so request the token when the visitor submits, not when the page loads. - Google recommends running v3 on forms and also in the background of pages, which gives it more context. On the page, after loading `https://www.google.com/recaptcha/api.js?render=YOUR_SITE_KEY`: ```js const form = document.getElementById("signup-form"); form.addEventListener("submit", (event) => { event.preventDefault(); grecaptcha.ready(() => { grecaptcha.execute("YOUR_SITE_KEY", { action: "signup" }).then((token) => { form.elements.recaptcha_token.value = token; form.submit(); }); }); }); ``` On the server (Node.js 18 or later): ```js async function recaptchaScore(token, ip, expectedAction) { const body = new URLSearchParams({ secret: process.env.RECAPTCHA_SECRET, response: token, remoteip: ip }); const res = await fetch("https://www.google.com/recaptcha/api/siteverify", { method: "POST", body }); const data = await res.json(); if (!data.success || data.action !== expectedAction || data.hostname !== "www.example.com") return null; return data.score; } ``` A `null` result means the token failed, came from another form or came from another host. Reject those outright. ## Does reCAPTCHA v3 stop bots? v3 does not block anything by itself. A score turns into protection only when your code acts on it. Start with bands like these and tune them with your own data: - 0.7 and above: allow. - 0.3 to 0.7: ask for an extra step, such as email confirmation, a v2 checkbox, a one-time code or manual review for payouts. - Below 0.3: block. For spam forms you can accept the submission and discard it, so the bot gets no feedback. Before you enforce, log scores per action for one to two weeks. See where known good customers and known abuse fall, and set thresholds per action, because login and newsletter traffic score differently. Every threshold blocks some real people, so track complaints and lockouts as [false positives](https://stopbots.io/learn/detection/bot-detection-false-positives.md). A high score is not proof either. Bots in real browsers with clean cookies, and tokens from solving services, can score well. Pair the score with limits per account, device and IP address, as described in [rate limiting for bots](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md). ## v2 or v3: which one stops more bots? No independent public benchmark answers this for your traffic. The choice is about who carries the cost and who does the work: - v2 puts a fixed cost on every suspicious visitor and Google decides who that is. It is simple to deploy, but it costs real users time, and machine learning models and human solvers pass its puzzles. - v3 costs visitors nothing visible and lets you respond differently per action. You have to build the thresholds and fallbacks and keep tuning them. A v3 integration that checks only `success` stops little more than scripts that send no token at all. - Combined, v3 runs first and v2 appears only for low scores. Most visitors see nothing, and the doubtful ones get a challenge instead of a block. As a rule of thumb, a small team with a few forms will get more from the v2 checkbox, or a puzzle-free option such as Turnstile ([compared here](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md)). A team that can log, measure and tune should use v3 with step-up checks. ## What are the privacy points? v3 works best when it runs on many pages, which sends more of each visitor's browsing to Google. Google's FAQ says reCAPTCHA sets a necessary cookie, `_GRECAPTCHA`, for its risk analysis. Mention reCAPTCHA in your privacy notice and check whether your jurisdiction's consent rules cover it. That depends on local law and this is not legal advice. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Google reCAPTCHA](https://cloud.google.com/security/products/recaptcha): both v2 and v3, managed through Google Cloud, with a no-cost tier. - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/): a free alternative to v2 with no image puzzles, enough for many small sites. - [hCaptcha](https://www.hcaptcha.com/): checkbox and image challenges similar to v2, with a risk score on its Enterprise tier. - [Friendly Captcha](https://friendlycaptcha.com/): a puzzle-free widget based on proof of work and risk signals. ## Common questions ### Can you use reCAPTCHA v2 and v3 together? Yes. A common pattern runs v3 on the form and, when the score is below your threshold, shows a v2 checkbox challenge instead of rejecting the request. v2 and v3 use separate site keys, so register one of each. ### Is reCAPTCHA v3 invisible? There is no puzzle, but Google requires the reCAPTCHA badge on the page. You may hide the badge only if you show reCAPTCHA branding text, with links to Google's Privacy Policy and Terms of Service, in the user flow. ### Is reCAPTCHA free? There is a no-cost tier with usage limits, and usage above it is billed through Google Cloud. The terms have changed over time, so check Google's current reCAPTCHA pricing page. ## Related - [reCAPTCHA vs hCaptcha vs Cloudflare Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md) - [How CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) - [False positives in bot detection: how to measure and reduce them](https://stopbots.io/learn/detection/bot-detection-false-positives.md) - [Rate limiting for bots: what it stops and what it misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) # CAPTCHA alternatives: how to stop bots without a puzzle > You can replace most CAPTCHA puzzles with checks the visitor never sees: a honeypot field and a minimum fill time on forms, rate limits per IP address and account, invisible browser challenges or proof of work, and device and network risk signals. Ask for an extra step, such as email confirmation, only when a request already looks risky. Category: CAPTCHA and challenges. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/captcha-alternatives/ A CAPTCHA puzzle asks every flagged visitor to prove they are human. Most alternatives move that work out of sight. The browser, the network and the pattern of requests answer the question, and the visitor sees an extra step only when the evidence is weak. ## What can you use instead of a CAPTCHA? - Honeypot fields. A hidden input that people never see and simple bots fill in. Fits contact, comment and newsletter forms. See [honeypots for bot detection](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md). - Minimum fill time. Reject forms submitted faster than a person can type. Fits any form where autofill is unlikely. - Rate limits. Cap attempts per IP address, account and device. Fits login, password reset and one-time code endpoints. See [rate limiting for bots](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md). - Invisible challenges. A script checks the browser and issues a token or cookie, with no puzzle. [How invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md) covers what they collect. - Proof of work. The browser spends some CPU time on a hash puzzle. Fits content sites under crawler load. See [proof-of-work challenges](https://stopbots.io/learn/captcha/proof-of-work-challenges.md). - Risk signals. Device fingerprint, TLS fingerprint, IP type and behaviour, combined into a score on each sensitive request. - Step-up checks. An email link or one-time code, only for risky requests. SMS codes invite [SMS pumping fraud](https://stopbots.io/learn/account-attacks/sms-pumping-fraud.md), so limit them per number and country. - Passkeys for login. WebAuthn credentials cannot be replayed from a leaked password list, which takes away the target of credential stuffing. - Privacy Pass tokens. A trusted issuer, such as the device platform, vouches for the client without revealing who it is. The protocol is standardised in [RFC 9576](https://www.rfc-editor.org/rfc/rfc9576) and its companions, and Apple's Private Access Tokens use it. - App attestation. For mobile apps, [Apple App Attest](https://developer.apple.com/documentation/devicecheck) and [Google Play Integrity](https://developer.android.com/google/play/integrity) confirm that requests come from your real app on a real device. ## How do you add a honeypot and a fill-time check? Add a hidden field and a signed timestamp to the form: ```html
``` Move `.hp` off screen with CSS (`position: absolute; left: -9999px;`). Some bots skip fields hidden with `display: none`. On the server, check both (Node.js): ```js import { createHmac, timingSafeEqual } from "node:crypto"; const SECRET = process.env.FORM_STAMP_SECRET; export function issueFormStamp(now = Date.now()) { const ts = String(now); return `${ts}.${createHmac("sha256", SECRET).update(ts).digest("hex")}`; } export function looksAutomated(fields, now = Date.now()) { if (fields.website) return "honeypot"; const [ts, sig] = String(fields.form_stamp || "").split("."); const expected = createHmac("sha256", SECRET).update(ts || "").digest("hex"); if (!sig || sig.length !== expected.length || !timingSafeEqual(Buffer.from(sig), Buffer.from(expected))) return "bad-stamp"; const age = now - Number(ts); if (age < 3000) return "too-fast"; if (age > 2 * 60 * 60 * 1000) return "expired"; return null; } ``` Three seconds minimum and two hours maximum are starting points. Skip the fill-time check on login forms, where password managers fill fields instantly. Reply to caught submissions with the normal success page, so the bot gets no signal that it failed. ## How do you add rate limits at the edge? In nginx, limit requests to the login location per client IP address: ```nginx limit_req_zone $binary_remote_addr zone=login:10m rate=10r/m; server { location = /login { limit_req zone=login burst=5 nodelay; limit_req_status 429; proxy_pass http://app; } } ``` Ten requests a minute with a burst of five is a starting point. Bots spread across residential proxies send few requests per IP, so add limits per account and per device inside the application as well. ## Which alternative fits which endpoint? - Contact, comments and newsletter: honeypot and fill time. Add an invisible challenge if spam continues, and double opt-in for newsletters. - Signup: invisible challenge, disposable email checks and device signals to catch repeat sign-ups. See [how to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md). - Login: rate limits per account and IP address, breached password checks, passkeys, and step-up for new devices. - Checkout and card forms: velocity limits per card, device and IP, plus your payment provider's risk tools. - Public content under crawler load: proof of work or an edge challenge, with verified search engine crawlers allowed. - APIs: keys, quotas and signed requests. Challenge pages break API clients. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/): a free invisible or managed challenge that replaces reCAPTCHA or hCaptcha widgets with few code changes. - [Friendly Captcha](https://friendlycaptcha.com/): proof of work plus risk signals with no puzzles. The vendor states it is GDPR compliant and meets WCAG 2.2 AA. - [ALTCHA](https://github.com/altcha-org/altcha): an MIT-licensed, self-hosted proof-of-work widget, free and enough for small sites that want no third-party calls. - [Anubis](https://github.com/TecharoHQ/anubis): an open source reverse proxy that puts a proof of work in front of a whole site, built for sites under AI crawler load. - [Kairal](https://www.kairal.io/product/bot-protection/): device, network and behaviour signals with protection set per endpoint, invisible challenges instead of puzzles, and a preview mode that shows decisions before anything is blocked. ## Common questions ### CAPTCHA vs honeypot: which is better? A honeypot costs real users nothing and catches scripts that fill in every field, but a bot that reads your HTML or renders the page can skip it. A CAPTCHA catches more of those at a cost to users. Many sites run the honeypot first and add a challenge only when spam still gets through. ### Is there an open source CAPTCHA alternative? Yes. ALTCHA is an MIT-licensed proof-of-work widget you host yourself, and Anubis, also open source, sits in front of your whole site and makes browsers solve a proof of work first. Neither sends visitor data to a third party, and neither tells you who the visitor is. ### What is the best CAPTCHA alternative for accessibility? Options with no task for the visitor: invisible challenges, proof of work and server-side risk scoring. For login, passkeys remove both the puzzle and the password. Keep a fallback route, such as an emailed link or a support contact, for visitors whose browser fails the check. ## Related - [Honeypots for bot detection: hidden fields and trap links](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md) - [How invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md) - [reCAPTCHA vs hCaptcha vs Cloudflare Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md) - [How to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) # Proof-of-work challenges: how Anubis-style bot checks work > A proof-of-work challenge makes the browser find a number that, combined with a challenge from the server, gives a SHA-256 hash starting with a set number of zeros. Finding it takes many tries and checking it takes one hash. Anubis uses this in front of websites to make mass crawling expensive. It costs bots CPU time but says nothing about who the visitor is. Category: CAPTCHA and challenges. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/proof-of-work-challenges/ Proof of work as a defence against abuse is older than the web's bot problem. Cynthia Dwork and Moni Naor proposed pricing email by computation in 1992, and Adam Back's Hashcash (1997) made the idea practical: the sender attaches a stamp that took real work to find and takes almost none to check. Bot checks apply the same trick to page requests. Each visitor pays a small fee in CPU time, which is cheap for one person and expensive for a crawler requesting millions of pages. ## How does a hashcash-style puzzle work? 1. The server sends a random challenge string and a difficulty, and remembers the challenge or signs it so it can recognise it later. 2. The browser tries nonces (counters) 0, 1, 2 and so on. For each one it computes SHA-256 of the challenge plus the nonce, and it stops when the hex digest starts with the required number of zeros. 3. The browser sends the winning nonce. The server computes one hash, checks the prefix and checks that the challenge is fresh and unused. Each hex digit carries 4 bits, so a random hash starts with d zeros with a probability of 1 in 16^d. The expected number of tries is 4,096 at difficulty 3, 65,536 at difficulty 4 and 1,048,576 at difficulty 5. Each extra zero multiplies the work by 16, so difficulty moves in large steps. The number of tries also varies a lot between visitors. Some find a nonce early, others take several times the average. A minimal solver for the browser: ```js async function solve(challenge, difficulty) { const prefix = "0".repeat(difficulty); const enc = new TextEncoder(); for (let nonce = 0; ; nonce++) { const digest = await crypto.subtle.digest("SHA-256", enc.encode(challenge + nonce)); const hex = Array.from(new Uint8Array(digest), (b) => b.toString(16).padStart(2, "0")).join(""); if (hex.startsWith(prefix)) return { nonce, hash: hex }; } } ``` And the check on the server (Node.js): ```js import { createHash } from "node:crypto"; function verify(challenge, nonce, difficulty) { const hex = createHash("sha256").update(`${challenge}${nonce}`).digest("hex"); return hex.startsWith("0".repeat(difficulty)); } ``` Production implementations run the search in web workers across several CPU cores and also track used challenges, so one solution cannot be replayed. ## How does Anubis bot protection work? [Anubis](https://github.com/TecharoHQ/anubis) is an open source reverse proxy written in Go. It sits between your web server and your application, and its README describes it as protecting upstream resources from scraper bots, especially AI crawlers. It has been widely adopted by open source projects and smaller sites whose code forges, wikis and archives were overloaded by crawlers. Its documentation describes this flow: - A policy file, in YAML or JSON, matches each request by path, User-Agent, headers or IP range and gives it an action: `ALLOW`, `DENY`, `CHALLENGE` or `WEIGH` (adjust a suspicion score). Rules are checked in order, and the first allow, deny or challenge match decides. - In the default policy, requests whose User-Agent contains "Mozilla" get a suspicion weight and are challenged. That covers every mainstream browser and the bots that pretend to be one. Paths such as `/.well-known`, `/robots.txt`, `/favicon.ico` and feed URLs are not challenged, and clients without "Mozilla" in their User-Agent, such as git clients, pass. - The challenge page runs a worker that finds a nonce for a challenge derived from request metadata. Difficulty is the number of leading hex zeros and can be set per rule. - After a valid answer, Anubis sets a cookie holding a signed JWT (a signed JSON token) with the challenge, nonce, hash and expiry. Later requests with a valid cookie go straight through. - A no-JavaScript challenge based on a meta refresh exists. The default policy uses it only for low-suspicion clients, and the documentation warns of a higher false positive rate. - Requests that match no rule are allowed. A minimal policy, adapted from the documentation, with an extra rule placed first. On the search and archive pages, any client without a valid Anubis cookie gets a challenge at difficulty 5, including clients with a non-browser User-Agent: ```yaml bots: - name: expensive-pages path_regex: ^/(search|archive)/ action: CHALLENGE challenge: difficulty: 5 algorithm: fast - name: well-known path_regex: ^/.well-known/.*$ action: ALLOW - name: robots-txt path_regex: ^/robots.txt$ action: ALLOW - name: generic-browser user_agent_regex: Mozilla action: CHALLENGE ``` ## What does proof of work cost, and who pays? - Crawlers pay CPU time for each fresh pass. A crawler that keeps its cookie pays once per cookie lifetime and then requests pages freely until it expires. The cost adds up for crawlers that throw cookies away, rotate identities or run at very large scale. - Attackers with native code pay less. SHA-256 in compiled code or on GPUs runs much faster than JavaScript in a phone browser. Difficulty has to suit the slowest real device you serve, which caps how much it can cost a well-equipped bot. Memory-hard functions such as Argon2id or scrypt narrow that gap, and [ALTCHA](https://github.com/altcha-org/altcha) offers them as options. - Real visitors pay in time and battery, more on low-end phones. They see an interstitial page, and visitors with JavaScript disabled are stuck unless you enable a no-JavaScript method. - Nobody proves who they are. A pass shows that CPU time was spent. It does not show that the client is a person or the same visitor as before. A [headless browser](https://stopbots.io/learn/detection/headless-browser-detection.md) pays the cost and passes. Invisible challenges that check the browser environment add that evidence (see [how invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md)). ## What gaps do you need to cover with your own rules? - The default trigger is the User-Agent. Clients that send a non-browser User-Agent are not challenged unless a rule says so. Add path rules for expensive pages, as in the policy above, and deny clients you never want. - The default action is allow. Anything your rules do not match goes through. - Search engines need explicit rules. Allow them by their published IP ranges with `remote_addresses`, not by User-Agent alone. See [how to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md). - One solved cookie can be copied to many workers. Limit requests per cookie and per IP address at your web server. - Feeds and APIs are left open on purpose, so protect them with authentication and quotas. ## Where does proof of work fit? It fits public content sites, code forges, documentation, wikis and archives whose problem is crawler volume and server load. It also suits teams that want something self-hosted and open source, with no visitor data sent to a third party. [How to block AI crawlers](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) covers the robots.txt and edge rules that go with it. It fits poorly on login, signup and checkout. In credential stuffing or card testing each request is worth more to the attacker than a few seconds of CPU time, and those flows need identity signals that a proof of work does not give. It also fits poorly where most visitors use low-end phones or need an accessible flow with no waiting page, and on APIs, whose clients cannot run the challenge. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Anubis](https://github.com/TecharoHQ/anubis): an open source reverse proxy that challenges browsers with SHA-256 proof of work, free and self-hosted, for sites under AI crawler load. - [ALTCHA](https://github.com/altcha-org/altcha): an MIT-licensed proof-of-work widget for forms, self-hosted, with memory-hard algorithm options. - [Friendly Captcha](https://friendlycaptcha.com/): a hosted widget that combines proof of work with risk signals, for teams that want a managed service. - [Kairal](https://www.kairal.io/product/bot-protection/): for login, signup and checkout, where proof of work alone is not enough, it links device, network and behaviour signals and verifies suspicious visitors with invisible challenges. ## Common questions ### Does Anubis block Googlebot? It can, if your policy does not allow it. Googlebot's User-Agent contains 'Mozilla', which Anubis treats as suspicious and challenges by default. The default policy has an allowlist for known crawlers, and a custom policy file can allow a named crawler only from its published IP ranges, so check that yours covers the search engines you rely on. ### Is proof of work better than a CAPTCHA? It is easier on people: there is no image or text to read, and a slow device only waits longer. It is weaker evidence, because a CAPTCHA service's hidden checks look at the browser and network, while a proof of work only measures spent computation. ### Is there self-hosted bot protection? Yes. Anubis and ALTCHA are open source and run on your own servers, and CrowdSec and fail2ban block abusive IP addresses based on your logs. Self-hosting keeps visitor data away from a vendor, but you maintain the rules and the search engine allowlists yourself. ## Related - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [How to block AI crawlers: robots.txt, Cloudflare and nginx](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) - [How invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md) - [How to detect headless Chrome and automated browsers](https://stopbots.io/learn/detection/headless-browser-detection.md) # Are CAPTCHAs bad for conversion and accessibility? > CAPTCHA puzzles cost every visitor time and lock some out entirely, including many blind, low-vision, deaf-blind and dyslexic users and people with motor or cognitive disabilities. WCAG requires alternatives, and the W3C recommends other methods over image puzzles. The conversion cost differs from site to site, so measure it: track how many visitors see the challenge, fail it and give up. Category: CAPTCHA and challenges. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/captcha-conversion-and-accessibility/ A CAPTCHA has two costs. Every visitor who sees a puzzle spends time on it and some give up. A smaller group cannot pass it at all, because the test assumes they can see, hear, read or move a pointer in a particular way. Both costs fall on the people you want to keep, while the bots that matter buy solved tokens or use models that read the puzzles (see [can AI solve CAPTCHAs](https://stopbots.io/learn/captcha/can-ai-solve-captchas.md)). ## Why are CAPTCHAs an accessibility problem? The W3C first published [Inaccessibility of CAPTCHA](https://www.w3.org/TR/2019/NOTE-turingtest-20191209/) in 2005, and its Accessible Platform Architectures Working Group last updated the Working Group Note in 2019. The problems it describes include: - Visual puzzles fail for blind and low-vision users, and distorted text is hard for people with dyslexia. - Audio alternatives fail for deaf-blind users and are hard to use with background noise or for people listening in a second language. - Image grids, sliders and rotation puzzles need fine pointer control and time, which shuts out some people with motor disabilities. - Puzzles, time limits and logic questions load memory and attention in ways that some people with cognitive disabilities find hard or impossible. The Note discusses alternatives to traditional image-based CAPTCHAs, such as two-step or multi-device verification, and sites should consider them first. ## What does WCAG say about CAPTCHA? [WCAG 2.2](https://www.w3.org/TR/WCAG22/) covers CAPTCHA in two places: - Success criterion 1.1.1 Non-text Content (Level A) has a CAPTCHA provision. Provide a text alternative that identifies and describes the purpose of the CAPTCHA, plus alternative forms that use different senses, so one disability does not block every option. - Success criterion 3.3.8 Accessible Authentication (Minimum), Level AA, says no step in an authentication process may require a cognitive function test unless the site provides an alternative method, a mechanism that helps the user complete it, an object recognition test or a test based on personal content the user gave the site. WCAG defines a cognitive function test as a task where the user has to remember, manipulate or transcribe information, which includes solving puzzles and typing characters. So at Level AA, "select all images with a bus" can rely on the object recognition exception on a login page. Typing distorted characters cannot, so it needs an alternative. The Level AAA criterion, 3.3.9 Accessible Authentication (Enhanced), removes the object recognition and personal content exceptions. In the EU, the European Accessibility Act has applied since 28 June 2025 to many consumer services, including ecommerce. In the US, website accessibility claims are often brought under the Americans with Disabilities Act. What applies to you depends on jurisdiction and on your business, and this page is not legal advice. ## How do CAPTCHAs affect conversion? The loss comes from a few mechanisms you can observe: - Extra time on every form that shows a challenge. - Failures and retries, which push people to leave. - Abandonment on mobile, where image grids are small and keyboards cover the page. - Uneven exposure. Risk-based CAPTCHAs challenge VPN users, privacy-focused browsers, shared mobile carrier IP addresses, in-app browsers and older devices more often, so the same groups see the hardest puzzles again and again. Each blocked real customer is a false positive, and those are easy to miss because the visitor leaves without complaining. [False positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md) explains how to count them. ## How do you measure the cost on your own site? Track a funnel for each protected form: form viewed, challenge shown, challenge passed, form submitted, goal completed. With Turnstile, the widget's callbacks give you the middle steps. Add `data-callback="onChallengePass"`, `data-error-callback="onChallengeError"` and `data-expired-callback="onChallengeExpired"` to the widget element, then: ```js const challengeShownAt = performance.now(); function reportChallenge(result, extra = {}) { const ms = Math.round(performance.now() - challengeShownAt); navigator.sendBeacon("/metrics/challenge", JSON.stringify({ result, ms, form: "signup", ...extra })); } function onChallengePass() { reportChallenge("pass"); } function onChallengeError(code) { reportChallenge("error", { code }); } function onChallengeExpired() { reportChallenge("expired"); } ``` Then: - Split results by device type, browser, country and whether the visitor uses assistive technology, where you have that signal. - Run a holdout. For a set period, send a small share of low-risk traffic (5% is a starting point) through without the challenge and compare completion and abuse rates. - Search support tickets and chat logs for words like "robot", "verify" and "captcha". ## How do you keep protection and lose fewer people? - Challenge only risky requests. Score every request in the background and show a visible step only when the evidence is weak. - Prefer modes with no task: managed or invisible challenges, or [proof of work](https://stopbots.io/learn/captcha/proof-of-work-challenges.md). [How invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md) explains what they check. - Give a fallback that does not depend on one sense, such as an emailed link or a support contact, and say on the page how to reach it. - Leave returning customers on known devices alone, especially at checkout. - Test the flow with a screen reader, keyboard only and at 200% zoom before you ship it. - Compare vendors on accessibility as well as security. [reCAPTCHA vs hCaptcha vs Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md) covers what each shows visitors. Kairal has written about [why friction-based defences stop more users than attackers](https://www.kairal.io/blog/why-friction-based-defenses-stop-more-users-than-attackers/). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/): a free challenge with no image or text puzzles, enough for many small sites. - [Friendly Captcha](https://friendlycaptcha.com/): proof of work plus risk signals with no image tasks. The vendor says it meets WCAG 2.2 AA. - [ALTCHA](https://github.com/altcha-org/altcha): an open source, self-hosted proof-of-work widget. The project says it is built to exceed WCAG 2.2 AA. - [Kairal](https://www.kairal.io/product/bot-protection/): bot and fraud detection that verifies suspicious visitors with invisible challenges instead of puzzles, with a preview mode to see what it would block before enforcing. ## Common questions ### Are CAPTCHAs safe? Real CAPTCHAs from major vendors are safe to complete. Fake CAPTCHA pages are a known malware trick: they tell visitors to press keyboard shortcuts and paste a command to 'verify', which runs malicious code. No real CAPTCHA asks you to run a command or install anything. ### Do CAPTCHAs hurt conversion rates? Every visible challenge adds a step where some visitors give up, and the loss tends to be larger for harder puzzles and on small screens. Published figures vary too much between sites and methods to plan with, so compare completion rates with and without the challenge on your own traffic. ### Is an audio CAPTCHA enough for accessibility? No. It helps blind and low-vision visitors but fails deaf-blind visitors, and it is hard to use in noisy places or in a second language. WCAG asks for alternatives in more than one sensory mode, and an option with no task at all serves everyone better. ## Related - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [reCAPTCHA vs hCaptcha vs Cloudflare Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md) - [False positives in bot detection: how to measure and reduce them](https://stopbots.io/learn/detection/bot-detection-false-positives.md) - [How invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md) # How invisible JavaScript challenges work > An invisible JavaScript challenge sends a small script to the browser, which collects details about the browser and device and sometimes solves a proof of work. The results go back to the server, which compares them with network signals it already holds. If they agree, the visitor gets a signed cookie or token and passes without a puzzle. If not, a harder check or a block follows. Category: CAPTCHA and challenges. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/captcha/javascript-challenges-explained/ The "checking your browser" page in front of a website and the invisible widget on a login form run the same kind of test. Neither asks the visitor to do anything. They run code in the browser, send the results to a server and get a pass or fail back. ## What does a bot check page do? 1. A request arrives at the edge (CDN or reverse proxy) without a valid clearance cookie, and a rule says it needs a check. 2. The edge returns a small HTML page with the challenge script instead of the content. 3. The script collects signals, sometimes solves a proof of work, and posts the results with a one-time challenge ID. 4. The server scores the results together with what it already knows about the connection. 5. On a pass, it sets a signed clearance cookie and redirects to the original URL. On a doubtful result, it can show an interactive check. On a clear fail, it blocks. 6. Later requests carry the cookie and skip the check until it expires. Widgets such as Turnstile follow the same steps inside a form and hand back a token instead of setting a cookie on the whole site. ## What does an invisible challenge collect? Vendors keep their exact checks private and change them often, but the categories are well known: - Whether JavaScript runs at all, and how long the script takes. - Whether the browser's claims agree with each other: the User-Agent string, User-Agent client hints, the platform and the features that browser version should support. - Automation flags. The [WebDriver specification](https://www.w3.org/TR/webdriver/) requires browsers under automation control to report a `webdriver` property set to true. - Rendering. The WebGL renderer name and canvas output. Software renderers such as SwiftShader or llvmpipe are common on servers without a GPU and rare on consumer devices. - Device facts: CPU cores, screen and window sizes, time zone and languages, checked against each other and against the IP address's location. - Interaction, where there is any: pointer movement, focus changes and key timing. A minimal collector looks like this: ```js function collectSignals() { const gl = document.createElement("canvas").getContext("webgl"); const debug = gl && gl.getExtension("WEBGL_debug_renderer_info"); return { webdriver: navigator.webdriver === true, userAgent: navigator.userAgent, platform: navigator.userAgentData?.platform ?? navigator.platform, languages: navigator.languages, cores: navigator.hardwareConcurrency, screen: [screen.width, screen.height, window.outerWidth, window.outerHeight], renderer: debug ? gl.getParameter(debug.UNMASKED_RENDERER_WEBGL) : null, timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone, }; } ``` The server adds what the browser cannot report about itself: the TLS fingerprint of the connection (see [JA3 and JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md)), HTTP/2 settings, header order and the IP address's ASN and reputation. A Chrome User-Agent on a TLS handshake that Chrome never produces is a stronger signal than any single browser property. [Headless browser detection](https://stopbots.io/learn/detection/headless-browser-detection.md) and [browser fingerprinting](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) cover these signals in depth. ## Why does the server have to make the decision? A client that controls its browser can return any values it likes. So the script reports raw values and the server decides: - Issue a fresh challenge ID for each attempt, sign it, and accept each one only once. - Reject results that come back implausibly fast, or from a different IP address than the one that received the challenge. Cloudflare's documentation, for example, says a managed challenge solved from a different IP address is not valid. - Compare the browser's claims with the network layer, because the network layer is harder to fake. - Change the script regularly, so a bot that copied last month's answers fails. ## What does a visitor get after passing? Usually a signed cookie scoped to the site: ```http HTTP/1.1 302 Found Location: /products/123 Set-Cookie: bot_clearance=v1.1764003600.k3f9a1c0; Path=/; Max-Age=1800; Secure; HttpOnly; SameSite=Lax ``` Sign the value with a server key (an HMAC or a signed JWT), include an expiry, and bind it to something about the client, such as a hash of the TLS fingerprint and User-Agent, so a copied cookie fails on another machine. Thirty minutes is a starting point for content pages. Cloudflare's `cf_clearance` cookie lasts for the Challenge Passage time the site owner sets, and Anubis issues a signed JWT cookie after its proof of work. A clearance cookie should lower the bar for browsing. On login, password reset and checkout, check the request again anyway. ## What happens when JavaScript is disabled? The challenge cannot run, so the visitor stays on the interstitial or gets an error. Most real visitors have JavaScript on, screen reader users included. Those without it are mostly using hardened privacy setups, text browsers or locked-down corporate machines. Give them a way forward: ```html ``` Keep low-risk pages, such as help and legal pages, outside the challenge. Let verified search engine crawlers through by confirming their IP addresses, without asking them to run the script (see [how to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md)). ## How do API clients and fetch requests handle challenges? A challenge page is HTML, so a `fetch` call that expects JSON breaks. Cloudflare marks challenge responses with a `cf-mitigated: challenge` header, which front-end code can check: ```js async function loadCart() { const res = await fetch("/api/cart", { credentials: "same-origin" }); if (res.headers.get("cf-mitigated") === "challenge") { showMessage("Please reload the page to continue."); return null; } return res.json(); } ``` Then set up the routes so this rarely happens: - Do not put interstitial challenges on API routes. Authenticate API clients with keys or OAuth, sign requests and set quotas. See [how to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md). - In single-page apps, get the clearance when the page loads, so later API calls carry the cookie. Cloudflare offers Turnstile pre-clearance for this. - Mobile apps have no browser to run the script. Use Apple App Attest or Google Play Integrity instead. - Never challenge webhooks or partner integrations. Allow them by signature or IP range. ## How should you handle challenge failures? - Decide per endpoint what happens when the challenge service times out. Content pages can fail open and let the request through. Payment and password reset can fail closed or fall back to a step-up check. - Cap retries. A page that reloads after every failed attempt can loop forever on a browser that will never pass. After two or three failures in a session, show a static page with another way to continue. - Log every outcome (shown, passed, failed, timed out, error code) by browser and device, and watch the pass rate. Cloudflare reports a [challenge solve rate](https://developers.cloudflare.com/cloudflare-challenges/reference/challenge-solve-rate/) for this. - Allow the challenge in your Content Security Policy. Add `'wasm-unsafe-eval'` only if your vendor's script uses WebAssembly and its documentation says so: ```http Content-Security-Policy: script-src 'self' https://challenge.vendor.example 'wasm-unsafe-eval'; frame-src https://challenge.vendor.example ``` - Expect some setups to fail: in-app browsers inside social apps, extensions that change the User-Agent or canvas and WebGL output, blocked cookies, and IP changes between solving and the next request on mobile networks or VPNs. - Count real customers who fail as [false positives](https://stopbots.io/learn/detection/bot-detection-false-positives.md) and tune the rules that caught them. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) and [Cloudflare challenges](https://developers.cloudflare.com/cloudflare-challenges/): managed and non-interactive challenge pages at the edge, and a free widget for forms on any site. - [Anubis](https://github.com/TecharoHQ/anubis): an open source reverse proxy that issues a proof-of-work challenge and a signed cookie, free for self-hosted sites. - [Friendly Captcha](https://friendlycaptcha.com/): a hosted puzzle-free widget combining proof of work with risk signals. - [Kairal](https://www.kairal.io/product/bot-protection/): invisible challenges backed by device, network and behaviour signals, deployed at the CDN, reverse proxy or API, with a preview mode before enforcement and fail-open handling when an evaluation times out. ## Common questions ### What is a bot check? It is the 'checking your browser' or 'verify you are human' step some sites run before showing a page. It usually finishes on its own in a few seconds and sets a cookie, so the next pages load without the check. ### Why do I keep getting 'verify you are human' loops? A loop usually means the clearance cookie is not stored or not accepted: cookies are blocked, an extension changes browser properties, or the IP address changed between solving the check and the next request. Allowing cookies for the site, turning off extensions there or trying another browser usually fixes it. ### Can a bot pass a JavaScript challenge? Yes. A real browser driven by automation runs the script like any other browser. The challenge then depends on how well the collected details expose automation and how the server combines them with network and behaviour signals, which is why vendors change their scripts often. ## Related - [How to detect headless Chrome and automated browsers](https://stopbots.io/learn/detection/headless-browser-detection.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [Proof-of-work challenges: how Anubis-style bot checks work](https://stopbots.io/learn/captcha/proof-of-work-challenges.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) # What is credential stuffing? > Credential stuffing is an automated attack in which criminals take username and password pairs leaked from one website and try them on the login pages of other websites. It works because many people reuse the same password. Each pair that works gives the attacker a real account, which they drain, resell or use for further fraud. Category: Account attacks. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/what-is-credential-stuffing/ Your site does not need to be hacked for this to happen. If a customer used the same email and password on a forum that leaked its user table, an attacker can log in to that customer's account on your site with a correct password, from what looks like a home connection, using a normal browser. Each single request looks legitimate. The attack only shows up in volume and pattern. OWASP lists credential stuffing as OAT-008 in its catalogue of [automated threats to web applications](https://stopbots.io/learn/bots/owasp-automated-threats.md), separate from credential cracking (OAT-007), where the attacker guesses passwords. ## How does credential stuffing work? 1. The attacker starts with a combo list, a file of email and password pairs compiled from earlier breaches. Lists are merged, cleaned and resold, so the same pairs circulate for years. 2. They point an automation tool at the login form or, often, at the login API used by the mobile app, which may have fewer checks than the website. 3. They spread the traffic over thousands of IP addresses, usually through [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md), so each address makes only a few attempts and looks like a home user. 4. The tool reads each response and sorts pairs into working and failed. Working accounts are called hits. 5. Hits are used directly or sold, often tagged with what the account holds, such as a saved card or a loyalty balance. The attacker does not care which customer they get. They need only a small share of the list to work, and the list costs little. ## Why is credential stuffing effective? Password reuse is the main reason. A person with forty accounts and three passwords turns one leak into dozens of open doors. The attack is also cheap. Combo lists, proxy access and ready-made tools are sold to people with no programming skill, so the cost of each attempt is close to zero and even a low success rate pays. Successful logins look like the real owner. The password is correct, the IP address belongs to a consumer internet provider, and the browser headers match a common browser. Rules that look at one request at a time find nothing wrong. Finally, the login page tells the attacker whether each pair worked. The OWASP Top 10 entry on [authentication failures](https://top10.owasp.org/2025/A07_2025-Authentication_Failures) describes an application that answers this way as a "password oracle". If your error messages also reveal whether an email is registered, the attacker learns even more from the failures. ## What are credential stuffing lists? A credential stuffing list, or combo list, is a text file with one `email:password` pair per line. Older lists come from database breaches. Newer ones often come from infostealer malware on people's computers, which records the site where each password was used, so the pairs are fresher and more likely to work. Defenders can use the same breach data against the attacker. Services such as Pwned Passwords let you check, without sending the password, whether a password appears in known breaches, and refuse it at signup or force a reset. The [prevention guide](https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing.md) shows how. ## What happens after a successful login? The attack becomes [account takeover](https://stopbots.io/learn/account-attacks/what-is-account-takeover.md). What the attacker does next depends on what the account holds: - Orders paid with a stored card, shipped to a new address. - Loyalty points, gift card balances or store credit spent or transferred. - Personal data copied and used for phishing that looks credible because it quotes real orders. - Streaming, gaming or software subscriptions resold as cheap "lifetime" accounts. - The email and password changed, so the real owner is locked out while the attacker works. ## How can you tell it is happening? The first sign is usually a rise in failed logins against your normal rate, with many attempts on email addresses that have no account at all. Look also for many different usernames tried from one device fingerprint and logins that arrive with no page load before them. The full list of signals, with SQL you can run on your own login logs, is in [how to detect credential stuffing](https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing.md). ## How do you stop it? No single control is enough. The usual set is multi-factor authentication, a check of new passwords against breach data, bot detection on every login endpoint including mobile APIs, rate limits per account as well as per IP address, and the same error message for every failed login. Kairal also publishes a guide to [credential stuffing prevention](https://www.kairal.io/blog/credential-stuffing-prevention/). ## Common questions ### Is credential stuffing illegal? Logging in to other people's accounts with stolen credentials is unauthorised access in most countries, for example under the US Computer Fraud and Abuse Act or the UK Computer Misuse Act 1990. The exact offence and penalty depend on the jurisdiction, and this is not legal advice. ### Is credential stuffing a brute force attack? MITRE ATT&CK files it as a sub-technique of brute force (T1110.004). OWASP keeps it separate from credential cracking because nothing is guessed: every password tried was already chosen by a real person on another site. ### Is credential stuffing a data breach? Your database was not breached, but if attackers log in and can see personal data, a regulator may treat that as a personal data breach. The GDPR definition in Article 4(12) includes unauthorised access to personal data, so check your notification duties with counsel. The answer depends on jurisdiction and this is not legal advice. ### What is the difference between credential stuffing and account takeover? Credential stuffing is one way into an account. Account takeover is the result, where someone other than the owner controls the account, whether they got in through stuffing, phishing or a stolen session cookie. ## Related - [Credential stuffing vs brute force vs password spraying](https://stopbots.io/learn/account-attacks/credential-stuffing-vs-brute-force-vs-password-spraying.md) - [How to prevent credential stuffing attacks](https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing.md) - [What are residential proxies and why do bots use them?](https://stopbots.io/learn/bots/what-are-residential-proxies.md) - [What is account takeover (ATO) fraud?](https://stopbots.io/learn/account-attacks/what-is-account-takeover.md) # Credential stuffing vs brute force vs password spraying > Brute force tries many passwords against one account. Password spraying tries a few common passwords against many accounts, staying under lockout limits. Credential stuffing replays username and password pairs leaked from other sites, usually one attempt per account. Per-account lockouts stop brute force but do little against the other two, which need breached password checks, MFA and bot detection. Category: Account attacks. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/credential-stuffing-vs-brute-force-vs-password-spraying/ All three attacks try to log in with passwords the attacker has no right to. They differ in where the passwords come from and how the attempts are spread across accounts, and that decides which of your defences will fire. ## How does each attack work? Brute force targets one account, or a few, and tries password after password until one works. The guesses come from every possible combination or, more often, from a word list of likely passwords (a dictionary attack). MITRE ATT&CK calls the online version [password guessing](https://attack.mitre.org/techniques/T1110/001/), and OWASP calls it credential cracking (OAT-007). Online guessing is slow, so attackers aim it at accounts worth the effort: an admin panel, an SSH server, a WordPress login, one known executive. [Password spraying](https://attack.mitre.org/techniques/T1110/003/) turns that around. The attacker picks one or a few passwords that many people use, such as a season and a year or the company name with a digit, and tries each against a long list of usernames. Each account sees one failed attempt, or two, spaced hours apart, so lockout rules never trigger. It works best where usernames are predictable, such as staff emails in the firstname.lastname format, and it is a common attack on corporate single sign-on, VPN and webmail. [Credential stuffing](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md) skips guessing. The attacker has real email and password pairs leaked from other sites and tries each pair once on your login. Every password in the list belongs to a real person, so the success rate per attempt is far higher than guessing. The traffic is usually spread over thousands of [residential proxy](https://stopbots.io/learn/bots/what-are-residential-proxies.md) addresses. ## How do the three attacks compare? | | Brute force | Password spraying | Credential stuffing | |---|---|---|---| | Source of passwords | Guesses or word lists | A short list of common passwords | Real pairs leaked from other sites | | Attempts per account | Many | One or two, spaced out | Usually one | | Usernames tried | One or a few | Many, often valid staff accounts | Many, mostly emails from the list | | Typical target | Admin panels, SSH, one known account | Corporate SSO, VPN, email | Consumer logins and mobile app APIs | | What stops it first | Per-account delays or lockout | Blocking common passwords, MFA | MFA, breached password checks, bot detection | ## How do they look in your login logs? Brute force is the easiest to see. One username collects dozens or hundreds of failures, often from a single IP address or a small group. A counter of failures per account over 15 minutes finds it. A spray shows as a wave. Many different usernames each fail once within a short window, then the wave repeats hours later with the next password. Most of the usernames are valid, because the attacker built the list from your staff directory or from earlier enumeration. The traffic often comes from a few IP addresses or cloud hosting ranges. Credential stuffing shows a high share of attempts on usernames that do not exist on your site, because the list came from somewhere else. Each username is tried once, the IP addresses are many and mostly residential, and the share of successful logins is higher than a spray would produce. That share of attempts on non-existent accounts is the quickest way to tell stuffing from a spray, which mostly hits valid accounts. [How to detect credential stuffing](https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing.md) gives SQL for each of these patterns. ## Which defences cover which attack? Per-account lockouts or growing delays stop brute force. They do nothing against stuffing, which tries each account once, and sprays are built to stay under them. Lockouts can also be turned against you: an attacker who knows your threshold can lock real customers out, so a delay or an extra check after a few failures is usually the better choice. Per-IP rate limits stop brute force from a single source. They are weak against sprays and stuffing spread over many addresses, as covered in [what rate limits stop and what they miss](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md). Blocking common and breached passwords cuts the supply for spraying and stuffing at once. NIST SP 800-63B-4 requires verifiers to compare new passwords against a blocklist that includes passwords from earlier breaches ([NIST SP 800-63B](https://pages.nist.gov/800-63-4/sp800-63b.html)). Multi-factor authentication stops all three when the password is the only thing the attacker has. It has its own weak points, set out in [does MFA stop account takeover](https://stopbots.io/learn/account-attacks/does-mfa-stop-account-takeover.md). Bot detection at the login endpoint matters most for stuffing, which depends on automation at a scale no human team could type. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [fail2ban](https://github.com/fail2ban/fail2ban) reads server logs and bans IP addresses after repeated failures, which is free and enough against single-source brute force on SSH or a small admin login but misses attacks spread over many addresses. - [CrowdSec](https://www.crowdsec.net/) is open source and blocks addresses using reputation shared across its user community, which suits small sites that want more than local log bans. - [Pwned Passwords](https://haveibeenpwned.com/Passwords) is a free API that tells you whether a password appears in known breaches, so you can refuse it at signup and password change. - [Cloudflare rate limiting rules](https://developers.cloudflare.com/waf/rate-limiting-rules/) count requests to your login path at the edge and fit sites that already run on Cloudflare. - [Kairal](https://www.kairal.io/use-cases/account-takeover/) connects device, network and behavioural signals at login to detect credential stuffing and account takeover, with protection set per endpoint, and fits sites where distributed attacks get past IP limits. ## Common questions ### What is the difference between credential stuffing and a dictionary attack? A dictionary attack runs a list of likely passwords, such as common words and their variants, against an account. Credential stuffing uses the exact password a specific person chose on another site, so the attacker needs only one attempt per account. ### Is password stuffing the same as credential stuffing? Yes. Password stuffing is a less common name for the same attack: replaying leaked username and password pairs on a different site. ### Is credential stuffing a kind of password spraying? Some sources, including the OWASP Top 10 2025 entry on authentication failures, use the term password spraying for attacks that try variations of leaked passwords. MITRE ATT&CK and most security teams use it for a few common passwords tried across many accounts, which is the meaning used on this page. ## Related - [What is credential stuffing?](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md) - [How to prevent credential stuffing attacks](https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing.md) - [Rate limiting for bots: what it stops and what it misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) - [OWASP automated threats: the 21 bot attacks in plain English](https://stopbots.io/learn/bots/owasp-automated-threats.md) # How to detect credential stuffing > Compare your login logs with their normal baseline. Credential stuffing shows as a failure ratio well above usual, many attempts on accounts that do not exist, many usernames per IP address or device, a TLS fingerprint with an unusual failure rate or one that does not match its claimed browser, logins with no page load first, and successes followed at once by reads of saved addresses or cards. Category: Account attacks. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing/ A [credential stuffing](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md) attack is hard to see in one request, because each attempt uses a real password from an ordinary-looking connection. It shows up in aggregates. Every signal below compares against your own normal, so first record a baseline for each by hour and weekday, with web, app and API logins kept apart. The queries are PostgreSQL. They assume a `login_events` table with `event_time`, `username`, `user_exists`, `success`, `ip`, `asn`, `device_fingerprint`, `ja4`, `user_agent` and `session_id`, plus `page_views` and `account_events` tables keyed by `session_id`. All thresholds are starting points to tune against your traffic. ## Is the login failure ratio above normal? Real users fail logins through typos and forgotten passwords, so the raw count means little. The share of failures against the same hour last week is the first alarm. Watch the share of attempts on usernames that do not exist alongside it: stuffing lists come from other sites, so many of their emails were never registered with you. ```sql WITH hourly AS ( SELECT date_trunc('hour', event_time) AS hour, count(*) AS attempts, count(DISTINCT ip) AS ips, avg(CASE WHEN success THEN 0.0 ELSE 1.0 END) AS failure_ratio, avg(CASE WHEN user_exists THEN 0.0 ELSE 1.0 END) AS unknown_user_ratio FROM login_events WHERE event_time >= now() - interval '8 days' GROUP BY 1 ) SELECT cur.hour, cur.attempts, cur.ips, round(cur.failure_ratio, 3) AS failure_ratio, round(prev.failure_ratio, 3) AS failure_ratio_last_week, round(cur.unknown_user_ratio, 3) AS unknown_user_ratio, round(prev.unknown_user_ratio, 3) AS unknown_user_ratio_last_week FROM hourly cur LEFT JOIN hourly prev ON prev.hour = cur.hour - interval '7 days' WHERE cur.hour >= now() - interval '24 hours' ORDER BY cur.hour DESC; ``` As a starting rule, alert when either ratio doubles against last week for two hours in a row and attempts are above a floor you set, so quiet nights do not page anyone. ## How many usernames per IP address or device? One person logs in to one account, sometimes two or three in a shared household. A device fingerprint or IP address that tries dozens of usernames in an hour is a tool working through a list. Attackers rotate IP addresses through [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) to keep each address to a few attempts, so count by device fingerprint as well. Check the ASN before acting on IP counts, because a mobile carrier or office address can carry many real users. ```sql SELECT device_fingerprint, count(DISTINCT username) AS usernames, count(DISTINCT ip) AS ips, count(*) AS attempts, sum(CASE WHEN success THEN 1 ELSE 0 END) AS successes FROM login_events WHERE event_time >= now() - interval '1 hour' AND device_fingerprint IS NOT NULL GROUP BY device_fingerprint HAVING count(DISTINCT username) > 5 ORDER BY usernames DESC LIMIT 50; ``` Run the same query grouped by `ip`. Then group by `username` and count distinct `ip` and `device_fingerprint`: one email tried from many addresses means the same list is being replayed, or several lists hold that email with different passwords. ## Does one TLS fingerprint cover thousands of IPs? A TLS fingerprint such as JA4 summarises how the client opens an encrypted connection (explained in [TLS fingerprinting with JA3 and JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md)). Every copy of the same browser version produces the same value, so a popular Chrome fingerprint on thousands of IP addresses is normal. What stands out is a fingerprint and user agent pair whose failure ratio is far above every other group, or a fingerprint that belongs to an HTTP library while the user agent claims to be Safari. Header fingerprints, built from the set and order of HTTP headers, work the same way. ```sql SELECT ja4, user_agent, count(DISTINCT ip) AS ips, count(*) AS attempts, round(avg(CASE WHEN success THEN 0.0 ELSE 1.0 END), 3) AS failure_ratio FROM login_events WHERE event_time >= now() - interval '1 hour' GROUP BY ja4, user_agent HAVING count(*) >= 100 ORDER BY failure_ratio DESC, ips DESC LIMIT 20; ``` ## What happens around a successful login? A person opens the login page, then submits it. Many stuffing tools post straight to the login endpoint, so watch the share of web logins with no page view in the same session in the previous 30 minutes (native apps call your API directly, so leave them out). After a success, attackers check what the account holds: a read of saved addresses, payment methods or the loyalty balance within seconds, without visiting any other page. This query covers both checks: ```sql SELECT l.event_time, l.username, l.ip, EXISTS ( SELECT 1 FROM page_views p WHERE p.session_id = l.session_id AND p.event_time BETWEEN l.event_time - interval '30 minutes' AND l.event_time ) AS had_page_view, (SELECT min(a.event_time) - l.event_time FROM account_events a WHERE a.session_id = l.session_id AND a.event_type IN ('address_view', 'payment_methods_view', 'balance_view') AND a.event_time > l.event_time) AS time_to_account_read FROM login_events l WHERE l.success AND l.event_time >= now() - interval '1 hour' ORDER BY time_to_account_read NULLS LAST LIMIT 100; ``` Successes with no page view and an account read under five seconds deserve a look first. Later steps of the takeover, such as email or payout changes, are covered in [signs of account takeover](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md). ## What to do when the signals fire Act when two or more signals agree. Challenge or block the cluster (the device fingerprints, or the TLS fingerprint and user agent pair) rather than single IP addresses, which the attacker replaces in minutes. List every account that logged in successfully from the cluster during the attack window, end those sessions and require a password reset. Check the password reset and mobile login endpoints too, since attackers move to whichever has the fewest checks. The [prevention guide](https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing.md) covers the longer-term controls. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) is an open-source fingerprinting library whose browser identifier you can store with each login event to count usernames per device. - [CrowdSec](https://www.crowdsec.net/) is open source and bans IP addresses that repeat login failures in your server logs, which covers simple attacks for free but sees only per-IP patterns. - [Cloudflare Bot Management](https://developers.cloudflare.com/bots/) adds a bot score and TLS fingerprint fields to each request that you can log and group as in the queries above. - [Kairal](https://www.kairal.io/use-cases/account-takeover/) detects credential stuffing from device, network and behavioural signals, and its console links the related events, devices and IP addresses behind each decision. ## Common questions ### What is a normal failed login rate? There is no universal figure. Measure your own by hour of day and day of week over a few normal weeks, and keep separate baselines for web, mobile app and API logins, since they behave differently. ### Can credential stuffing be detected from a single request? Rarely. A request with a valid password from a residential IP address looks like the real user, so detection depends on patterns across many requests, or on device and connection details that the attacker's tooling gets wrong. ### What should a login event record? At least the time, the username as entered, whether the account exists, the result, IP address, ASN, user agent, a device fingerprint, a TLS fingerprint if your edge provides one, and a session ID. Never log the password, in clear or hashed. ## Related - [How to prevent credential stuffing attacks](https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing.md) - [TLS fingerprinting for bot detection: JA3 and JA4 explained](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) - [Signs of account takeover: the red flags in your logs](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md) - [How to detect residential proxies](https://stopbots.io/learn/detection/how-to-detect-residential-proxies.md) # How to prevent credential stuffing attacks > Use several layers, because each one fails alone. Offer or require MFA, refuse passwords that appear in breaches, detect bots on every login endpoint with device and connection fingerprints, rate limit per account as well as per IP address, return the same error for every failed login, and alert users about suspicious activity. Apply the same checks to mobile APIs and password reset. Category: Account attacks. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing/ The [OWASP Credential Stuffing Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html) assumes that every single defence will be bypassed at some point. It recommends layers, with a volume metric for each one so you can see when one starts failing. The controls below follow it, with a starting configuration for each. ## Add multi-factor authentication MFA is the strongest single control. A correct password from a combo list is not enough to get in. If you cannot require it for everyone, require it for admins and staff, and ask for it on risky logins: a new device, an unusual location, an IP address that has tried many accounts, or a session that looks scripted. MFA has its own weak points, such as real-time phishing and SIM swaps, covered in [does MFA stop account takeover](https://stopbots.io/learn/account-attacks/does-mfa-stop-account-takeover.md). ## Refuse passwords that appear in breaches Credential stuffing only works with passwords that have already leaked. Check new passwords against breach data at signup and at every password change. NIST SP 800-63B-4 requires this check against a blocklist that includes breached passwords ([NIST SP 800-63B](https://pages.nist.gov/800-63-4/sp800-63b.html)). The free [Pwned Passwords](https://haveibeenpwned.com/Passwords) range API uses k-anonymity: you send only the first five characters of the password's SHA-1 hash, receive every breached hash suffix that starts with them, and compare locally. The password and its full hash never leave your server. This Node.js function (version 18 or later, for the built-in `fetch`) does the check: ```js import { createHash } from "node:crypto"; export async function isBreachedPassword(password) { const hash = createHash("sha1").update(password, "utf8").digest("hex").toUpperCase(); const prefix = hash.slice(0, 5); const suffix = hash.slice(5); const response = await fetch(`https://api.pwnedpasswords.com/range/${prefix}`, { headers: { "Add-Padding": "true" }, }); if (!response.ok) { throw new Error(`Pwned Passwords returned HTTP ${response.status}`); } const body = await response.text(); return body.split("\n").some((line) => { const [candidate, count] = line.trim().split(":"); return candidate === suffix && Number(count) > 0; }); } ``` The `Add-Padding` header adds fake entries with a count of zero, so the response size does not reveal the prefix; the count check discards them. You can also run the check at login and send users with a breached password to a reset. ## Detect bots at the login endpoint Device fingerprinting combines request headers with attributes read in the browser, such as screen size and fonts ([browser fingerprinting](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) explains the method). Connection fingerprinting looks at how the client opens the connection: the TLS handshake (JA3 or JA4), HTTP/2 settings and header order. A request whose user agent claims an iPhone while its TLS handshake matches a scripting library is not an iPhone. Both kinds can be spoofed, so use a mismatch to trigger an extra check such as MFA or a challenge. The cheat sheet adds two cheap measures. Requiring a token generated by JavaScript stops tools that only send raw HTTP. Attackers can answer by running real or headless browsers, and blocking users without JavaScript can hurt accessibility. A multi-step login, where the form first fetches a CSRF token or asks for the username and password on separate steps, breaks tools built for a single POST. Keep CAPTCHAs for high-risk attempts only, since [CAPTCHA solving services](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) clear them for a small fee. ## Rate limit per account and per IP A per-IP limit is easy to set up and stops one machine hammering your login. Against credential stuffing it fails, because attackers rotate through thousands of residential proxy addresses and each address makes one or two attempts. A per-IP limit at the edge is still a useful floor: ```nginx # in the http block limit_req_zone $binary_remote_addr zone=login_ip:10m rate=10r/m; server { location = /login { limit_req zone=login_ip burst=5 nodelay; limit_req_status 429; proxy_pass http://127.0.0.1:8080; } } ``` The limits that hurt stuffing are counted in the application: failures per username, per device fingerprint and per ASN. A starting point is five failures for one username in 15 minutes, then a growing delay or an extra check. A hard lockout does little against stuffing, which tries each account once, and lets attackers lock customers out on purpose. OWASP also advises against relying on a single predictable limit. Watch long windows too, for low and steady traffic from many addresses. [What rate limits stop and what they miss](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) goes further. ## Return the same error for every failed login If "unknown email" and "wrong password" produce different messages, status codes or response times, your login tells attackers which emails have accounts. Return one response for both: ```http HTTP/1.1 401 Unauthorized Content-Type: application/json {"error": "Incorrect email or password."} ``` Do the same on password reset ("If an account exists for this email, we have sent a link") and on signup, where you can email the existing account holder instead of saying the address is taken. ## Alert users about unusual security events Do not email users about every failed password. OWASP recommends alerting when a correct password is followed by a failed MFA check, because that means the password is known. Show the last login time and location, and let users see and end their active sessions. ## Cover every login surface Attackers go to whichever endpoint has the fewest checks: the mobile app API, a legacy login path, an OAuth token endpoint, the password reset flow or a partner API. Apply the same limits and bot detection to each of them, as described in [how to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Pwned Passwords](https://haveibeenpwned.com/Passwords) is free and needs no API key, and the range API above covers breached password checks for sites of any size. - [Cloudflare rate limiting rules](https://developers.cloudflare.com/waf/rate-limiting-rules/) set per-IP and other request limits on login paths at the edge, which suits sites already behind Cloudflare. - [AWS WAF Bot Control](https://aws.amazon.com/waf/features/bot-control/) adds managed rules for automated traffic in front of AWS-hosted applications, and AWS WAF has a separate rule group for account takeover prevention on login pages. - [Castle](https://castle.io/) scores login and signup events through an API to flag bots and account takeover attempts. - [Kairal](https://www.kairal.io/use-cases/account-takeover/) detects credential stuffing from device, network and behavioural signals, verifies suspicious visitors with invisible challenges, and lets you set protection per endpoint, including login. ## Common questions ### Does a CAPTCHA stop credential stuffing? It slows it down. Attackers can pay CAPTCHA solving services to clear the puzzles, so OWASP suggests showing one only for suspicious logins and watching solve rates, since an unusually high solve rate is itself a sign of automated solving. ### Can Cloudflare stop credential stuffing? Cloudflare has several controls that help: rate limiting rules, bot scores on Bot Management plans, and leaked credentials detection, which flags login requests whose password or username and password pair appears in known breaches. Which checks you get depends on the plan, and per-account logic still belongs in your application. ### How do you mitigate credential stuffing on a mobile app API? Apply the same per-account limits and breached password checks on the server, and add app attestation such as Apple App Attest or Google Play Integrity so the API can tell your genuine app from a script that copies its requests. ## Related - [How to detect credential stuffing](https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing.md) - [Does MFA stop account takeover?](https://stopbots.io/learn/account-attacks/does-mfa-stop-account-takeover.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) # What is account takeover (ATO) fraud? > Account takeover (ATO) is fraud in which someone gains control of another person's online account and uses it as if they were the owner. Attackers get in with leaked passwords, phishing, stolen session cookies, SIM swaps or weak account recovery, then spend stored balances, place orders, steal personal data or lock the real owner out. Category: Account attacks. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/what-is-account-takeover/ An existing account is worth more to a fraudster than a new one. It holds saved cards, addresses, loyalty points, order history and sometimes a seller reputation, and fraud checks usually trust an account with years of normal history more than one created yesterday. A taken-over account lets the attacker spend that trust. ## How does account takeover happen? Most takeovers start with one of these routes: - [Credential stuffing](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md), where bots try email and password pairs leaked from other sites. It needs no contact with the victim and runs at large scale. - Phishing, including pages that relay the login to the real site as the victim types, capturing one-time codes along with the password. - Infostealer malware on the victim's computer, which copies saved passwords and the browser's session cookies. A stolen session cookie lets the attacker skip login and MFA entirely, as explained in [session hijacking and cookie theft](https://stopbots.io/learn/account-attacks/session-hijacking-and-cookie-theft.md). - SIM swapping, where the attacker persuades a mobile carrier to move the victim's number to a new SIM card and then receives their SMS codes. - Weak account recovery, such as security questions with guessable answers, support agents talked into changing the email address, or an email account taken over first and then used to reset every other password. - Password guessing and spraying against accounts with common passwords. ## What do attackers do with a taken-over account? The first moves usually protect the attacker's access. They change the email address, phone number or password, turn off MFA or add their own, and switch off notifications. Then they use what the account holds: - In ecommerce, orders paid with the stored card and shipped to a new address, plus spent gift card balances and loyalty points. - In banking and fintech, new payees and transfers out. - On marketplaces, seller accounts used to list fake goods or to redirect payouts. - In gaming, in-game items and currency moved to other accounts and sold. - On social media and email, scams sent to the victim's contacts, who trust the sender. - In SaaS and cloud accounts, data copied out and paid resources used for the attacker's own purposes. Accounts are also resold. Streaming, gaming and software subscriptions taken over through stuffing are sold on fraud marketplaces, often as cheap "lifetime" accounts. The changes that give a takeover away in your logs are listed in [signs of account takeover](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md). ## Account takeover vs identity theft Identity theft is the use of someone's personal details to act in their name, often to open new accounts or get credit. Account takeover uses an account that already exists. The two overlap. Some victim support services count ATO as a form of identity theft, and personal data copied from a taken-over account often feeds later identity fraud. Business email compromise (BEC) is related. In a BEC scam, criminals use a compromised or imitated business mailbox to trick staff or suppliers into paying fake invoices. Many BEC cases begin with the takeover of a real mailbox, which makes the requests look genuine. ## Who is most at risk? Any service with logins and something of value. Risk rises with stored payment methods, balances or points that can be spent, items that can be resold, payouts that can be redirected, and a user base that reuses passwords. Retail, ticketing, gaming, streaming, travel loyalty programmes and financial services all fit that description, because each account turns into money quickly. ## How OWASP and MITRE classify account takeover OWASP does not list account takeover as a separate threat in its [automated threats catalogue](https://stopbots.io/learn/bots/owasp-automated-threats.md). It is the outcome of threats it does list, mainly credential cracking (OAT-007) and credential stuffing (OAT-008). The OWASP Top 10 covers the weaknesses that allow it under [A07:2025 Authentication Failures](https://top10.owasp.org/2025/A07_2025-Authentication_Failures). In MITRE ATT&CK, an attacker using a real person's credentials falls under [Valid Accounts (T1078)](https://attack.mitre.org/techniques/T1078/), and the ways of getting those credentials, such as [credential stuffing (T1110.004)](https://attack.mitre.org/techniques/T1110/004/), have their own entries. ## Common questions ### Is account takeover illegal? In most countries, yes. Getting into someone else's account without permission is an offence under computer misuse laws, and using it to take money or goods adds fraud offences. The details depend on the jurisdiction, and this is not legal advice. ### How do you report account takeover? A user should first contact the service through its official help pages, then change the password, end other sessions and check the linked email account for new forwarding rules. In the US, IdentityTheft.gov from the FTC gives a recovery plan; elsewhere, the national police or fraud reporting service takes reports. ### What is account takeover in banking? In banking, ATO usually means a criminal logs in to online banking, adds a new payee or changes contact details, and moves money out. Banks add checks on new payees, device changes and unusual transfers for this reason. ### What is account takeover protection? It is the set of controls that stop attackers getting into accounts and limit what they can do once in: bot detection at login, MFA, extra checks on sensitive changes, and monitoring of sessions after login. ## Related - [What is credential stuffing?](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md) - [Signs of account takeover: the red flags in your logs](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md) - [How to prevent account takeover](https://stopbots.io/learn/account-attacks/how-to-prevent-account-takeover.md) - [What is multi-accounting?](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) # Signs of account takeover: the red flags in your logs > The clearest signs of account takeover are a login from a new device or network followed quickly by changes that lock the owner out or move value out: a new email, phone number or password, MFA turned off or replaced, a new payout method or shipping address, fast redemption of points or gift cards, and a session that reappears on another device. Category: Account attacks. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/signs-of-account-takeover/ The login is often the hardest place to catch a takeover, because the attacker may have the right password. What happens next is easier to see. An attacker first secures their access, then moves value out, and the sequence differs from what the real owner does. Each sign below is weak alone. A chain of them in one session is strong. ## Red flags at login Most signs at this stage concern the device and network. Look for the first login from a device fingerprint never seen on the account, especially combined with an ASN (the network operator) or country the user has never used. A success that comes after a run of failures from other devices suggests the password was found by guessing or [credential stuffing](https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing.md). A correct password followed by a failed MFA check means someone else knows the password, and OWASP recommends alerting the user when it happens. Password reset requests from devices the account has never used, or several resets from different devices, point the same way. Impossible travel, two logins too far apart for the time between them, is noisy alone. ## Red flags in the first minutes after login These are the strongest signals, because they are the attacker's first moves: - The email address, phone number or password changes within minutes of a login from a new device. - MFA is turned off, or a new phone or authenticator app is added. - Security notifications are switched off. On email services, new forwarding or filter rules appear that hide alerts from the owner. - A new payout bank account, shipping address or saved card is added. - Loyalty points, gift card balances or store credit are redeemed or transferred. - In business software, new API keys, OAuth app grants or admin users appear. - An order for easily resold goods, such as gift cards or electronics, ships to an address the account has never used. Watch how the attacker moves as well. A session that goes straight from login to account settings, with no browsing and at a speed no person types, is following a script. ## Red flags later in the session A session cookie that shows up on a different device fingerprint, browser or ASN from the one it was issued to suggests it was stolen and replayed, which skips login and MFA altogether. [Session hijacking and cookie theft](https://stopbots.io/learn/account-attacks/session-hijacking-and-cookie-theft.md) explains how to detect and block it. One device that switches between many accounts in a short time is checking or using a batch of taken-over accounts, a pattern shared with [multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md). ## Red flags outside your logs Support and payments teams often see takeovers before engineering does. Watch for clusters of tickets saying "I can't log in" or "my email was changed", orders the customer says they did not place, and chargebacks on accounts with years of clean history. Feed these cases back into your log analysis, since each confirmed case shows what the attack looked like. ## A query for the most common chain This PostgreSQL query finds logins from a new device followed within 30 minutes by a sensitive change in the same session. It assumes `login_events` has a `new_device` flag set at login (for example, a device fingerprint not seen on this account in 90 days) and that `account_events` records changes by `session_id`. ```sql SELECT l.user_id, l.event_time AS login_time, l.ip, l.asn, l.device_fingerprint, string_agg(a.event_type, ', ' ORDER BY a.event_time) AS changes, min(a.event_time) - l.event_time AS time_to_first_change FROM login_events l JOIN account_events a ON a.session_id = l.session_id AND a.event_time BETWEEN l.event_time AND l.event_time + interval '30 minutes' WHERE l.success AND l.new_device AND l.event_time >= now() - interval '7 days' AND a.event_type IN ('email_changed', 'phone_changed', 'password_changed', 'mfa_disabled', 'mfa_method_added', 'payout_method_added', 'shipping_address_added', 'points_redeemed') GROUP BY l.user_id, l.event_time, l.ip, l.asn, l.device_fingerprint ORDER BY time_to_first_change; ``` ## How to act on the signals A practical starting rule: when a login from a new device is followed by a change to the email, phone, MFA or payout details within 30 minutes, hold the change, ask the user to confirm through the old email address or phone number, and notify the old contact details either way. For points redemption or orders to new addresses after a new-device login, add a step-up check before completing. Review the cases each week and tune the windows, since every rule here will flag some real users and the [false positive rate](https://stopbots.io/learn/detection/bot-detection-false-positives.md) needs measuring like any other number. If a takeover is confirmed, end all sessions, reset the password, restore the original contact details and reverse what you can. The longer-term controls are in [how to prevent account takeover](https://stopbots.io/learn/account-attacks/how-to-prevent-account-takeover.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Kairal](https://www.kairal.io/use-cases/account-takeover/) connects device, network and behavioural signals across the customer journey, from first visit to login and checkout, to detect account takeover, and its console links related events, devices and IP addresses for each case. - [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) is an open-source browser fingerprinting library you can use to set the `new_device` flag in the query above for free. - [Castle](https://castle.io/) scores login and account change events through an API to flag likely takeovers. - [Sift](https://sift.com/) scores user events, including logins and profile changes, for fraud risk and fits teams that already use it for payment fraud. - [Incognia](https://www.incognia.com/) uses device and location signals, mainly in mobile apps, to tell whether a login comes from the owner's usual device. ## Common questions ### What signs of account takeover do users notice? Emails about password or email changes they did not make, orders or transfers they do not recognise, login alerts from places they have not been, being logged out without reason, and contacts who receive messages the user never sent. ### How fast do attackers act after taking over an account? It varies. Automated takeovers that check and spend balances can act within seconds of login, while attackers preparing a larger fraud may wait days so the change looks unconnected to the login. Look back over minutes, hours and days. ### Is impossible travel a reliable sign of account takeover? Not on its own. VPNs, corporate proxies, mobile carriers that route traffic through distant cities and wrong IP geolocation all produce false alarms, so count it only alongside a device change or a sensitive account change. ## Related - [What is account takeover (ATO) fraud?](https://stopbots.io/learn/account-attacks/what-is-account-takeover.md) - [How to detect credential stuffing](https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing.md) - [Session hijacking and cookie theft: takeover with no password](https://stopbots.io/learn/account-attacks/session-hijacking-and-cookie-theft.md) - [False positives in bot detection: how to measure and reduce them](https://stopbots.io/learn/detection/bot-detection-false-positives.md) # How to prevent account takeover > Close each way in and limit what an attacker can do once inside. Stop credential stuffing at login with bot detection and breached password checks, offer passkeys or other phishing-resistant MFA, protect account recovery as strongly as login, re-authenticate and notify before sensitive changes, tie sessions to the device, and train support staff to resist social engineering. Category: Account attacks. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/how-to-prevent-account-takeover/ An attacker needs only one way in, so prevention means closing each route in turn and then limiting the damage when one still gets through. ## Protect every login endpoint Most takeovers at scale start with [credential stuffing](https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing.md). Put bot detection on the login, refuse breached passwords, count failures per account and per device as well as per IP address, and return one error message for every failed login. Apply all of it to the mobile app API, legacy login paths and the OAuth token endpoint, since attackers move to whichever has the fewest checks. ## Offer phishing-resistant MFA Any second factor stops a leaked password from being enough. They differ in what they resist. SMS codes can be intercepted through a SIM swap, and NIST SP 800-63B-4 classes authentication over the phone network as "restricted" ([NIST SP 800-63B](https://pages.nist.gov/800-63-4/sp800-63b.html)). Codes from an authenticator app and push approvals can both be phished in real time. Passkeys and other FIDO2 credentials are tied to your domain, so a phishing site cannot use them. Offer passkeys, make them the default where you can, and ask for a second factor on risky logins even for users who have not opted in. [Does MFA stop account takeover](https://stopbots.io/learn/account-attacks/does-mfa-stop-account-takeover.md) compares the methods. ## Make account recovery as strong as login Account security is only as strong as the weakest way back in. A passkey with an SMS reset is as strong as SMS. The [OWASP Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html) covers the details. The main points: - Send reset links or codes only to the email or phone already verified on the account, and build the link from a fixed domain, never from the request's Host header. - Make reset tokens random, single use and time limited. Thirty minutes is a reasonable starting point. - Show the same message, with the same response time, whether or not the account exists. - Do not log the user in automatically after a reset. Send them through the normal login, with MFA. - End other sessions after the reset, or offer the user the choice. - Do not rely on security questions. OWASP says they should never be the only way to reset a password, and their answers are often public or guessable. ## Re-authenticate and notify before sensitive changes The first thing a successful attacker does is change the email, phone number, password or MFA settings so the owner cannot get back in. Ask for the password or a passkey, plus a second factor where enrolled, before any of these changes, and before adding a payout account or shipping address. Send a notice to the old email address or phone number with a link to reverse the change. For payout changes, a waiting period helps: as a starting point, hold the first payout to a new bank account for 24 hours and tell the user why. ## Watch sessions after login A stolen session cookie skips login and MFA entirely. Keep sessions short for sensitive areas, record the device and network each session was issued to, and ask for re-authentication when a session suddenly shows up on a different device. Give users a list of their active sessions with a way to end them. The detail is in [session hijacking and cookie theft](https://stopbots.io/learn/account-attacks/session-hijacking-and-cookie-theft.md). ## Train the support desk Attackers who cannot get past your login call or chat with support instead, armed with the victim's name, address and recent orders. Support staff should never change an email address or phone number based on personal details alone. Verify through the existing channels on the account, such as a code sent to the current email, and flag accounts whose contact details changed in the last few days so the next agent sees it. ## Prepare the response When you confirm a takeover, end all sessions, reset the password, remove any MFA methods the attacker added, restore the original contact details and reverse orders or payouts where you can. Then search for the same device fingerprint, IP range or payout details on other accounts, since takeovers rarely come alone. The patterns to search for are listed in [signs of account takeover](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md). Depending on what the attacker could see, you may also have legal duties to report a personal data breach, so involve your privacy or legal team. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [SimpleWebAuthn](https://simplewebauthn.dev/) is a set of open-source TypeScript libraries for adding passkeys to a site and its Node.js backend, enough for a small team to ship phishing-resistant login. - [Pwned Passwords](https://haveibeenpwned.com/Passwords) is a free API for refusing breached passwords at signup, password change and reset. - [Arkose Labs](https://www.arkoselabs.com/) combines risk detection with challenges to stop bots and account takeover at login and signup. - [Kairal](https://www.kairal.io/use-cases/account-takeover/) connects device, network and behavioural signals across the customer journey, from first visit to login and checkout, to detect account takeover, and its preview mode shows what it would block before you turn on enforcement. ## Common questions ### How do you prevent account takeover fraud in ecommerce? Focus on the actions that turn an account into money. Re-authenticate before a new shipping address or card is added, hold orders of resellable goods to a new address after a new-device login, and put a step-up check in front of gift card and loyalty balance spending. ### Does a password manager prevent account takeover? It helps, because unique passwords for every site remove the reuse that credential stuffing depends on, and most password managers will not autofill on a domain that does not match. It does not protect against malware that steals session cookies. ### What is account takeover monitoring? It means watching account activity after login for signs that someone other than the owner is in control, such as a new device followed by contact detail changes, and stepping in before value leaves the account. ## Related - [What is account takeover (ATO) fraud?](https://stopbots.io/learn/account-attacks/what-is-account-takeover.md) - [How to prevent credential stuffing attacks](https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing.md) - [Does MFA stop account takeover?](https://stopbots.io/learn/account-attacks/does-mfa-stop-account-takeover.md) - [Bot protection vs fraud prevention tools: which do you need?](https://stopbots.io/learn/ecommerce-fraud/bot-protection-vs-fraud-prevention-tools.md) # Does MFA stop account takeover? > MFA stops most attacks that rely on a stolen password alone, such as credential stuffing and password spraying. It does not stop real-time phishing relays that capture codes, push spam that wears users down until they approve, SIM swaps that redirect SMS codes, or stolen session cookies used after login. Passkeys and other FIDO2 methods resist phishing because they work only on the real domain. Category: Account attacks. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/does-mfa-stop-account-takeover/ With passwords alone, a leaked list is enough to get into an account. MFA adds a second requirement, so the attacker must also obtain the second factor or find a way to skip it. Each MFA method can be beaten in different ways, and the method you choose decides which attacks still work. ## What MFA stops Any second factor defeats attacks that use only a password: [credential stuffing](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md), password spraying and brute force. The attacker's tool may find the right password and still fail to log in. When MFA is optional, the accounts without it stay exposed, so asking for a second factor on risky logins (new device, unusual network, scripted behaviour) protects users who never turned it on. ## How do attackers get around MFA? Real-time phishing relays are the most direct route. A phishing page sits between the victim and the real site. It shows the real login, passes the password to the real site, asks for the one-time code, and passes that on too. The real site then issues a session cookie, which the relay captures. MITRE ATT&CK describes the method as [adversary-in-the-middle (T1557)](https://attack.mitre.org/techniques/T1557/). It works against SMS codes, authenticator app codes and push approvals, because the victim does every step themselves. MFA fatigue needs only the password. The attacker triggers push notifications again and again, often late at night, until the user taps approve to make them stop. MITRE lists this as [MFA request generation (T1621)](https://attack.mitre.org/techniques/T1621/). Number matching, where the user must type a number shown on the login screen into the app, stops approvals given without looking. It does not stop a phishing relay, since the relay page can show the number too. SIM swaps target SMS and voice codes. The attacker persuades the mobile carrier, or an insider there, to move the victim's number to a new SIM card. From then on, the codes go to the attacker. NIST SP 800-63B-4 classes authentication over the phone network as "restricted" and asks verifiers to consider signs such as a recent device swap or number port before sending a code ([NIST SP 800-63B](https://pages.nist.gov/800-63-4/sp800-63b.html)). Stolen session cookies skip MFA altogether. After login, the session cookie is the credential. Infostealer malware copies cookies from the browser, and the attacker loads them into their own browser. The site sees a valid session and does not ask for MFA again. [Session hijacking and cookie theft](https://stopbots.io/learn/account-attacks/session-hijacking-and-cookie-theft.md) covers the defences. Weak recovery and fallback paths are the last gap. If "lost your phone?" sends a code by SMS or a link to an email account the attacker controls, MFA is only as strong as that path. The same applies to support agents who can remove MFA after a convincing phone call. ## How do MFA methods compare? | Method | Real-time phishing relay | Push fatigue | SIM swap | Stolen session cookie | |---|---|---|---|---| | SMS or voice code | Vulnerable | Not applicable | Vulnerable | Vulnerable | | Authenticator app code | Vulnerable | Not applicable | Resists | Vulnerable | | Push approval | Vulnerable | Vulnerable | Resists | Vulnerable | | Push with number matching | Vulnerable | Cuts blind approvals | Resists | Vulnerable | | Passkey or FIDO2 security key | Resists | Not applicable | Resists | Vulnerable | ## Why do passkeys and FIDO2 resist phishing? Passkeys and FIDO2 security keys use public key cryptography through the [Web Authentication API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API). At registration, the authenticator creates a key pair for your domain and gives the site only the public key. At login, the browser tells the authenticator which domain is asking, and the authenticator signs the site's challenge only with a credential registered to that domain. A lookalike phishing domain gets nothing it can replay on the real site, and there is no code for the user to type into the wrong page. NIST calls this verifier name binding and counts it as phishing resistant, while it does not count SMS, authenticator app codes or push approvals as phishing resistant. The [FIDO Alliance passkeys page](https://fidoalliance.org/passkeys/) explains the user side. Passkeys still depend on the rest of the system. A passkey account that can be recovered by SMS falls back to SMS-level security. ## What to do - Offer passkeys to all users, and require phishing-resistant MFA for admins and staff. - Keep SMS as a fallback rather than the main method, and check for a recent SIM change if your SMS provider offers that data. - Use number matching for push approvals, cap the number of pushes per hour, and alert when a user denies several in a row. - Ask for MFA again before email, phone, password, MFA and payout changes, so a stolen session cannot make them. - Make account recovery at least as strong as login, as set out in [how to prevent account takeover](https://stopbots.io/learn/account-attacks/how-to-prevent-account-takeover.md). - Watch what happens after login, since MFA says nothing about a session that was hijacked later. [Signs of account takeover](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md) lists the patterns. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [SimpleWebAuthn](https://simplewebauthn.dev/) is a set of open-source TypeScript libraries for passkey registration and login in the browser and on Node.js servers. - [py_webauthn](https://github.com/duo-labs/py_webauthn) is an open-source Python library for the server side of WebAuthn, suited to Django, Flask or FastAPI backends. - [Twilio Verify](https://www.twilio.com/en-us/trusted-activation/verify) sends and checks one-time codes over SMS, voice, email and other channels through one API, for teams that need codes as a fallback. - [Kairal](https://www.kairal.io/use-cases/account-takeover/) connects device, network and behavioural signals across the customer journey, from first visit to login and checkout, to detect account takeover. ## Common questions ### Is SMS-based MFA better than no MFA? Yes. SMS codes still stop attacks that use a password alone, such as credential stuffing and password spraying. Treat SMS as the minimum and offer stronger methods alongside it. ### Do passkeys stop session hijacking? No. A passkey protects the login step. Once the site has issued a session cookie, malware that copies the cookie can use it without the passkey, which is why sessions also need binding to the device. ### What is the difference between 2FA and MFA? 2FA means exactly two factors and MFA means two or more. In practice both terms are used for any login that asks for something beyond the password. ## Related - [How to prevent account takeover](https://stopbots.io/learn/account-attacks/how-to-prevent-account-takeover.md) - [Session hijacking and cookie theft: takeover with no password](https://stopbots.io/learn/account-attacks/session-hijacking-and-cookie-theft.md) - [What is credential stuffing?](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md) - [SMS pumping fraud: when bots attack your OTP endpoint](https://stopbots.io/learn/account-attacks/sms-pumping-fraud.md) # Session hijacking and cookie theft: takeover with no password > Session hijacking is when an attacker takes a valid session token, usually the session cookie, and uses it to act as the logged-in user. Infostealer malware copies cookies from the browser profile and the attacker replays them from another device, so the site never asks for the password or MFA again. Short sessions, re-authentication and device binding limit the damage. Category: Account attacks. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/session-hijacking-and-cookie-theft/ After login, most sites recognise the user by a session cookie and nothing else. Whoever presents the cookie is treated as the user until it expires. That makes the cookie a bearer credential: a long-lived "remember me" cookie is worth as much to an attacker as the password and the second factor together, and it never triggers a login check. ## How do attackers steal session cookies? Infostealer malware is the most direct route. It runs on the victim's computer, often installed from a pirated program or a fake update, reads the browser profile, and copies cookies, saved passwords and autofill data in one pass. The bundle, called a log, is uploaded to the attacker and often resold. MITRE ATT&CK describes this as [Steal Web Session Cookie (T1539)](https://attack.mitre.org/techniques/T1539/). The other routes: - Phishing relays that pass the login through to the real site and capture the session cookie it sets, including after MFA. - Cross-site scripting, where injected JavaScript reads `document.cookie` and sends it away. This only works on cookies without the `HttpOnly` attribute. - Interception on connections without HTTPS, or of cookies set without the `Secure` attribute. - Session fixation, where the attacker plants a session ID before login and the site keeps the same ID after the user authenticates. ## Why the site does not ask for MFA again MFA runs at login. The session cookie is the site's record that login, including MFA, already succeeded. When the attacker loads the stolen cookie into their own browser and replays it, every request looks like the continuation of a valid session, so there is nothing to challenge. MITRE notes that stolen session cookies can bypass some MFA protocols, and using them is listed separately as [Web Session Cookie (T1550.004)](https://attack.mitre.org/techniques/T1550/004/). This is the gap that [MFA cannot close on its own](https://stopbots.io/learn/account-attacks/does-mfa-stop-account-takeover.md). Careful attackers try to look like the victim's device as well, using an [antidetect browser](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) that copies the user agent, screen size and time zone from the stolen log. That makes simple header checks less reliable and is why the binding below uses several signals. ## What a hijacked session looks like in logs Compare each request with the device and network the session was issued to: - The same session ID with a different device fingerprint, browser family or [TLS fingerprint](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) from the one at login. - A jump to a different ASN or country mid-session, especially to a hosting provider or a known proxy network. - Requests from two devices interleaved on one session. - A session still in use after the user logged out on their own device. - Straight after the switch, sensitive actions such as an email change, a new payout method or a data export. [Signs of account takeover](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md) lists the rest. This PostgreSQL query finds sessions seen with more than one device fingerprint or user agent in the last day, assuming a `request_events` table with `session_id`, `user_id`, `event_time`, `device_fingerprint`, `user_agent` and `asn`: ```sql SELECT session_id, user_id, count(DISTINCT device_fingerprint) AS fingerprints, count(DISTINCT user_agent) AS user_agents, count(DISTINCT asn) AS networks, min(event_time) AS first_seen, max(event_time) AS last_seen FROM request_events WHERE event_time >= now() - interval '24 hours' AND session_id IS NOT NULL GROUP BY session_id, user_id HAVING count(DISTINCT device_fingerprint) > 1 OR count(DISTINCT user_agent) > 1 ORDER BY fingerprints DESC, networks DESC LIMIT 100; ``` A browser update during a long session changes the user agent version, so compare browser family and major version, or expect some noise. ## How do you defend against session hijacking? Start with the cookie itself. The [OWASP Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html) covers the baseline: a random ID, a new ID issued at login to block fixation, server-side expiry and these attributes: ```http Set-Cookie: __Host-sid=Hk3vQ9pZr2LmXw7TnB4s; Path=/; Secure; HttpOnly; SameSite=Lax; Max-Age=28800 ``` The `__Host-` prefix makes the browser reject the cookie unless it is `Secure`, has `Path=/` and has no `Domain` attribute, so a subdomain cannot overwrite it. `HttpOnly` blocks theft through cross-site scripting. None of these attributes stop malware that reads the cookie store on the device, so the next layers matter more. ## Keep sensitive sessions short Use an idle timeout and an absolute lifetime, and make them shorter for banking, admin and account settings areas. Treat a long-lived "remember me" cookie as good for browsing only. For changes to the email address, phone number, password, MFA settings and payout details, require a recent authentication: as a starting point, ask for the password or a passkey again if the last one was more than 15 minutes ago. A stolen cookie then lets the attacker look around but not lock the owner out. ## Bind the session to the device and network When you issue a session, store what it was issued to: a device fingerprint, the browser family, the TLS fingerprint and the ASN. Check them on every sensitive request, and on a sample of the others. A workable starting rule: - Device fingerprint or browser family changes: end the session and ask the user to log in again. - ASN changes alone, such as Wi-Fi to mobile data: allow it, but treat the next sensitive action as higher risk. - ASN changes to a hosting or proxy network together with any fingerprint change: end the session and notify the user. Ending a session costs a real user one extra login, so this rule can afford to be strict. ## Make revocation work Keep sessions in a server-side store so you can end them. End every session when the password or MFA settings change, give users a list of active sessions with a way to end each one, and make logout delete the session on the server. For API tokens, the same idea exists in OAuth as sender-constrained tokens, for example [DPoP (RFC 9449)](https://www.rfc-editor.org/rfc/rfc9449), which ties a token to a key held by the client. ## Device Bound Session Credentials in Chrome [Device Bound Session Credentials](https://developer.chrome.com/docs/web-platform/device-bound-session-credentials) (DBSC) move this binding into the browser. At login, the browser creates a key pair for the session and keeps the private key in secure hardware such as a TPM where the device has one. The site issues only short-lived cookies. When one expires, the browser proves it still holds the private key and receives a fresh cookie. A cookie copied to another machine stops working once it expires, because that machine cannot produce the proof. The site has to add endpoints for registration and refresh, and the browser falls back to normal cookies on devices without secure key storage. Support depends on the browser and platform, so check the Chrome documentation for where it works and keep the server-side checks above in place for every other browser. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [MaxMind](https://www.maxmind.com/) offers free GeoLite databases for country and ASN lookups, enough to record the network each session was issued on and spot jumps. - [Spur](https://spur.us/) classifies IP addresses as VPN, residential proxy or hosting, which helps decide whether a session's new network is suspicious. - [Fingerprint](https://fingerprint.com/) gives each browser a visitor identifier that you can store at login and compare on later requests to the same session. - [Kairal](https://www.kairal.io/use-cases/account-takeover/) connects device, network and behavioural signals across the customer journey to detect account takeover, and its console shows the evidence behind each decision with related events, devices and IP addresses linked. ## Common questions ### Does a VPN protect against session hijacking? Only against interception on the network path, such as an open Wi-Fi network, and HTTPS already covers most of that. It does nothing against infostealer malware or phishing relays. ### Does logging out protect a stolen session? Only if the site ends the session on the server. If logout just deletes the cookie in the user's browser, a copy held by an attacker keeps working until it expires. ### What is the difference between session hijacking and session fixation? In hijacking, the attacker steals a session the user already has. In fixation, the attacker gets the user to log in with a session ID the attacker chose in advance, then uses that ID once it is authenticated. ## Related - [Does MFA stop account takeover?](https://stopbots.io/learn/account-attacks/does-mfa-stop-account-takeover.md) - [Signs of account takeover: the red flags in your logs](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md) - [What is an antidetect browser?](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) # SMS pumping fraud: when bots attack your OTP endpoint > SMS pumping fraud, also called SMS toll fraud or artificially inflated traffic, is when bots use a form that sends text messages, usually a one-time code, to trigger thousands of messages to number ranges the attacker profits from. The attacker takes a share of the fees operators charge to deliver them, the site pays the SMS bill, and no code is ever entered. Category: Account attacks. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/account-attacks/sms-pumping-fraud/ Any endpoint that sends a text message on request can be a target: phone verification at signup, login codes, password reset, "text me a download link" forms and order updates. Each message sent earns the attacker money, so the bot never finishes the signup or enters the code. ## How does SMS pumping fraud work? Delivering a text message to a mobile network costs a termination fee, which the sender's provider pays along the route. Twilio's [glossary entry on SMS pumping](https://www.twilio.com/docs/glossary/what-is-sms-pumping-fraud) describes two setups. In one, the mobile network operator that controls a block of numbers is complicit and shares the revenue with the fraudster. In the other, the operator is unaware: smaller operators are paid by larger ones for incoming traffic, and the fraudster, posing as a business, promises them high volumes. Either way, the attacker gains when messages reach numbers in that range, often in destinations where delivery is expensive. The bot then does the rest: 1. It finds a form or API that sends an SMS to any number entered, without checks. 2. It submits numbers from the attacker's ranges, often sequential, at high volume. 3. Your SMS provider delivers each message and bills you at the destination's rate. 4. Nobody ever enters a code, because nobody is there to read it. If your flow falls back to a voice call when SMS fails, the same attack works with calls, which can cost more per attempt. ## Why do bots target OTP endpoints? A send-code endpoint is public, needs no login, is cheap to call and triggers an action you pay for. The OWASP API Security Top 10 (2023) describes this class of problem as [unrestricted access to sensitive business flows](https://api-security.owasp.org/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/). Many sites put strong bot checks on the login form and none on the "resend code" button next to it. ## Signs of SMS pumping in your logs - Messages to countries you do not serve, or a sudden share for a country that is usually small. - Many numbers with the same prefix, often in sequence. - A drop in the share of sent codes that are verified, for one country or prefix. - Bursts outside your normal traffic pattern, with repeated resends to numbers that never complete signup. - A spending alert or a fraud notice from your SMS provider. The verification rate is the most useful single number. Real users who ask for a code mostly enter it. Pumped numbers never do. This PostgreSQL query ranks the last day's traffic by country and prefix, assuming an `otp_sends` table with `phone_e164`, `country_code`, `sent_at` and a nullable `verified_at`: ```sql SELECT country_code, left(phone_e164, 7) AS prefix, count(*) AS codes_sent, count(*) FILTER (WHERE verified_at IS NOT NULL) AS codes_verified, round(100.0 * count(*) FILTER (WHERE verified_at IS NOT NULL) / count(*), 1) AS verified_pct FROM otp_sends WHERE sent_at >= now() - interval '24 hours' GROUP BY country_code, left(phone_e164, 7) HAVING count(*) >= 20 ORDER BY verified_pct ASC, codes_sent DESC LIMIT 50; ``` Compare each row with the same country's rate over the previous month. A prefix with many sends and almost no verifications is the pattern to act on. ## How to stop SMS pumping Put bot detection in front of the send-code endpoint. Require a passed check, such as an invisible challenge or a good bot score, before any message goes out, and verify it on the server. Never send a code on page load. Rate limit on several keys at once. Per IP address is the easiest and the weakest, since bots rotate addresses. The limits that hurt pumping are per phone number, per number prefix and per session or device. As a starting point, allow three sends per number per hour and five per day, three per session, and alert when any prefix exceeds its usual daily volume several times over. At the edge, a [Cloudflare rate limiting rule](https://developers.cloudflare.com/waf/rate-limiting-rules/) can count requests per IP address to the endpoint with an expression like this, while the per-number limits live in your application: ```txt (http.request.uri.path eq "/api/verify/send" and http.request.method eq "POST") ``` Add delays between resends. A first resend after 30 seconds, then 60, then 120, costs a real user little and slows a bot down sharply. Allow only the countries you serve. SMS providers such as Twilio let you switch destinations on or off, and a country you never sell to should never receive your codes. If you serve many countries, use lower limits for destinations that cost more to reach. Check the number before sending. Phone number intelligence services can tell you whether a number is mobile, landline or VoIP and which carrier holds it, so you can refuse number types that cannot receive a verification code anyway. Monitor the verification rate per country and prefix, as in the query above, and pause sending to a prefix automatically when its rate falls far below normal. Turn on your provider's fraud controls and set spending alerts. Twilio Verify, for example, has [Fraud Guard](https://www.twilio.com/docs/verify/preventing-toll-fraud/sms-fraud-guard), which blocks destination prefixes that show suspicious traffic patterns, alongside geographic permissions. Finally, ask whether the flow needs SMS at all. Email codes, authenticator apps and passkeys cost nothing per use, and [stronger options than SMS](https://stopbots.io/learn/account-attacks/does-mfa-stop-account-takeover.md) also protect accounts better. The same form-abuse problem appears with email in [subscription bombing](https://stopbots.io/learn/ad-fraud/subscription-bombing.md), and the API-level defences are in [how to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Twilio Verify](https://www.twilio.com/en-us/trusted-activation/verify) sends and checks one-time codes, with Fraud Guard and geographic permissions to block pumped destinations. - [Telesign](https://www.telesign.com/) provides SMS and voice verification APIs plus phone number intelligence you can use to assess a number before sending. - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) is a free challenge you can require before the send-code request, with a server-side token check, which is enough for many small sites. - [Kairal](https://www.kairal.io/product/bot-protection/) lets you set protection per endpoint, so the send-code endpoint can get bot detection and invisible challenges before any message is sent. ## Common questions ### What is the difference between SMS pumping and IRSF? International revenue share fraud (IRSF) is the older voice version: calls generated to international numbers whose operators share the call revenue with the fraudster. SMS pumping applies the same model to text messages, and a voice fallback on your OTP flow exposes you to both. ### Does a CAPTCHA stop SMS pumping? It raises the cost, but solving services clear puzzles cheaply and the attacker's revenue per message can cover that. Combine any challenge with per-number and per-prefix limits and conversion monitoring. ### Who pays for SMS pumping? The business that sends the messages. Its SMS provider bills each message at the normal rate for the destination, so the cost appears on the next invoice unless spending alerts or a fraud guard stop it earlier. ## Related - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) - [Subscription bombing: bots abusing your signup forms](https://stopbots.io/learn/ad-fraud/subscription-bombing.md) - [How to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) - [Rate limiting for bots: what it stops and what it misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) # What is multi-accounting? > Multi-accounting is one person or group running several accounts on a service that allows one per person, or that limits an offer to one per person. It is used to claim signup bonuses and free trials again, get past purchase or betting limits, manipulate reviews or votes, and return after a ban. Most platforms forbid it in their terms. Category: Fake accounts and multi-accounting. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/what-is-multi-accounting/ A person with two email addresses can open two accounts almost anywhere. Whether that counts as multi-accounting depends on the rules of the service. A shop with no welcome offer may not care. A betting site, a free trial or a referral programme cares a great deal, because each new account receives something of value. Multi-accounting is one person or group appearing as many customers to collect what is meant for one. ## What does multi-accounting mean? The term covers any case where one controller operates several accounts against the platform's rules. The accounts can be made by hand in a few minutes, or created in bulk with scripts and then run from one dashboard. Some use the operator's own details with small changes. Others use bought identities or the names of friends and family so each account passes an identity check. It differs from [fake accounts](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md), which are invented identities, often created by bots in large numbers for spam or resale. The two overlap: a multi-accounter may use fake identities, and a fake account farm is one operator running many accounts. ## Why do people run multiple accounts? The motive is nearly always a per-account benefit or a per-account limit. - Signup offers. Welcome bonuses, first-order discounts, free credits and free trials can be claimed again with each new account. See [promo and coupon abuse](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md). - Referral rewards. One person refers their own second, third and tenth accounts. - Purchase limits. Limited releases of sneakers, tickets and consoles often allow one or two units per account, so buyers who want more open more accounts. - Betting and stake limits. Bookmakers limit accounts that win consistently or only take offers, and a new account resets the limit. - Influence. Extra accounts post reviews, vote in polls, upvote content or follow profiles to make something look more popular. - Ban evasion. A user who was banned returns under a new account. - Games. Smurfing, where a skilled player uses a new account to play against beginners, and farming in-game rewards on many accounts to move to one main account. ## Is multi-accounting always against the rules? No. Many services allow several accounts per person, for example separate work and personal accounts. Agencies manage dozens of client accounts on ad and social platforms with permission. Families share a device and a home address. The test is what the platform's terms allow and whether the extra accounts are used to get something the rules meant for one person. That is why detection teams look for linked accounts that also claim rewards or break limits, and why a shared device by itself is weak evidence. The legal side is separate from the platform rules. In most countries, breaking terms of service is a contract matter, while using false identities to obtain money can be fraud. [Is multi-accounting illegal?](https://stopbots.io/learn/fake-accounts/is-multi-accounting-illegal.md) covers that in more detail. ## What does multi-accounting cost a platform? The direct cost is the value handed out: bonuses, discounts, trial compute, referral payouts. The indirect costs are harder to see. - Metrics become wrong. Customer acquisition cost looks lower and user growth looks higher than reality, so marketing spend goes to the wrong channels. - Fair play suffers. In poker and ranked games, one person holding two seats, or playing beginners on a fresh account, harms the other players. - Regulated businesses carry compliance risk. Gambling operators and fintech apps must verify identity, and duplicate accounts can be used to get around self-exclusion or to move money. - Limited stock goes to resellers, which upsets the customers the limit was meant to protect. ## How do platforms spot it? Platforms link accounts through what they share: the device, the payment card, the shipping address after normalisation, the phone number, the email inbox behind aliases, the network and the behaviour. A single shared value is rarely enough, so they look for clusters with several independent links. [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) explains the signals and how to score them. Organised operators use [antidetect browsers](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) to give each account its own fingerprint, and residential proxies to give each one a home IP address. That pushes detection toward the things a browser cannot change, such as cards, addresses and timing. Kairal's guide on [fake accounts and multi-account fraud](https://www.kairal.io/blog/fake-accounts-multi-account-fraud/) explains how to record the strength of each link between accounts. ## Common questions ### What is multi accounting in poker? It means one player using more than one account on the same poker site. That lets them enter a tournament more than once, sit in two seats at one table and share hole-card information, or claim the welcome bonus again, which is why poker sites ban it and close every linked account. ### What is multi account farming? Account farming is creating accounts in bulk and keeping them lightly active for weeks or months so they look like long-standing customers, then using or selling them. Aged accounts get past rules that only distrust new signups, so platforms also watch for old, quiet accounts that wake up together. ### Can you get banned for multi accounting? Yes. Platforms that forbid it usually close the duplicate accounts, and many also close the original and cancel bonuses or winnings tied to the duplicates, as their terms allow. ## Related - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) - [Is multi-accounting illegal?](https://stopbots.io/learn/fake-accounts/is-multi-accounting-illegal.md) - [Bonus abuse: multi-accounting in betting and gaming](https://stopbots.io/learn/fake-accounts/bonus-abuse-in-betting-and-gaming.md) - [What is promo abuse and how do you stop it?](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md) # Is multi-accounting illegal? > Holding several accounts is usually not a crime by itself. It normally breaks the platform's terms of service, which is a contract matter that leads to closed accounts and cancelled rewards. It can become fraud when false identities or deception are used to obtain money, goods or services, such as bonuses, promotions or chargebacks. The answer depends on the country. Category: Fake accounts and multi-accounting. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/is-multi-accounting-illegal/ This page explains the law in general terms for platforms that deal with multi-accounting. It is not legal advice. Laws differ between countries and the outcome of any case depends on its facts, so speak to a lawyer in your jurisdiction before acting on a specific case. ## Is it illegal to have more than one account? In most countries, opening a second account is not an offence by itself. The rule against it sits in the platform's terms of service, which are a contract between the platform and the user. Breaking a contract gives the platform contractual remedies: closing the accounts, cancelling bonuses or discounts, refusing to pay out rewards, and in some cases claiming back money already paid. It does not, by itself, make the user a criminal. This is why most action against [multi-accounting](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) happens inside the platform. The enforcement tool is the terms, backed by detection that links the accounts. ## When does multi-accounting become fraud? It moves into criminal law when it involves deception to obtain money, goods or services. Common examples are claiming a welcome bonus many times under invented or borrowed identities, collecting promotional credit with fake accounts and selling it on, or ordering goods on several accounts and then filing chargebacks claiming the orders were never received. The relevant laws are general fraud laws, not rules written for online accounts: - In England and Wales, section 2 of the [Fraud Act 2006](https://www.legislation.gov.uk/ukpga/2006/35/section/2) makes it an offence to dishonestly make a false representation intending to make a gain or cause a loss. A false name or a false claim to be a first-time customer can be a false representation. - In the United States, the federal wire fraud statute, [18 U.S.C. § 1343](https://www.law.cornell.edu/uscode/text/18/1343), covers schemes to obtain money or property by false pretences using electronic communications. States have their own fraud and theft laws. - In EU countries, fraud is defined in each national criminal code, for example [§ 263 of the German Criminal Code](https://www.gesetze-im-internet.de/stgb/__263.html) (Betrug) or article 640 of the Italian Criminal Code (truffa). Using another real person's identity, or forged documents to pass identity checks, is usually a separate offence on top of any fraud. ## What about computer misuse laws? Platforms sometimes ask whether automated account creation counts as unauthorised access. In the US, the Computer Fraud and Abuse Act covers access "without authorization" or that "exceeds authorized access". In [Van Buren v. United States](https://www.law.cornell.edu/supremecourt/text/19-783) (2021), the Supreme Court held that a person exceeds authorised access when they enter parts of a system, such as files or databases, that are off limits to them, and not when they misuse access they already have. The Court said it did not need to decide whether limits written only in contracts or policies count. A plain terms of service breach is therefore an uncertain basis for a computer misuse claim in the US. Ticketing has a specific rule. The US [BOTS Act](https://www.congress.gov/bill/114th-congress/senate-bill/3183) makes it unlawful to get around the security measures or controls a ticket issuer uses to enforce purchase limits. When the FTC [brought its first cases under the Act](https://www.ftc.gov/news-events/news/press-releases/2021/01/ftc-brings-first-ever-cases-under-bots-act) in January 2021, it alleged that ticket brokers used hundreds of fictitious Ticketmaster accounts and credit cards to get around posted ticket limits. See [are ticket bots illegal](https://stopbots.io/learn/scalping/are-ticket-bots-illegal.md) for more on that law. ## What can a platform do under its own terms? From the platform's side, the useful question is what remedies its own terms give it. Courts and regulators in the EU and UK check consumer terms for fairness. The [Unfair Contract Terms Directive](https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:31993L0013) and [Part 2 of the UK Consumer Rights Act 2015](https://www.legislation.gov.uk/ukpga/2015/15/part/2) say unfair terms do not bind consumers and require written terms to be transparent. A vague "we may close accounts for any abuse" clause is weaker than a precise one. Terms that hold up better usually: - state the limit plainly, for example one welcome offer per person, household, payment card and device; - say what happens to bonuses, winnings or credits tied to duplicate accounts; - explain how a customer can appeal a closure; - describe what the platform really does, applied the same way to everyone. In regulated industries such as gambling and payments, licence conditions add duties. Operators may have to verify identity, keep self-excluded customers out and report suspected money laundering, so duplicate accounts are a compliance problem as well as a commercial one. [Bonus abuse in betting and gaming](https://stopbots.io/learn/fake-accounts/bonus-abuse-in-betting-and-gaming.md) covers that angle. ## Is it legal for a platform to link accounts? Linking accounts means processing personal data: device identifiers, IP addresses, card tokens and addresses. In the EU and UK this falls under the GDPR. Recital 47 of the [GDPR](https://eur-lex.europa.eu/eli/reg/2016/679/oj) says that processing strictly necessary to prevent fraud is a legitimate interest of the controller. Platforms still need to tell users about the processing in their privacy notice, keep the data only as long as needed and limit it to what the purpose requires. Cookies and device storage used for fingerprinting can also fall under ePrivacy rules. [Bot protection and GDPR](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) explains how this applies to fingerprinting. ## Common questions ### Is multi accounting fraud? It can be, when the accounts are used to deceive. In England and Wales, fraud by false representation does not require the gain to happen: dishonestly making the false statement with the intent to gain, or to cause a loss, is enough. ### Is free trial abuse illegal? Signing up for a second free trial is usually only a breach of the provider's terms. It moves toward fraud when someone uses stolen cards or other people's identities to get the trials, because those acts are offences in their own right in most countries. ### Is promo code abuse illegal? Using a public code more often than the terms allow is normally a contract issue, and the shop's remedy is to cancel the discount or the order. Generating fake accounts at scale to collect discounts, or reselling codes obtained by deception, can fall under fraud law, depending on the jurisdiction and the facts. ## Related - [What is multi-accounting?](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) - [Bonus abuse: multi-accounting in betting and gaming](https://stopbots.io/learn/fake-accounts/bonus-abuse-in-betting-and-gaming.md) - [Are ticket bots illegal? The BOTS Act and other laws](https://stopbots.io/learn/scalping/are-ticket-bots-illegal.md) - [Bot protection and GDPR: is fingerprinting legal?](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) # How to detect multi-accounting > Detect multi-accounting by linking accounts through shared attributes: device fingerprint, payment card, normalised shipping address, phone number, normalised email, IP subnet, behaviour and referral ties. No single match proves anything, so build a graph of accounts and shared values, score each cluster on its independent links, and respond in steps, from watching to blocking. Category: Fake accounts and multi-accounting. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting/ Multi-accounting means one person or group running several accounts on a service that allows one each, usually to claim a welcome offer again, get past a purchase limit or come back after a ban. See [what multi-accounting is](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) for the motives. Detection is a linking problem. You are trying to show that accounts which look unrelated have the same person behind them. ## Which signals link accounts to one person? Store each identifier against the account and the event where you saw it (signup, login, checkout, payout). Each one below has a typical failure on each side: abusers can change it, and honest people share it. - Device and browser fingerprint. A hash of browser and hardware traits such as canvas output, WebGL renderer, fonts, screen and timezone, explained in [browser fingerprinting](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md). It links accounts made in one browser even after cookies are cleared. Antidetect browsers give every profile a new fingerprint, and popular phones on default settings share one. - Payment instrument. Your processor can give a stable token per card without exposing the number. Stripe returns `card.fingerprint` on each [PaymentMethod object](https://docs.stripe.com/api/payment_methods/object). Virtual and prepaid cards are cheap to issue, and couples share cards. - Shipping address after normalisation. Lowercase it, expand abbreviations ("st" to "street", "apt" and "flat" to "apartment"), remove punctuation and reorder unit numbers so "Flat 2, 10 High St." and "10 high street apartment 2" produce the same key. Abusers add small variations on purpose, sometimes called address jigging. Student halls, offices and parcel lockers create honest matches. - Phone number. Store it in [E.164 format](https://www.itu.int/rec/T-REC-E.164) (country code plus number, no spaces) and record the line type from a lookup. Virtual numbers are cheap, and carriers recycle old numbers to new owners. - Email patterns. Plus addressing (`name+anything@`) and dots in Gmail addresses reach one inbox, so compare a normalised linking key, covered in [disposable email detection](https://stopbots.io/learn/fake-accounts/disposable-email-detection.md). Also look for sequences such as `anna.k01`, `anna.k02` and for clusters on a brand-new domain. - IP address and subnet. Compare the exact IP, the /24 (the 256 IPv4 addresses that share the first three numbers), the /64 for IPv6, and the ASN (the network operator). [Residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) defeat this, and carrier-grade NAT puts strangers on one IP. - Behaviour and timing. Accounts created minutes apart, the same page sequence, the same form-fill speed, or logins that alternate on one device and never overlap. - Referral graph. Account A invites B, C and D, each claims the referral reward, and all of them go quiet afterwards. See [referral fraud](https://stopbots.io/learn/ecommerce-fraud/referral-fraud.md). ## Why does any single signal fail? One-signal rules break in both directions. A rule on fingerprint alone misses anyone using a fresh browser profile, and it also links strangers who own the same phone model. A rule on IP alone bans everyone behind a mobile carrier gateway. Each identifier is cheap to rotate on its own: a new proxy, a new profile, a new virtual card. Combinations are much harder to explain by chance. Two accounts that share a device fingerprint, a card and a normalised address are very unlikely to be strangers. Weight each link by how often unrelated people share it. A match on a card or a normalised email key is rarely a coincidence, so it scores high. A shared /24 or timezone is common among strangers and scores low. Also collect the identifiers that are expensive to change, such as cards and phone numbers, because abusers rotate the cheap ones first. ## How does the graph approach work? Treat accounts and identifiers as nodes. Draw an edge each time an account uses an identifier. Accounts joined through shared identifiers form a cluster. Keep one table with one row per account and identifier: ```sql CREATE TABLE account_identifiers ( account_id BIGINT NOT NULL, kind TEXT NOT NULL, value TEXT NOT NULL, seen_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), PRIMARY KEY (account_id, kind, value) ); ``` `kind` holds values such as `device`, `card`, `address`, `phone`, `email_key` and `ip24`. This query finds account pairs that share at least two different kinds of identifier, while skipping hub values that hundreds of unrelated accounts share (a carrier IP, a locker address): ```sql WITH hubs AS ( SELECT kind, value FROM account_identifiers GROUP BY kind, value HAVING COUNT(DISTINCT account_id) > 50 ) SELECT a.account_id AS account_a, b.account_id AS account_b, ARRAY_AGG(DISTINCT a.kind) AS shared_kinds FROM account_identifiers a JOIN account_identifiers b ON a.kind = b.kind AND a.value = b.value AND a.account_id < b.account_id WHERE (a.kind, a.value) NOT IN (SELECT kind, value FROM hubs) GROUP BY a.account_id, b.account_id HAVING COUNT(DISTINCT a.kind) >= 2; ``` The hub cut-off of 50 is a starting point. Set it from your own data. Load the resulting pairs into a graph library or a recursive query to get connected clusters, then score each cluster on the number of accounts, the strength of its links, how close together the accounts were created and how many rewards it claimed. ## What should you do at each confidence level? Match the action to the evidence, and apply limits per cluster instead of per account ("one welcome offer per cluster"). - Low confidence, such as one weak link like a shared /24. Record it and take no action the user can see. - Medium confidence, such as one strong link or several weak ones. Hold the reward or payout, ask for phone or card verification, and send the cluster to review if the value at stake is high. - High confidence, with several independent strong links and rewards already claimed. Reverse the duplicate rewards, close or merge the extra accounts, and keep the evidence for appeals. Households, shared offices and resold phones will produce honest links. Track how many reviewed clusters turn out to be honest, as described in [false positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md), and tune the weights from those reviews. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Fingerprint](https://fingerprint.com/): device identification for linking accounts across sessions. The open source [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) library is enough to start on a small site. - [Stripe Radar](https://stripe.com/radar): if you already take payments through Stripe, card fingerprints help link accounts that pay with the same card, and Radar rules can limit cards per customer or IP address. - [SEON](https://seon.io/): enriches email addresses and phone numbers with data about their history and combines them with device and IP checks at signup. - [Kairal](https://www.kairal.io/use-cases/account-farming-multi-accounting/): links device, network and behavioural signals across signup, login and checkout, and its console shows the related events, devices and IP addresses behind each decision. - [Verisoul](https://www.verisoul.ai/): a service aimed at fake account and multi-account detection, used to flag duplicate users at signup. ## Common questions ### What is a multi account detector? It is a service or internal job that compares each new or active account with existing ones on shared identifiers and returns the linked accounts with a score. Fraud platforms sell them, but a small team can start with an identifier table and the two queries on this page. ### Can you detect multi-accounting from the IP address alone? Not reliably. A shared IP means more when two accounts used it within the same hour than weeks apart, because home and mobile IP addresses are reassigned to other customers over time. Weight IP links by how close in time the uses were and treat them as supporting evidence. ### Should a multi account ban cover every linked account? Only when the links are strong and independent. A common policy keeps the oldest verified account open, closes the duplicates, and reverses the rewards they claimed, with an appeal route for households that share a device or address. ## Related - [What is multi-accounting?](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) - [How to detect antidetect browsers](https://stopbots.io/learn/fake-accounts/how-to-detect-antidetect-browsers.md) - [Referral fraud: how self-referral rings work](https://stopbots.io/learn/ecommerce-fraud/referral-fraud.md) - [What is promo abuse and how do you stop it?](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md) # What is an antidetect browser? > An antidetect browser is a modified Chromium or Firefox build that runs many separate profiles, each with its own fingerprint (user agent, canvas, WebGL, fonts, timezone, screen) and its own proxy. To a website every profile looks like a different person on a different computer. They are sold for managing many accounts and used by both agencies and fraudsters. Category: Fake accounts and multi-accounting. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser/ Websites recognise returning visitors through cookies and through the browser fingerprint, the set of values a browser exposes such as its user agent, screen size, installed fonts, graphics card and how it draws hidden images. Clearing cookies is easy. Changing the fingerprint so that it still looks like a normal computer is hard. An antidetect browser does that work for its user, at scale. ## How do antidetect browsers work? The user creates profiles. Each profile is a separate browser identity with three parts. - Its own storage. Cookies, local storage, cache and saved logins are kept apart, so a site sees no link between profiles through stored data. - Its own fingerprint. The browser reports a chosen user agent, operating system, screen resolution, language, timezone, CPU core count, memory size, GPU vendor and renderer, and font list. For values a site measures by drawing (canvas, WebGL, audio), it adds small changes to the output so each profile gets a different hash. - Its own network exit. Each profile is tied to a proxy, often a [residential proxy](https://stopbots.io/learn/bots/what-are-residential-proxies.md), so its IP address and location match the timezone and language it claims. The changes are built into the browser code itself, which makes them harder to spot than a browser extension that rewrites values with JavaScript. Profiles can be stored in the cloud, shared with a team and launched through an API, so automation frameworks such as Playwright, Puppeteer or Selenium can drive them. [How modern bots are built](https://stopbots.io/learn/bots/how-modern-bots-are-built.md) covers that automation side. ## What are antidetect browsers used for? The same features serve two groups. Legitimate users include agencies that run ad, marketplace and social media accounts for many clients and must keep each client's logins apart, sellers who manage several storefronts where the marketplace allows it, testers who check how a site looks from other countries, and people who use them for privacy. Abusive users include people who run duplicate accounts to claim signup bonuses and trials again, account farms that create and age accounts for resale, sneaker and ticket buyers getting around per-customer limits, banned users coming back, fake review and fake engagement operations, and fraudsters using stolen cards who want each order to look like it came from a different customer. For a fraud team, the trouble is that one person can now look like hundreds of unrelated customers to any check that relies on the device fingerprint alone. See [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) for linking methods that do not depend on the fingerprint. ## Antidetect browser vs VPN: what is the difference? A VPN changes only the network path. Your traffic leaves from the VPN server's IP address, but the browser fingerprint stays the same, so a site can still recognise the same browser across accounts. Incognito or private mode clears stored data when the window closes, but the fingerprint stays the same as well. An antidetect browser changes the browser identity for each profile and is normally used together with a proxy, so both the device and the network look new. That combination is what makes it useful for running many accounts. ## Do antidetect browsers work? They defeat simple checks. A site that blocks repeat signups only by fingerprint hash or by IP address will see each profile as a new visitor. They are weaker against consistency checks. Every faked value has to agree with every other value and with the real hardware underneath. A profile that claims Windows while the fonts, GPU output and audio processing come from a Mac, or that claims a Chrome version whose features are missing, gives itself away. Canvas noise can also make a fingerprint too unusual, because real fingerprints repeat across many people with the same device. [How to detect antidetect browsers](https://stopbots.io/learn/fake-accounts/how-to-detect-antidetect-browsers.md) goes through these checks and their limits. They change nothing outside the browser. The person behind the profiles still pays with a limited number of cards, ships to a small set of addresses, works at certain hours and moves through the site in a familiar way. Those shared resources are often the stronger evidence. Kairal's article on [fake accounts and multi-account fraud](https://www.kairal.io/blog/fake-accounts-multi-account-fraud/) covers linking accounts through payment references, delivery details and redemptions alongside device signals. ## Common questions ### Are antidetect browsers legal? Using one is legal in most countries, much like using a VPN. What can be illegal is the activity behind it, such as fraud with stolen cards, and platforms are free to ban their use in their terms of service. ### Do antidetect browsers work on phones? Most are desktop applications that imitate a phone by changing the screen size, touch support and user agent. Mobile identities are also sold through emulators and remote cloud phones, which is one reason apps check device integrity with Google Play Integrity or Apple App Attest. ### Are there open source antidetect browsers? Yes. Several open source projects patch Firefox or Chromium to change fingerprint values, and automation frameworks have stealth plugins with similar goals. For defenders this means anyone can use the technique at no cost. ## Related - [How to detect antidetect browsers](https://stopbots.io/learn/fake-accounts/how-to-detect-antidetect-browsers.md) - [What is browser fingerprinting and how does it work?](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) - [What are residential proxies and why do bots use them?](https://stopbots.io/learn/bots/what-are-residential-proxies.md) - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) # How to detect antidetect browsers > Detect antidetect browsers by looking for contradictions: a claimed operating system that does not match the fonts, GPU and audio output, a claimed browser version whose features are missing, canvas noise that changes between reads or is unique, and a timezone that does not fit the IP. Then link the accounts through cards, addresses and behaviour, which the browser cannot fake. Category: Fake accounts and multi-accounting. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/how-to-detect-antidetect-browsers/ An antidetect browser is built on real Chromium or Firefox code, so it does not announce itself. There is no user agent string or header to block. What it cannot do easily is make dozens of invented identities agree with each other and with the machine and network underneath. Detection works on those disagreements, then on what the profiles share. [What is an antidetect browser](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) explains how the profiles are built. ## Where do claimed and real values disagree? Collect the values the browser reports and the values it reveals through behaviour, then compare. Each check below is weak alone. Several together give a usable score. ### Claimed operating system against fonts, GPU and audio The user agent, `navigator.platform` and client hints say which OS the browser runs on. Other values are harder to fake because they come from the host machine. - Fonts. Each OS ships a known set of system fonts. Measure which fonts render (compare text width against a fallback font) and check the set against the claimed OS. A Windows claim with macOS system fonts present, or with standard Windows fonts missing, is a contradiction. - GPU. Compare the WebGL vendor and renderer string with what the GPU really does: supported extensions, maximum texture size, shader precision and the hash of a drawn 3D scene. A renderer string that names a desktop NVIDIA card while the rendering output and limits match an Apple GPU or a software renderer is a contradiction. - Audio. Process a short signal through an `OfflineAudioContext` and hash the result. The output differs by OS and audio stack, so a hash typical of macOS under a Windows claim is a contradiction. - Hardware and screen. Check `navigator.hardwareConcurrency`, `navigator.deviceMemory` and the screen size against the claimed device. A phone user agent with a desktop monitor resolution and no touch support does not fit. ### Claimed browser version against real features Antidetect vendors update their browser engine on their own schedule, while profiles often claim the latest Chrome. Compare the claimed version with the features present. If a JavaScript API or CSS feature shipped in the claimed version is missing, or one from a later version is present, the engine is not what it says. Keep a small table of features by version, built from release notes, and test a few of them on each visit. Compare the user agent with [User-Agent Client Hints](https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API) as well. Chromium browsers send the `Sec-CH-UA` and `Sec-CH-UA-Platform` headers on HTTPS requests by default. A mismatch like this one is worth recording: ```http GET /signup HTTP/1.1 Host: shop.example User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Sec-CH-UA: "Chromium";v="142", "Google Chrome";v="142", "Not-A.Brand";v="99" Sec-CH-UA-Platform: "macOS" ``` The user agent claims Chrome 150 on Windows, the client hints say version 142 on macOS (the version numbers are only examples). The TLS handshake gives a third view. A [JA4 fingerprint](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) that belongs to a different browser family or an automation library contradicts both. ### Canvas noise Antidetect browsers change canvas output so each profile gets its own hash. Two simple tests catch some implementations: ```js function drawTestCanvas() { const c = document.createElement("canvas"); c.width = 240; c.height = 40; const ctx = c.getContext("2d"); ctx.textBaseline = "top"; ctx.font = "16px Arial"; ctx.fillStyle = "#f60"; ctx.fillRect(0, 0, 240, 40); ctx.fillStyle = "#069"; ctx.fillText("canvas consistency check", 4, 12); return c.toDataURL(); } function solidFillIsExact() { const c = document.createElement("canvas"); c.width = 16; c.height = 16; const ctx = c.getContext("2d"); ctx.fillStyle = "rgb(10, 200, 30)"; ctx.fillRect(0, 0, 16, 16); const { data } = ctx.getImageData(0, 0, 16, 16); for (let i = 0; i < data.length; i += 4) { if (data[i] !== 10 || data[i + 1] !== 200 || data[i + 2] !== 30 || data[i + 3] !== 255) { return false; } } return true; } const canvasSignals = { changesBetweenReads: drawTestCanvas() !== drawTestCanvas(), solidFillExact: solidFillIsExact(), }; ``` In a standard Chrome without privacy extensions the two reads match and every pixel of a solid fill comes back with the exact colour. Noise added on every read fails the first test, and noise added to the pixels of a plain area fails the second. Noise that is fixed per profile passes both, so the third test is population-based: real canvas hashes repeat across the many people with the same device, browser and GPU. A hash that has never been seen before, attached to a claim of a very common device, is suspicious. ### Timezone and language against the IP address Compare `Intl.DateTimeFormat().resolvedOptions().timeZone` and the `Accept-Language` header with the location of the IP address. Antidetect browsers usually set the timezone to match the proxy, so this check mostly catches careless setups, and travellers and VPN users produce honest mismatches. Treat it as a minor signal. ## Which signals show up at the profile level? Some patterns only appear when you look across visitors. - Family resemblance. Profiles made with one tool share defaults. Group fingerprints on the values the tool rarely changes (screen size, font set, GPU family, language) and ignore the values it randomises (canvas, audio). Many "new" devices that are identical apart from their noisy values point to one operator. - Always new. Real customers return with stored cookies and a fingerprint you have seen before. A stream of signups where every device is brand new, every IP is a residential address on a different network and no visitor ever returns is a profile farm. [Residential proxy detection](https://stopbots.io/learn/detection/how-to-detect-residential-proxies.md) helps on the network side. - Same proxy pool. Many fresh devices whose IPs belong to one proxy provider's ranges, arriving in waves. - Operator rhythm. Accounts that are active one after another, never at the same time, often with a few seconds between the end of one session and the start of the next. ## Why linking accounts beats chasing each spoof Each check above can be fixed by the tool vendor in a later release, and some vendors fix them quickly. The resources behind the profiles are harder to change. The operator has a limited supply of payment cards, payout accounts, phone numbers and shipping addresses, and the same habits on every account: typing rhythm, page order, time of day, the products or markets they target. Store those values per account and link accounts that share them, as described in [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md). Use the browser signals to raise the score of a cluster, and use the shared resources to decide. ## What are the limits? - Privacy browsers look similar. Brave randomises some fingerprint values per site, and Firefox and Safari add noise to canvas and other readings in some of their privacy modes. A rule that blocks on canvas noise alone will hit privacy-minded customers. - Legitimate users exist. Agencies run client accounts in antidetect browsers with permission. If your terms allow that, a positive detection is not proof of abuse. - Spoofs improve. Expect checks to lose value over time and measure them against reviewed cases, as described in [false positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md). - Engine-level changes leave fewer traces than JavaScript overrides. Checks for overwritten native functions catch extensions and injected scripts more often than modified browser builds. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [CreepJS](https://github.com/abrahamjuliot/creepjs): an open source fingerprinting test page that reports values it believes are faked, useful for seeing what your own checks should catch. - [Fingerprint](https://fingerprint.com/): device identification service. The open source [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) library is enough to collect and compare browser values on a small site. - [Spur](https://spur.us/): IP intelligence that identifies VPN and residential proxy exits, which covers the network half of an antidetect setup. - [Kairal](https://www.kairal.io/product/bot-protection/): combines device, network and behavioural signals at signup, login and checkout, and links the related devices and IP addresses behind each decision. ## Common questions ### What is an antidetect browser detector? It is a script, often paired with server-side checks, that collects many browser values and tests whether they agree with each other and with the network. Public test pages such as CreepJS show this kind of analysis on your own browser, which helps when you build or tune your own checks. ### Do anti detect browsers work against fraud detection? Against fingerprint matching alone, often yes. Against consistency checks across the full fingerprint, the TLS handshake and the network, they leave traces, and none of them hide a shared payment card or shipping address, so they slow detection down without stopping it. ### Can antidetect browsers be detected server-side only? Partly. The server sees the TLS fingerprint, HTTP headers, client hints and IP reputation, which catch some mismatches. Canvas, WebGL, font and audio checks need JavaScript running in the page. ## Related - [What is an antidetect browser?](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) - [How to detect headless Chrome and automated browsers](https://stopbots.io/learn/detection/headless-browser-detection.md) - [TLS fingerprinting for bot detection: JA3 and JA4 explained](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) # How to stop fake account creation > Stop fake accounts with layers at signup: an invisible bot check and rate limits on the signup endpoint, email and phone checks, device and network signals, and velocity counts per device, subnet and email domain. Add friction only for risky signups, and hold back bonuses, messaging and payouts until a new account has shown normal behaviour. Category: Fake accounts and multi-accounting. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation/ Fake accounts arrive in two shapes. Bulk registrations are scripted, fast and repetitive, and they fail simple bot checks. Hand-made accounts come from people running several identities, from account farms or from real browsers driven by tools, and they pass bot checks by design. A signup flow needs controls for both, and a second line of checks at the moment an account first gets something of value. ## What should the signup endpoint check? Start with the controls that stop scripts, since they cost real users nothing. - An invisible bot check before the form posts, such as a [JavaScript challenge](https://stopbots.io/learn/captcha/javascript-challenges-explained.md), and a check on the server that its token is present and valid. A signup request that arrives without the page ever loading is scripted. - A hidden form field that people never fill, as described in [honeypots for bot detection](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md). - Rate limits per IP address on the signup route. This nginx example allows five signup requests per minute per IP with a small burst, as a starting point: ```nginx limit_req_zone $binary_remote_addr zone=signup:10m rate=5r/m; server { server_name shop.example; location = /api/signup { limit_req zone=signup burst=3 nodelay; limit_req_status 429; proxy_pass http://app_backend; } } ``` `limit_req_zone` belongs in the `http` block, and `app_backend` stands for your own upstream. Per-IP limits do little against residential proxies, where every request comes from a new address, so also count by /24 subnet, by ASN (the network operator) and by device. [Rate limiting for bots](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) covers what limits miss. ## How do you check the email and phone? The email address tells you whether the person can be reached later. Reject addresses whose domain cannot receive mail, give disposable inbox domains a high risk score, and compute a normalised linking key so `anna.k+1@gmail.com` and `annak@gmail.com` count as one person. [Disposable email detection](https://stopbots.io/learn/fake-accounts/disposable-email-detection.md) covers how to do this without blocking privacy relay users. Phone verification raises the cost of each account, because a phone number is harder to get than an email address. It also has a price per message, and attackers can abuse an open OTP endpoint to send messages to premium-rate numbers, which is [SMS pumping](https://stopbots.io/learn/account-attacks/sms-pumping-fraud.md). Ask for a phone number only when the signup is already risky, look up the line type, and limit how many codes a session, number and country prefix can request. ## Which velocity counts catch account farms? Count signups over short windows on every attribute you can group by: device fingerprint, IP, /24, ASN, email domain, email linking key pattern, phone prefix and referral code. A rare email domain that suddenly appears many times in an hour is a strong sign. This query, for PostgreSQL, lists domains with an unusual burst: ```sql SELECT split_part(lower(email), '@', 2) AS domain, COUNT(*) AS signups_last_hour FROM users WHERE created_at >= NOW() - INTERVAL '1 hour' GROUP BY 1 HAVING COUNT(*) >= 20 ORDER BY signups_last_hour DESC; ``` Large providers such as gmail.com will always pass a fixed threshold, so compare each domain with its own usual hourly count and alert on the change. The threshold of 20 is a starting point for a mid-sized site. ## How much friction should a new account face? Score each signup from the signals above and pick the response from the score. - Low risk. Create the account with no extra step. - Medium risk. Create the account but require email confirmation before any reward, or a phone check, or a visible challenge. - High risk. Block the signup, or create the account in a restricted state that a person reviews. Most fake accounts exist to collect something. Hold back what they want until the account has a short normal history: delay signup credit until the first real order, limit messages and listings from new accounts, and keep referral rewards pending until the referred account has paid. This makes bulk accounts worthless even when some pass signup. Kairal's guide to [stopping coordinated fake account creation](https://www.kairal.io/blog/stopping-coordinated-fake-account-creation/) covers accounts prepared early and activated later, which a check on signup volume alone misses. ## What should you watch after signup? Some farms create accounts and leave them for weeks so they look aged before use. Watch for groups of old, inactive accounts that wake up together, change their email or password in the same hour, or claim the same promotion. Link accounts through shared devices, cards and addresses, as described in [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md), and apply limits to the whole cluster. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/): a free challenge that usually runs without a puzzle, enough for a small site's signup form. - [Twilio Verify](https://www.twilio.com/en-us/trusted-activation/verify): sends and checks one-time codes by SMS, voice and email, which fits phone checks for medium-risk signups. - [Kairal](https://www.kairal.io/use-cases/account-farming-multi-accounting/): protection per endpoint for signup and login, with device, network and behavioural signals, invisible challenges instead of puzzles, and a preview mode to see decisions before blocking. - [Arkose Labs](https://www.arkoselabs.com/): challenge-based protection aimed at large platforms facing high-volume account creation attacks. - [SEON](https://seon.io/): email, phone and IP checks with rule-based scoring for onboarding flows. ## Common questions ### Why are fake accounts created? Mostly to collect something given per account (signup credit, trials, referral rewards), to send spam or scams from accounts that look new and clean, to post fake reviews, or to sell aged accounts to others. Each motive points to a different moment to check, such as signup for spam and first reward claim for promo abuse. ### Can machine learning detect fake accounts? Yes, a model trained on labelled past signups can score new ones, and large platforms do this. A small site gets most of the benefit from simple rules and velocity counts first, because a model needs reliable labels, and those come from reviewing the accounts the rules flag. ### Are fake accounts illegal? Creating an account under a false name is usually a breach of the platform's terms, not a crime by itself. Using fake accounts to defraud, impersonate a real person or harass others can be an offence, depending on the jurisdiction, so a platform's direct remedy is closing the accounts and reporting serious cases to the authorities. ## Related - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) - [Disposable emails and aliases: how to handle them at signup](https://stopbots.io/learn/fake-accounts/disposable-email-detection.md) - [Honeypots for bot detection: hidden fields and trap links](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md) - [SMS pumping fraud: when bots attack your OTP endpoint](https://stopbots.io/learn/account-attacks/sms-pumping-fraud.md) # Disposable emails and aliases: how to handle them at signup > Detect disposable emails with a maintained domain blocklist and a check of the domain's MX records, then normalise plus addressing and Gmail dots into a linking key to spot repeat signups. Treat privacy relays such as Apple Hide My Email and Firefox Relay as legitimate. Score the address as one risk signal instead of hard-blocking everything unusual. Category: Fake accounts and multi-accounting. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/disposable-email-detection/ Three different things get called disposable email, and they need different handling. Temporary inboxes are throwaway addresses on services that need no signup and expire after minutes or days. Aliases are extra addresses for one real inbox, made with plus addressing, dots in Gmail or a catch-all domain. Privacy relays are forwarding addresses from services such as Apple Hide My Email or Firefox Relay that hide the real inbox from the site. Only the first is a strong fraud signal. Aliases matter mostly for spotting repeat signups, and relays are used by ordinary privacy-conscious customers. ## How do disposable email blocklists work? A blocklist is a list of domains known to belong to temporary inbox services. You check the part after `@` at signup. The open source [disposable-email-domains](https://github.com/disposable-email-domains/disposable-email-domains) list on GitHub is a common starting point, and commercial email validation services keep larger lists. The list needs upkeep, because temporary inbox services register new domains all the time and some let users bring their own domain. To keep it current: - Refresh from your source on a schedule, for example a nightly job that downloads the list and reloads it. - Keep a local allowlist for domains wrongly listed, such as a customer's company domain. - Add domains you see in your own abuse cases, since attackers often reuse one fresh domain for a whole wave of signups. ## How do MX record checks help? An MX record says which mail servers accept mail for a domain. Checking it at signup catches typos and invented domains, and it often groups disposable services, because many temporary inbox domains point to the same few mail servers. Keeping the MX host as its own signal catches new domains that no list has yet. ```bash dig +short MX example.com ``` Read the result with two rules from the mail standards in mind. A domain with no MX record can still receive mail at its A or AAAA address (the implicit MX in [RFC 5321, section 5.1](https://www.rfc-editor.org/rfc/rfc5321#section-5.1)), so a missing MX is not proof that the domain is fake. A "null MX" record, which shows as `0 .`, means the domain accepts no mail at all ([RFC 7505](https://www.rfc-editor.org/rfc/rfc7505)). In Node.js: ```js import { promises as dns } from "node:dns"; export async function mailHosts(domain) { try { const records = await dns.resolveMx(domain); if (records.length === 1 && records[0].exchange === "") { return { status: "null_mx", hosts: [] }; } return { status: "mx", hosts: records.map((r) => r.exchange.toLowerCase()) }; } catch (err) { if (err.code === "ENODATA") return { status: "no_mx", hosts: [] }; if (err.code === "ENOTFOUND") return { status: "no_domain", hosts: [] }; throw err; } } ``` Reject `null_mx` and `no_domain`. For `no_mx`, check for an A or AAAA record before deciding. Cache results per domain, since DNS lookups add delay to the signup request. ## How do you handle plus addressing and Gmail dots? Many providers deliver `anna+shop@` to `anna@`, a convention described as subaddressing in [RFC 5233](https://www.rfc-editor.org/rfc/rfc5233). Gmail also ignores dots in the local part, so `a.n.n.a@gmail.com` reaches `anna@gmail.com`, as [Google's help page](https://support.google.com/mail/answer/7436150) explains. Addresses at googlemail.com reach the same Gmail accounts. Most other providers treat dots as part of the name, so remove them only for Gmail. Store the address exactly as typed, because that is where you send mail. Compute a separate linking key for duplicate checks: ```js const GMAIL_DOMAINS = new Set(["gmail.com", "googlemail.com"]); export function linkingKey(address) { const value = address.trim().toLowerCase(); const at = value.lastIndexOf("@"); if (at < 1 || at === value.length - 1) return null; let local = value.slice(0, at).split("+")[0]; let domain = value.slice(at + 1); if (GMAIL_DOMAINS.has(domain)) { local = local.replaceAll(".", ""); domain = "gmail.com"; } return local ? `${local}@${domain}` : null; } ``` Two accounts with the same key reach the same inbox. That is a strong link for offer limits ("one welcome offer per inbox") and a weak reason to block, because many people use plus addresses to sort mail. ## Should you block privacy relay addresses? Not by default. Apple Hide My Email (and the relay addresses that Sign in with Apple can share, at privaterelay.appleid.com), Firefox Relay (mozmail.com) and DuckDuckGo Email Protection (duck.com) forward to a real, long-lived inbox. These users chose a privacy feature, often a paid one, and blocking them turns away real customers. The abuse risk is that a relay user can create many aliases. Handle that with the other linking signals (device, card, address) and with per-cluster limits on rewards, as in [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md), instead of with the email domain. ## How do you score an address instead of blocking it? Give the address a risk contribution and combine it with device, network and behaviour signals, as described in [how to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md). Starting points: | Address type | What it tells you | Starting response | |---|---|---| | Domain has null MX or does not exist | Cannot receive mail | Reject with a "check your email" message | | Known temporary inbox domain | Contact will not last | High score, no free credit until another check passes | | Mail host shared with known temporary domains | Probably a new temporary domain | Medium to high score, review the domain | | Linking key matches an existing account | Same inbox as an earlier signup | Link the accounts, apply offer limits per key | | Privacy relay | Real inbox, hidden | No penalty on its own | | Major provider, random-looking local part | Weak sign of scripted creation | Small score, count it in velocity checks | For trials, the same score decides how much free value the account gets, as covered in [how to prevent free trial abuse](https://stopbots.io/learn/fake-accounts/how-to-prevent-free-trial-abuse.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [disposable-email-domains](https://github.com/disposable-email-domains/disposable-email-domains): a free, community-maintained domain list that is enough for a small site when refreshed on a schedule. - [SEON](https://seon.io/): email analysis that adds domain, history and profile data to the address, plus phone and IP checks, for onboarding risk scores. - [IPQualityScore](https://www.ipqualityscore.com/): email validation and disposable domain detection alongside IP and proxy reputation. - [Kairal](https://www.kairal.io/use-cases/account-farming-multi-accounting/): combines device, network and behavioural signals at signup so the email verdict is one input among several. ## Common questions ### Should you block temporary email addresses at signup? Block them where you need to reach the customer later, for example for invoices or account recovery, or where the signup comes with free value. For a newsletter or a free tool with no reward, a disposable address mostly costs you a dead contact, so a lower score is enough. ### Does sending a verification email stop disposable addresses? No. A disposable inbox receives the confirmation link and the user clicks it within minutes. Verification proves the inbox worked once, which still helps against typos and against addresses that belong to someone else. ### How often should a disposable domain list be updated? Pull updates from your source at least weekly and add domains you see abused on your own site the same day. New disposable domains appear constantly, so a list copied once and never refreshed loses value quickly. ## Related - [How to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) - [How to prevent free trial abuse](https://stopbots.io/learn/fake-accounts/how-to-prevent-free-trial-abuse.md) - [Subscription bombing: bots abusing your signup forms](https://stopbots.io/learn/ad-fraud/subscription-bombing.md) - [What is promo abuse and how do you stop it?](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md) # How to prevent free trial abuse > Prevent free trial abuse by recognising returning users (card fingerprint, device, email linking key, company domain), capping what a trial account can consume, and releasing expensive resources in steps as trust grows. Ask for a card or phone number only where the abuse cost justifies the lost signups. For AI and GPU products, never give full compute on signup. Category: Fake accounts and multi-accounting. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/how-to-prevent-free-trial-abuse/ A free trial gives each new account something of value, so a person who can make new accounts cheaply can keep using the product for free. For most SaaS the loss is revenue that never arrives. For AI and GPU products each trial burns real compute, so abuse shows up directly on the infrastructure bill. Kairal's guide to [free trial abuse prevention for SaaS](https://www.kairal.io/blog/free-trial-abuse-prevention-saas/) covers granting and reserving trial credits safely on the server. ## What does free trial abuse look like? - Serial trialists. One person starts a new trial with a new email address each time the last one ends. - Credit farms. Scripts create many accounts, drain each one's free credits through the API and pool the output, or resell access to it. - Compute abuse. Free CPU or GPU time runs work unrelated to the product, such as cryptocurrency mining. - Card testing. Attackers use the card step of a trial signup to check stolen cards with zero-amount authorisations. See [what card testing is](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md). ## Should you require a card for a free trial? A card on file has clear benefits. Your processor can give a stable card fingerprint (Stripe returns `card.fingerprint` on each [PaymentMethod](https://docs.stripe.com/api/payment_methods/object)), so a second trial on the same card is easy to spot. Each card costs the abuser something, and the trial can convert to paid without another step. The costs are real too. Fewer people start a trial when a card is required. Prepaid and virtual cards are cheap to get. The card form becomes a target for card testing, and customers who forget to cancel open disputes. A common middle path: - Run a no-card trial with low limits, and ask for a card to raise them. - Ask for a card only when the signup's risk score is high. - Check the card's `funding` value (`credit`, `debit`, `prepaid` or `unknown`) and give prepaid cards smaller limits. - Compare each new card fingerprint with earlier trials: ```sql SELECT card_fingerprint, COUNT(DISTINCT account_id) AS trial_accounts, MAX(trial_started_at) AS latest_trial FROM trials WHERE card_fingerprint IS NOT NULL GROUP BY card_fingerprint HAVING COUNT(DISTINCT account_id) > 1 ORDER BY trial_accounts DESC; ``` ## Is phone verification worth the cost? A phone number is harder to get in bulk than an email address, so a one-trial-per-number rule raises the cost of each extra account. You pay per message, though. An open verification endpoint can also be abused to send messages to premium-rate numbers, which is [SMS pumping](https://stopbots.io/learn/account-attacks/sms-pumping-fraud.md). Virtual numbers are cheap, and some genuine users cannot receive SMS reliably. Use phone checks for risky signups, not for everyone. Look up the line type, refuse numbers already used for a trial, cap code requests per number and per session, and turn off SMS delivery to country prefixes you do not serve. ## How do you recognise a returning trial user? Store identifiers for every trial and compare new signups with them: device fingerprint, IP and /24, the email linking key (plus addressing and Gmail dots removed, see [disposable email detection](https://stopbots.io/learn/fake-accounts/disposable-email-detection.md)), card fingerprint and phone. SaaS products also have product-level identifiers that are hard to rotate: - the company email domain or the workspace name; - the same Git repository, cloud account or chat workspace connected through an integration; - the same files, projects or prompts in the first session. [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) explains how to combine these into clusters. When a new signup matches an earlier trial, offer a login to the existing account or a paid plan, instead of a fresh trial. ## How do you cap usage during a trial? Set limits per account and per linked cluster, so ten linked accounts share one allowance. - Total quota: tokens, requests, build minutes, GPU minutes, storage. - Rate: requests per minute per API key, and concurrent jobs. - Features: keep the most expensive models, GPU types and outbound email sending for paid plans or for later trial stages. - Output: limit exports and bulk downloads where the output is the value. Return a clear error when a cap is hit, so honest users know what to do. [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) covers per-key limits in more detail. ## Why delay expensive resources? Abusers want value immediately, before detection catches up. Releasing it in stages takes the payoff out of throwaway accounts, while honest users barely notice the steps. - At signup: a small allowance, enough to try the product. - After email confirmation: a larger allowance. - After a card or phone check: the full trial quota. - After a first payment or several days of normal use: paid-level limits. For GPU products, put trial jobs in a lower-priority queue, cap the run time of each job and watch for patterns that do not fit the product: sustained full GPU use with no interactive activity, or outbound connections to cryptocurrency mining pools. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Stripe Radar](https://stripe.com/radar): if you bill through Stripe, Radar rules and card fingerprints help at the card step of a trial. - [Twilio Verify](https://www.twilio.com/en-us/trusted-activation/verify): one-time codes by SMS, voice and email for the phone step of risky signups. - [Fingerprint](https://fingerprint.com/): device identification to recognise returning trial users. The open source [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) library is enough for a small product. - [Kairal](https://www.kairal.io/use-cases/trial-credit-farming/): detects fake accounts and multi-accounting at signup with device, network and behavioural signals, with protection set per endpoint. ## Common questions ### What happens if you abuse free trials? On most services the duplicate accounts are closed and any credits or output tied to them are removed, as the terms allow. Where a card was on file, some providers end the trial early and start billing, and repeated abuse with stolen cards or identities can lead to a fraud report. ### Is it illegal to keep making free trials? Usually it only breaks the provider's terms of service. It can become fraud when it relies on stolen cards or other people's identities, and the answer depends on the country, so this is not legal advice. ### Does Stripe Radar stop free trial abuse? Radar scores card payments and lets you write rules on card attributes, which helps at the card step. It sees the card, not your user accounts, so linking a card fingerprint to earlier trial accounts is work you do with your own data. ## Related - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) - [Disposable emails and aliases: how to handle them at signup](https://stopbots.io/learn/fake-accounts/disposable-email-detection.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) - [What is card testing?](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md) # How to stop ban evasion > Stop ban evasion by saving the banned account's identifiers (device, card, payout account, phone, email linking key, addresses, IP history, image hashes) when you ban it, then matching every new account against that record. Add behavioural signals such as returning to the same people or listings. Respond in proportion to the match, restrict before you ban, and keep an appeal route. Category: Fake accounts and multi-accounting. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/how-to-stop-ban-evasion/ A ban only works if you can recognise the person when they come back. A banned user who opens a new account with a new email address is invisible to a system that only checks the email. The work is in two parts: re-identifying the person behind a new account, and deciding what to do about a match in a way that holds up when the match is wrong. ## What do ban evaders change and what do they keep? Evaders change what is cheap to change: the email address, the username, the IP address (through a VPN or proxy), the browser profile and sometimes the phone number. The more determined ones use an [antidetect browser](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) to get a new device fingerprint. They usually keep what is costly or personal: - payment cards and payout accounts, because getting new ones in their own name is slow; - shipping or pickup addresses; - the people they interact with (victims of harassment, trading partners, the same communities or listings); - the content they post, often reused images, phrases and links; - habits such as active hours, typing rhythm and the order they move through the site; - their old username, in a slightly changed form. Low-effort evaders also keep the device. Catching them is easy, so get that part right before working on the harder cases. ## What should you record when you ban an account? Take a snapshot at the moment of the ban, since some values (IP addresses, sessions) are short-lived. Store it in a table of banned identifiers, separate from live account data: ```sql CREATE TABLE banned_identifiers ( banned_account_id BIGINT NOT NULL, kind TEXT NOT NULL, value TEXT NOT NULL, weight SMALLINT NOT NULL, expires_at TIMESTAMPTZ, PRIMARY KEY (banned_account_id, kind, value) ); ``` Useful kinds include `device`, `card`, `payout`, `phone`, `email_key` (the address with plus tags and Gmail dots removed), `address`, `ip`, `ip24` and `image_hash`. For images, a perceptual hash such as Meta's open source [PDQ](https://github.com/facebook/ThreatExchange/tree/main/pdq) still matches after resizing or recompression, where a file hash would not. Give each kind a lifetime. IP addresses are reassigned to other people, so expire them after days or weeks. Device identifiers last months. Card and payout tokens can last as long as the ban. These periods are starting points to set with your privacy team, because the data is personal data under the GDPR; see [bot protection and GDPR](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md). ## How do you match new accounts against banned ones? Run the match at signup and again at each moment where an evader would act: first post, first message, first listing, first payout. Assuming new accounts are stored in an `account_identifiers` table with the same `kind` and `value` columns, this PostgreSQL query returns banned accounts linked to one new account, with a score: ```sql SELECT b.banned_account_id, ARRAY_AGG(DISTINCT b.kind) AS matched_kinds, SUM(b.weight) AS score FROM account_identifiers n JOIN banned_identifiers b ON b.kind = n.kind AND b.value = n.value WHERE n.account_id = $1 AND (b.expires_at IS NULL OR b.expires_at > NOW()) GROUP BY b.banned_account_id ORDER BY score DESC; ``` Weights are yours to set. As a starting point, give card, payout and phone matches high weight, device and email key medium, image hashes medium, and IP or /24 low. Exclude hub values such as a carrier IP that thousands of users share, as described in [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md). ## Which behavioural signals expose an evader? Identifiers miss evaders who rotate everything. Behaviour fills part of the gap. - Return to the same targets. A new account that contacts the same users, joins the same groups or bids on the same seller's listings as the banned account within its first hours is a strong sign. Victim reports ("this is X again") are worth routing straight to review. - Timing. New accounts created soon after a ban, active in the same hours. - Name and profile reuse. Usernames within a small edit distance of the old one, the same avatar image hash, the same bio text. - Content reuse. The same images, links, phone numbers or payment instructions in posts. - Writing style. Repeated phrases, spelling habits and punctuation. This is weaker evidence and slow to compute, so keep it for review queues. ## How should you respond to a match? Match the action to the score and to the harm the original ban addressed. - Weak match. Record it and watch the account. Add the link to any future review. - Medium match. Restrict the account: hold payouts, slow its reach, send its posts or messages to review, or ask for phone or identity verification where your product supports it. - Strong match, several independent links. Close the account and add its new identifiers to the banned record, so the next attempt meets a larger record. Restrictions give you time to collect more evidence without telling the evader which signal matched. A blunt instant ban teaches them what to change next. Escalate the type of ban with repetition: account, then device and network, then payment instruments and identity, where your product has verified identities. ## How do you handle appeals and false matches? Honest matches happen. Siblings share a laptop, phones are resold, carriers recycle phone numbers, and housemates share an address. Plan for these: - Never ban on an IP or /24 match alone. - Give support staff a view of which kinds matched, so they can tell a shared household from an evader. - Offer an appeal route and track how often appeals succeed, as described in [false positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md). In the EU, the [Digital Services Act](https://eur-lex.europa.eu/eli/reg/2022/2065/oj) adds duties for many services. Article 17 requires a statement of reasons when a hosting service suspends or terminates an account, Article 20 requires online platforms to offer an internal complaint system, and Article 23 asks online platforms to suspend, after a warning, users who frequently post manifestly illegal content. Check with counsel how these apply to your service and how much detail your statements of reasons must contain. ## What are the limits? A determined evader with a new device, a new card in someone else's name and a fresh phone number will get through identifier matching for a while. The practical goal is to raise the cost of each return and shorten the time each new account survives. Holding value back from new accounts helps here: if a fresh account cannot message strangers, list items or receive payouts until it has some history, evading the ban buys little. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Fingerprint](https://fingerprint.com/): device identification that survives cleared cookies, useful for device-level ban records. The open source FingerprintJS library is a free starting point. - [PDQ](https://github.com/facebook/ThreatExchange/tree/main/pdq): Meta's open source perceptual image hash, enough to catch reuploaded avatars and images on a small platform. - [Sift](https://sift.com/): fraud and abuse scoring with account and content signals, suited to marketplaces and community platforms. - [Kairal](https://www.kairal.io/use-cases/account-farming-multi-accounting/): links device, network and behavioural signals across signup and login, and its console shows the related events, devices and IP addresses for each decision. ## Common questions ### What is ban evasion? It is a banned user returning to a platform with a new account, either to continue the behaviour that got them banned or to regain access to a service they were removed from. Most platforms treat it as a separate breach of their terms, so an evasion account is closed even if it has not yet repeated the original behaviour. ### Should a device ban replace an account ban? Use device bans as one layer among several. Devices change owners, families share them and antidetect browsers create new ones on demand, so a device match is best treated as strong evidence that still needs a second link before an automatic ban. ### How long should you keep data about banned users? Keep it as long as the ban is meant to last and set that period in writing. Under the GDPR you need a stated purpose and retention period for each kind of data, which usually means keeping card and phone tokens longer than raw IP history. ## Related - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) - [How to detect antidetect browsers](https://stopbots.io/learn/fake-accounts/how-to-detect-antidetect-browsers.md) - [Bot protection and GDPR: is fingerprinting legal?](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) - [False positives in bot detection: how to measure and reduce them](https://stopbots.io/learn/detection/bot-detection-false-positives.md) # Bonus abuse: multi-accounting in betting and gaming > Bonus abuse is claiming betting, casino or gaming promotions in ways the terms forbid, usually by running several accounts so each one takes the welcome offer. Gnoming is the version where the extra accounts are registered in other real people's names, so they pass identity checks. Operators catch it by linking devices, payment methods, betting patterns and KYC details across accounts. Category: Fake accounts and multi-accounting. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/fake-accounts/bonus-abuse-in-betting-and-gaming/ Betting, casino, poker and game operators run many promotions: welcome bonuses, deposit matches, free bets, free spins, no-deposit credit and referral rewards. Each offer is priced on the assumption that one person claims it once and then stays as a customer. Bonus abuse breaks that assumption. A person or an organised group opens many accounts, takes the offer on each and leaves once the bonus has been turned into withdrawable money. ## What do bonus abuse and gnoming look like? The simplest form is self-made duplicates, a form of [multi-accounting](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md): one person registers again with a new email, a variation of their name and address, and a new device or browser profile. Strict identity checks make this harder, so organised groups move to gnoming. They open accounts in other real people's names (family, friends, or people paid for their identity details), so each account has a genuine identity behind it while one operator controls the money. Common patterns in betting include: - deposit the minimum to qualify, place the wagering requirement on low-risk bets, then withdraw; - cover every outcome of one match across linked accounts, so one account wins whatever happens; - claim referral rewards by referring one's own accounts, a pattern covered in [referral fraud](https://stopbots.io/learn/ecommerce-fraud/referral-fraud.md); - continue betting on a new account after the original was limited. In poker, extra accounts also let one player enter a tournament several times or sit in more than one seat at a table, which harms other players. In online games, multi-accounting shows up as farming free rewards or in-game currency on many accounts and moving it to one main account, and as smurfing, where a skilled player uses new accounts to play against beginners. ## Why do operators care? The promotion budget is the direct loss. A regulated business has further reasons: - Identity and age checks lose their point if one person can hide behind accounts in other names. - Self-exclusion can be bypassed. National schemes such as [GAMSTOP](https://www.gamstop.co.uk/) in the UK let people block themselves from many gambling sites at once, and a duplicate account under other details can get around that. - Linked accounts can move money between them, for example through deliberate losses at a poker table (chip dumping), which matters for anti-money laundering duties. - Affiliate partners can be paid for players who are really one person's extra accounts. - Fairness to other players suffers in poker, peer-to-peer betting and ranked games. ## Which signals expose linked betting accounts? Use the general linking signals from [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) (device fingerprint, IP and subnet, normalised addresses, phone, email linking key) and add the ones specific to gambling: - Payment methods. The same card, bank account or e-wallet used for deposits or withdrawals on several accounts, or withdrawals from different accounts going to one destination. - Bet mirroring. Linked accounts placing bets on opposite outcomes of the same market within minutes of each other, often with bonus funds. - Bonus-only lifecycle. Accounts that deposit only when a promotion runs, meet the wagering requirement in the minimum way and stop. - KYC overlap. Different names with the same address, documents photographed against the same background, the same selfie lighting and device, or one phone number across several identities. - Registration bursts. Many accounts from one affiliate link or referral code within a short time. This PostgreSQL query finds already-linked account pairs that bet on different selections of the same market within ten minutes, where at least one bet used bonus funds. It assumes `account_links` stores each pair once with the lower id in `account_a`: ```sql SELECT a.account_id AS account_a, b.account_id AS account_b, a.market_id, a.selection_id AS selection_a, b.selection_id AS selection_b, a.placed_at FROM bets a JOIN bets b ON a.market_id = b.market_id AND a.selection_id <> b.selection_id AND a.account_id < b.account_id AND b.placed_at BETWEEN a.placed_at - INTERVAL '10 minutes' AND a.placed_at + INTERVAL '10 minutes' JOIN account_links l ON l.account_a = a.account_id AND l.account_b = b.account_id WHERE a.bonus_funded OR b.bonus_funded; ``` Ten minutes is a starting point. For markets with three or more outcomes, group by market and count how many linked accounts together cover every outcome. ## Where does KYC help, and where does it fall short? KYC (know your customer) checks confirm that an account belongs to a real, identified person. In many regulated markets operators must verify age and identity before a customer can gamble. Strict KYC makes invented identities and self-made duplicates much harder, because one person cannot easily produce several sets of valid documents. It does not stop gnoming on its own, because the documents are genuine. That is where KYC data becomes a linking signal. Several verified identities that share one device, one payout wallet, one home network or one pattern of play are the evidence. Checking identity early, before the bonus is credited, also removes the window where an abuser collects value before verification. ## What should an operator do with a confirmed cluster? Act under the terms the customer accepted. Typical steps are voiding bonuses and the winnings derived from them, closing the duplicate accounts and keeping or closing the original according to the evidence. What an operator may withhold depends on its terms and its regulator. [Is multi-accounting illegal?](https://stopbots.io/learn/fake-accounts/is-multi-accounting-illegal.md) covers why the wording of those terms matters. Where linked accounts were used to move money, internal anti-money laundering procedures may require a report. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [SEON](https://seon.io/): email, phone, IP and device checks with rule-based scoring, a fit for online gambling onboarding. - [Incognia](https://www.incognia.com/): device and location signals for mobile apps, a fit where most betting happens in an app. - [Fingerprint](https://fingerprint.com/): device identification for linking accounts across sessions and identities. - [Kairal](https://www.kairal.io/use-cases/coupon-promo-referral-abuse/): detects multi-accounting and promo abuse by linking device, network and behavioural signals across signup, login and checkout, with protection set per endpoint. ## Common questions ### What is multi accounting in sports betting? It is one person or group controlling several accounts at one bookmaker. Bookmaker terms commonly limit offers to one per person, household, device or payment method, and when accounts are found to be linked the operator can void the bonus bets and related winnings and close the duplicates, as those terms allow. ### Is matched betting the same as bonus abuse? No. Matched betting uses free bets with an opposing bet at a betting exchange, and done with one account per person within the terms it is generally allowed, although operators may restrict such accounts. It becomes bonus abuse when the person opens extra accounts or breaks the offer terms. ### What does gnoming mean? A gnome is an account opened in the name of a real person who is not the one using it, such as a relative, a friend or someone paid for their details. Because the identity is genuine, the account can pass document checks, which is why gnoming is harder to catch than accounts made with invented names. ## Related - [What is multi-accounting?](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) - [Is multi-accounting illegal?](https://stopbots.io/learn/fake-accounts/is-multi-accounting-illegal.md) - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) - [What is promo abuse and how do you stop it?](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md) # What is ecommerce fraud? The main types explained > Ecommerce fraud is any deception that makes an online store lose money, goods or incentives. The main types are payments with stolen cards, card testing, account takeover, friendly fraud chargebacks, refund and return fraud, promo and referral abuse, and triangulation fraud. Some types depend on bots for volume. Others depend on one person telling a false story to support or to their bank. Category: Ecommerce and payment fraud. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/what-is-ecommerce-fraud/ Ecommerce fraud covers every way someone makes an online store pay for something it should not: goods shipped against a stolen card, a refund for a parcel that did arrive, a welcome discount claimed again and again by the same person. Online card payments are card-not-present, meaning the card is never shown in person, so when the real cardholder disputes a charge the merchant usually carries the loss. ## What are the main types of ecommerce fraud? | Type | What happens | First sign in your data | |---|---|---| | Stolen card payments | Someone buys goods with card details taken from another person | Fraud disputes weeks later, often on orders shipped to addresses you have never seen | | [Card testing](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md) | Scripts run small or zero-value payments to find which stolen cards still work | A spike in declined payments with low amounts and nonsense names | | Account takeover | An attacker logs in to a real customer's account and spends saved cards, points or gift balance | Password resets, new devices and changed shipping addresses on old accounts | | [Friendly fraud](https://stopbots.io/learn/ecommerce-fraud/chargeback-fraud-vs-friendly-fraud.md) | The real cardholder buys, then disputes the charge with their bank | Disputes from customers who have earlier undisputed orders | | [Refund and return fraud](https://stopbots.io/learn/ecommerce-fraud/refund-and-return-fraud.md) | A customer gets money back without returning what they bought | High claim rates per customer, "not received" claims on delivered parcels | | [Promo and referral abuse](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md) | One person opens many accounts to reuse once-per-customer offers | Many new accounts on one device or address, each using the welcome code | | [Triangulation fraud](https://stopbots.io/learn/ecommerce-fraud/triangulation-fraud.md) | A fake shop takes a real order and fills it from your store with a stolen card | Billing and shipping names that never match, and many cards sent to many addresses from linked devices | Scalping, where bots buy limited stock for resale, and fake account creation sit next to these. They often feed one of the types above. ## Who pays when ecommerce fraud happens? For an unauthorised card payment, the cardholder disputes the charge, the issuing bank files a chargeback, and the merchant loses the sale amount, the goods and a dispute fee set by its processor. When the payment was authenticated with 3-D Secure, liability for fraud disputes usually moves to the issuer, though the rules vary by card network and region. Fraud that never reaches a dispute still costs money. Each card test can carry an authorisation fee. Staff spend time on manual reviews. Bots hold stock in carts, and discounts go to people who were never new customers. High dispute and fraud rates add a second cost. Card networks run monitoring programmes, such as the [Visa Acquirer Monitoring Program](https://corporate.visa.com/en/sites/visa-perspectives/security-trust/introducing-visa-acquirer-monitoring-program.html), and a merchant that stays above the limits can face fees passed on by its acquirer, a reserve on payouts or the loss of its merchant account. ## Which types of ecommerce fraud use bots? Fraud that depends on volume is almost always automated. Card testing needs a large number of payment attempts, credential stuffing tries leaked passwords against your login, and promo abuse needs a steady supply of new accounts. Bot detection on the request and the session stops these before they reach the payment or signup step. The article on [bot protection vs fraud prevention tools](https://stopbots.io/learn/ecommerce-fraud/bot-protection-vs-fraud-prevention-tools.md) explains where each layer acts. Fraud that depends on a story is usually done by people: a friendly fraud dispute, a refund claim through support chat, a high-value order placed by hand with a stolen card. Payment fraud scoring, delivery evidence and customer history work better there than bot detection. Triangulation rings and refund-as-a-service groups mix both, with scripted ordering and human follow-up. ## How to tell which problem you have Start from what you see in orders, payments and support tickets: - A sudden rise in declines, mostly small amounts or zero-value card checks, with nonsense names and emails, points to card testing. - Fraud disputes on orders where the billing and shipping names differ, sent to new addresses, point to stolen cards or triangulation. - "Not received" disputes on orders your carrier shows as delivered, from customers with a buying history, point to friendly fraud or refund abuse. - Old accounts that suddenly order to a new address after a password reset or a login from a new device point to account takeover. - Many first orders using the welcome code from one device, one card, or one street address written several ways point to promo abuse. ## Where a small store should start 1. Turn on the card security code (CVV) and postcode checks your processor offers, and block payments where the issuer reports a mismatch. 2. Put a rate limit on the payment and add-card endpoints. 3. Log the device, IP address and account ID with every order, so you can link orders later and use them as dispute evidence. Kairal's guide to [checkout fraud signals](https://www.kairal.io/blog/best-fraud-signals-for-checkout/) describes more signals worth keeping with each order. 4. Refund payments you believe are fraudulent before they turn into disputes. 5. Write a returns policy that says when refunds are paid, for example after the item is received and inspected, and apply it the same way every time. 6. Make your billing descriptor, the name on the customer's card statement, match the shop name customers know. ## Common questions ### How do I report ecommerce fraud? Tell your payment processor first, since it can block the cards, refund the cardholders and adjust its own risk rules. Then report to the police or the national fraud reporting service in your country. In the US that means the FBI's IC3 at ic3.gov and the FTC at reportfraud.ftc.gov. ### Is ecommerce a high-risk business? Not by default. Processors class some merchants as high risk because of their product category, subscription or refund model, or dispute history, and those merchants pay higher fees or have part of their payouts held as a reserve. ### What is the difference between fraud detection and fraud prevention? Detection finds fraud in your data, often after the fact, through alerts, order reviews and dispute analysis. Prevention acts before the loss, for example by blocking a scripted checkout or asking for 3-D Secure. Detection results are what you use to tune the prevention rules. ## Related - [What is account takeover (ATO) fraud?](https://stopbots.io/learn/account-attacks/what-is-account-takeover.md) - [How to prevent chargeback fraud](https://stopbots.io/learn/ecommerce-fraud/how-to-prevent-chargeback-fraud.md) - [How to stop card testing attacks](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md) - [How to stop bots on your website](https://stopbots.io/learn/implementation/how-to-stop-bots-on-your-website.md) # What is card testing? > Card testing is a fraud attack in which scripts submit stolen or guessed card details to a payment or add-card form, usually with tiny or zero-value amounts, to learn which cards work. Working cards are then used for larger purchases elsewhere or resold. The merchant whose form is used pays through authorisation fees, disputes and a higher decline rate. Category: Ecommerce and payment fraud. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing/ A card tester uses your payment form for one thing: its answer. Approved means the card is live, and a live card is worth more to the tester than anything in your store. Stripe's [card testing guide](https://docs.stripe.com/disputes/prevention/card-testing) lists the other names the attack goes by: carding, account testing, enumeration and card checking. ## How does card testing work? The attacker starts with a list of card details, either stolen or generated. A script, usually running through [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) or a [botnet](https://stopbots.io/learn/bots/what-is-a-botnet.md) so each attempt comes from a different IP address, submits each card to a payment endpoint that answers quickly and asks for little else. It records the response and moves to the next card. Cards that pass are kept for larger purchases at other merchants or resold as "checked" cards. Stripe notes that testers use two kinds of request. Card setup, where a card is saved to an account, is popular because the checks behind it usually do not appear on the cardholder's statement. Small payments are the other kind, because cardholders are less likely to notice and report them. ## Enumeration vs validation of stolen cards The [OWASP automated threats list](https://owasp.org/www-project-automated-threats-to-web-applications/) separates two attacks that both get called card testing: - Carding (OAT-001) checks whether complete stolen card records still work. The attacker has the number, expiry date and security code and only needs a yes or no. - Card cracking (OAT-010) guesses the missing parts, such as the expiry date or security code, by trying different values against the same number. Enumeration is the wider name for guessing. Every card number starts with a BIN (bank identification number, the first six to eight digits that identify the issuer), so an attacker who knows one valid BIN can generate numbers in that range and try them with many expiry dates and codes. Visa [describes enumeration](https://corporate.visa.com/en/sites/visa-perspectives/security-trust/introducing-visa-acquirer-monitoring-program.html) as "a rapid, brute force card testing attack at scale". The two look different in your logs. Validation shows many distinct card numbers with one or two attempts each, often with full billing details copied from the stolen record. Enumeration shows the same card number or the same BIN again and again, with the expiry or security code changing between attempts and a high share of "incorrect CVC" and "expired card" declines. ## Why small and zero-value payments are the target A zero-value authorisation is the card check a processor runs when a card is saved without a charge. Together with very small payments, it gives the tester an answer while the cardholder sees little or nothing. The usual targets are: - donation forms that let the payer choose any amount - add-card and update-payment-method pages, especially when reachable without logging in or right after an automated signup - free trials that ask for a card - cheap digital goods with instant delivery and guest checkout - mobile app or partner APIs that call the processor without the protections your web checkout has ## What card testing costs the merchant The tester takes the card data and leaves you with the bill: - Depending on your pricing plan, your processor may charge a fee for each authorisation attempt, declined ones included. - Some test charges succeed. Cardholders notice them and report fraud, and each [dispute](https://stopbots.io/learn/ecommerce-fraud/chargeback-fraud-vs-friendly-fraud.md) brings a fee on top of the reversed amount. - Issuers see many declines from your merchant account and grow stricter with all your payments, so real customers get declined too. Stripe warns this can last after the attack ends. - A processor that sees an attack running on your account may review it, hold payouts, ask for changes or close the account. Visa's [Acquirer Monitoring Program](https://corporate.visa.com/en/sites/visa-perspectives/security-trust/introducing-visa-acquirer-monitoring-program.html) includes criteria based on the number of enumerated authorisation transactions and the enumeration rate, so attempts can count against a merchant even when they are declined. - Large numbers of fake customers and orders slow your systems and distort your revenue and conversion reports. ## Signs your site is being used for card testing - A spike in failed payments or HTTP 402 errors from your payment API. On Stripe, many show the decline code `generic_decline`. - Bursts of low-value payments or card saves within minutes, often at hours when real customers are quiet. - Customer names and emails that are random strings, or one name used with many different cards. - Many cards per IP address, device, session or account. - New accounts that add a card and never buy anything. - The same BIN appearing far more often than usual, with only the last four digits changing. If you see two or more of these together, treat it as an active attack. The steps are in [how to stop card testing](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md), and the [OWASP automated threats overview](https://stopbots.io/learn/bots/owasp-automated-threats.md) covers the related bot attacks on payment and account flows. ## Common questions ### What is card testing without an order? It means authorisations or card checks show up in your processor dashboard with no matching order in your store. The attacker is calling a payment, card setup or add-card endpoint directly, or using a leaked API key, so your shop logic never runs. Find every endpoint that can create a payment or save a card without a cart, and rotate any key that may have leaked. ### Is card testing done by bots? Almost always. The attack only pays off at volume, so it runs from scripts or automated browsers, usually spread across many proxy IP addresses to stay under simple per-IP limits. That is why bot detection on the payment step is one of the main defences. ### Can card testing happen on Stripe, PayPal or Shopify stores? Yes. Any form that returns an approved or declined answer can be used, whatever the processor. Processors run their own card testing defences on their hosted checkouts, but endpoints you build yourself, such as a custom donation form or an add-card page, need your own limits. ## Related - [How to stop card testing attacks](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md) - [What is a botnet?](https://stopbots.io/learn/bots/what-is-a-botnet.md) - [What is ecommerce fraud? The main types explained](https://stopbots.io/learn/ecommerce-fraud/what-is-ecommerce-fraud.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) # How to stop card testing attacks > To stop card testing, block payments that fail CVV or postcode checks, limit failed attempts per session, card BIN, IP address and device, and check for bots before the payment form accepts a submission. Cap attempts per cart and per account, return one generic decline message, and remove any endpoint that saves or checks a card without a logged-in customer. Category: Ecommerce and payment fraud. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing/ If an attack is running now, act on the payment step first: stop fulfilling the suspicious orders, refund the test charges that went through so they do not become disputes, and add temporary friction such as a required login or a challenge before payment. Then add the controls below, cheapest first. A rule on one signal rarely holds, because testers rotate IP addresses through [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) and change cards, amounts and user agents during the attack. ## Require CVV and postcode checks Collect the card security code (CVV or CVC) and the billing postcode on every card payment, and block when the issuer reports a mismatch. A tester who guesses numbers then also needs the right code. On Stripe Radar: ```txt Block if :cvc_check: = 'fail' Block if :address_zip_check: = 'fail' ``` A stricter `!= 'pass'` also blocks payments where no check ran. Wallets such as Apple Pay send no CVC and not every issuer supports postcode checks, as Stripe's [rules reference](https://docs.stripe.com/radar/rules/reference) notes, so measure how many good payments a strict rule would stop first. ## Limit declines per session, BIN, IP and device Count failures by several keys at once and act when any of them crosses a limit. Starting points to tune against your own traffic: - 3 failed payments per session or cart in an hour - 5 failed payments per IP address in an hour, higher for mobile carriers and offices that share addresses - 3 distinct cards per device or account in a day - declines for one BIN (the first six to eight digits of the card number) well above its normal share This PostgreSQL query shows which IP addresses tried the most cards in the last hour. Swap `ip_address` for `device_id` or `card_bin` to see the other views. ```sql SELECT ip_address, COUNT(*) AS attempts, COUNT(DISTINCT card_fingerprint) AS distinct_cards, SUM(CASE WHEN status = 'declined' THEN 1 ELSE 0 END) AS declines FROM payment_attempts WHERE created_at > NOW() - INTERVAL '1 hour' GROUP BY ip_address HAVING COUNT(DISTINCT card_fingerprint) >= 3 ORDER BY distinct_cards DESC; ``` Radar velocity rules do the same at the processor, if your Radar plan includes custom rules. Counts exclude the payment being checked. ```txt Block if :card_count_for_ip_address_hourly: > 3 Block if :declined_charges_per_ip_address_hourly: > 5 Review if :card_count_for_customer_daily: > 3 ``` Per-IP limits miss attacks spread over thousands of addresses, which is why the other keys matter, as explained in [what rate limits stop and miss](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md). ## Check for bots before the payment form Bot detection judges the session itself: whether the browser is automated, whether the IP address belongs to a proxy or data centre, whether the visitor looked at anything before paying. Run the check when the payment page loads and again on submit, and verify the result on your server, since scripts skip any browser widget whose token the server never checks. WooCommerce found that several [CAPTCHA plugins did not protect the Checkout block and Store API](https://developer.woocommerce.com/2024/12/18/card-testing-attacks-and-the-store-api/). Solving services pass visible puzzles, so an [invisible check](https://stopbots.io/learn/captcha/captcha-alternatives.md) with a challenge only for risky sessions costs fewer real customers. ## Cap attempts per cart and per account After 3 failed payments on one cart, a starting point, lock the cart and ask the customer to log in or contact support. Limit the cards an account can add per day. Require login before a card can be saved. ## Return one generic decline message Messages such as "incorrect CVC" or "expired card" tell an enumeration script which field to change next. Log the detailed reason on the server and show one message to the customer: ```js const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY); app.post('/api/checkout/pay', async (req, res, next) => { try { const intent = await stripe.paymentIntents.confirm(req.body.paymentIntentId, { payment_method: req.body.paymentMethodId, }); return res.json({ status: intent.status }); } catch (err) { if (err.type === 'StripeCardError') { console.warn('card declined', err.code, err.decline_code); return res.status(402).json({ error: 'Payment was not approved. Check your details or try another card.', }); } return next(err); } }); ``` This covers responses your own server sends. When the processor's library confirms the payment in the browser, the processor decides what the error contains. ## Remove unauthenticated add-card endpoints List every route that can save a card or trigger a zero-value authorisation, including account pages, subscription updates, mobile app APIs and old checkout versions. Each one should require a logged-in customer and sit behind the same limits and bot checks, or be removed if nothing uses it. Set a minimum amount on donation forms. Keep secret API keys out of client code, and rotate any that may have leaked, since a leaked key lets testers create payments directly. ## Platform notes: Stripe, WooCommerce and Shopify On Stripe, Checkout and the Payment Element include automatic card testing controls such as rate limiters and CAPTCHA. A custom integration should send the customer's IP address, email, name and billing address with each payment, because Stripe's models use them. On WooCommerce, Store API rate limiting is built in but [disabled by default](https://developer.woocommerce.com/docs/apis/store-api/rate-limiting/). Turn it on with a filter. The toggle under WooCommerce > Settings > Advanced > Features only limits the checkout request, not the rest of the Store API: ```php add_filter( 'woocommerce_store_api_rate_limit_options', function() { return [ 'enabled' => true, 'proxy_support' => false, 'limit' => 25, 'seconds' => 10, ]; } ); ``` Set `proxy_support` to `true` when the site sits behind a CDN or load balancer, or every visitor appears to share the proxy's address and real customers hit the limit together. Leave it `false` on a site that receives traffic directly, where a forwarded IP header could be forged. Since WooCommerce 9.8 the `woocommerce_store_api_rate_limit_id` filter lets you key limits on a fingerprint instead of the IP address. Kairal's [WooCommerce card testing guide](https://www.kairal.io/blog/card-testing-woocommerce/) explains why order-level fraud plugins, CAPTCHAs and IP rules alone fall short. On Shopify you do not control the checkout code. Shopify Payments includes card testing protection, and its [fraud analysis](https://help.shopify.com/en/manual/orders/fraud-analysis) temporarily blocks an IP address after many orders or failed payments in a short time. During an attack, cancel and refund test orders, do not fulfil them, and use manual payment capture while you investigate. Shopify's bot protection for Plus stores targets checkout bots during product drops, not payment fraud. More options are in [stopping bots on Shopify](https://stopbots.io/learn/implementation/stop-bots-on-shopify.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Stripe Radar](https://stripe.com/radar) scores every Stripe payment and lets you write block and review rules on CVC results, postcode checks and card velocity; it fits stores already on Stripe. - [Cloudflare rate limiting rules](https://developers.cloudflare.com/waf/rate-limiting-rules/) limit requests to the payment path at the edge before they reach your server; they suit sites already behind Cloudflare. - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) is a free challenge you verify on the server before accepting a payment request, and with rate limits it is often enough for a small store. - [Kairal](https://www.kairal.io/use-cases/card-testing/) checks device, network and behaviour signals on the session before checkout and lets you set protection per endpoint, such as payment and add-card, with a preview mode that shows decisions before anything is blocked. ## Common questions ### How do I stop card testing on WooCommerce? Turn on Store API rate limiting, make sure your CAPTCHA or bot check also covers the Checkout block and the Store API, and add fraud rules that block the order pattern the attack uses, such as one cheap product. If you use WooPayments, its support team can bulk refund test orders that went through. ### Does a CAPTCHA stop card testing? It slows scripts that cannot pass it, but CAPTCHA solving services pass many puzzles for a small fee, and a CAPTCHA only checks the moment of submission. It works best as a challenge you show to sessions that already look risky, verified on the server for every payment request. ### Should I refund card testing charges? Yes, refund successful test charges quickly and do not ship anything. A refund made before the cardholder disputes the charge usually prevents the chargeback and its fee. ## Related - [What is card testing?](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md) - [Rate limiting for bots: what it stops and what it misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) - [How to stop bots on Shopify](https://stopbots.io/learn/implementation/stop-bots-on-shopify.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) # Chargeback fraud vs friendly fraud > A chargeback is the card issuer reversing a payment after the cardholder disputes it. True fraud is a dispute over a payment the cardholder never made. Friendly fraud, also called first-party misuse, is a dispute over a purchase the cardholder did make. Chargeback fraud usually means the deliberate kind: buying, receiving the goods, then claiming fraud or non-delivery to get the money back. Category: Ecommerce and payment fraud. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/chargeback-fraud-vs-friendly-fraud/ The bank sees one event, a dispute, and the merchant has to work out which story is behind it. That story decides what you do next. True fraud is stopped before the payment, while friendly fraud is answered with evidence after it. ## What is a chargeback? A chargeback is a payment reversal forced by the card issuer, the bank that gave the customer their card. The usual sequence: 1. The cardholder contacts their issuer and disputes a charge. 2. The issuer files a chargeback through the card network with a reason code, such as fraud, item not received or not as described. 3. Your acquirer, the bank or processor that handles your card payments, takes the amount back from you and usually adds a dispute fee. 4. You accept the loss or respond with evidence. Responding is called representment. 5. The issuer decides. Some cases go to further rounds, ending in arbitration by the card network. A chargeback is different from a refund, which you choose to give, and from an authorisation reversal, where you cancel an authorisation before it settles so the charge never lands on the statement. ## True fraud, friendly fraud and chargeback fraud compared | Case | Who made the purchase | What the cardholder tells the bank | What usually works | |---|---|---|---| | True fraud | Someone using stolen card details or a taken-over account | "I did not make this payment", and it is true | Accept or refund early, then close the gap that let the order through | | Accidental friendly fraud | The cardholder, a family member or a forgotten subscription | "I do not recognise this" or "I did not order this" | A clear billing descriptor, receipts, an easy refund path, pre-dispute alerts | | Deliberate friendly fraud (chargeback fraud) | The cardholder | "It never arrived" or "it was not me", knowing it is false | Representment with delivery proof, account history and a device match | Visa calls disputes on purchases the cardholder made first-party misuse. People use "chargeback fraud" in two ways: some mean only the deliberate case, others mean any chargeback that should not have happened. Check which one a vendor or report means before you compare numbers. ## What friendly fraud looks like in practice Accidental cases are often fixable. The cardholder does not recognise the name on their statement, a child bought something with a saved card, a free trial turned into a paid plan without a reminder, or the bank app made disputing easier than finding the merchant's contact page. Deliberate cases follow a pattern. The customer receives the order, then files a "not received" or "unauthorised" dispute, often after a refund request was refused or instead of returning the item. Some do it once. Others repeat it across accounts, which is where [refund and return fraud](https://stopbots.io/learn/ecommerce-fraud/refund-and-return-fraud.md) and chargeback fraud overlap. ## How to tell them apart in your data Signs that the cardholder made the purchase: - earlier undisputed orders from the same account, device or IP address - a logged-in session with a normal browsing history before checkout - delivery confirmed to the cardholder's billing address, or downloads and logins after a digital purchase - support contact from the customer before the dispute Signs of true fraud: - a new account, or an old account with a recent password reset or new device, which suggests [account takeover](https://stopbots.io/learn/account-attacks/what-is-account-takeover.md) - billing and shipping names and addresses that do not match - an IP address from a proxy or data centre, or far from the billing address - several cards tried in one session, or [card testing](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md) on your site shortly before - express shipping on goods that resell easily [Triangulation fraud](https://stopbots.io/learn/ecommerce-fraud/triangulation-fraud.md) mixes the two. The cardholder is a real victim, and the person who received the goods is real too, but neither placed the order. ## Is chargeback fraud illegal? Knowingly making a false claim to a bank to get money back can be treated as fraud or theft in many countries, and merchants can also try to recover the amount through civil claims or debt collection. Whether a case is prosecuted depends on the jurisdiction, the amount and the evidence of intent. An honest mistake, such as not recognising a billing descriptor, is not fraud. This page is general information and not legal advice. The prevention steps for each case are in [how to prevent chargeback fraud](https://stopbots.io/learn/ecommerce-fraud/how-to-prevent-chargeback-fraud.md). ## Common questions ### Can you go to jail for a fraudulent chargeback? It is possible where a false dispute meets the legal definition of fraud or theft, but the outcome depends on the country, the amount and the evidence of intent. A merchant can contest the dispute, close the account and take legal advice for larger sums. For a specific case, ask a lawyer in the relevant jurisdiction. ### What is the difference between a dispute and a chargeback? Processors often use dispute for the whole process and chargeback for the step where the issuer takes the money back from the merchant. Some disputes start as an inquiry or retrieval request, where the issuer only asks for information and no money moves yet. ### Why are chargebacks bad for business? Each one costs the sale, usually the goods, a fee and staff time, and you do not win every response. Many of them also raise your dispute rate, which processors and card networks track, and a high rate can lead to fees, payout reserves or the loss of your merchant account. ## Related - [How to prevent chargeback fraud](https://stopbots.io/learn/ecommerce-fraud/how-to-prevent-chargeback-fraud.md) - [Refund fraud and return fraud: how they work](https://stopbots.io/learn/ecommerce-fraud/refund-and-return-fraud.md) - [What is account takeover (ATO) fraud?](https://stopbots.io/learn/account-attacks/what-is-account-takeover.md) # How to prevent chargeback fraud > Prevent fraud chargebacks by screening orders before they ship and asking for 3-D Secure on risky payments, which usually moves fraud liability to the issuer. Prevent friendly fraud with a recognisable billing descriptor, receipts, delivery proof and an easy refund path. Use pre-dispute alerts to refund before a chargeback is filed, and keep device and order evidence for representment. Category: Ecommerce and payment fraud. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/how-to-prevent-chargeback-fraud/ Two problems hide behind the word chargeback, and they need different fixes. Disputes from true fraud are stopped before the payment settles, by refusing the stolen card. Disputes from friendly fraud, where the cardholder made the purchase, are prevented by making the charge easy to recognise and easy to refund, and answered with evidence when they happen anyway. The difference is explained in [chargeback fraud vs friendly fraud](https://stopbots.io/learn/ecommerce-fraud/chargeback-fraud-vs-friendly-fraud.md). ## Screen orders before they ship Score each order with your processor's fraud tool or a dedicated one, hold high-risk orders for manual review before fulfilment, and cancel and refund when you are unsure. Signals worth checking: - billing and shipping names or addresses that do not match - an IP address from a proxy or data centre, or far from the billing country - a device or card already linked to past disputes - several cards tried in one session - a recent password reset or new device on an old account, a common [sign of account takeover](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md) - express shipping on goods that resell easily Test charges that succeed during a card testing attack also turn into fraud disputes, so the defences in [how to stop card testing](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md) reduce chargebacks too. ## Ask for 3-D Secure where the risk is higher [3-D Secure](https://www.emvco.com/emv-technologies/3-d-secure/) lets the card issuer authenticate the cardholder during checkout, through a banking app approval, a one-time code or a check on risk data with no visible step. When a payment is authenticated this way, liability for fraud-related chargebacks generally moves from the merchant to the issuer. The shift has limits. It covers fraud claims, not disputes for items not received or not as described. Rules and exemptions vary by card network, region and payment type. In the European Economic Area and the UK, strong customer authentication rules already require authentication, usually through 3-D Secure, for most online card payments, with exemptions such as low-value and low-risk payments. Elsewhere, a common approach is to request 3-D Secure only for orders your fraud screening rates as risky. ## Make every charge recognisable - Set a billing descriptor, the text on the card statement, that matches the shop name customers know. Add a domain or phone number if your processor allows it. Stripe's [statement descriptor guide](https://docs.stripe.com/get-started/account/statement-descriptors) shows the options. - Put that descriptor in the order confirmation email: "This charge will appear on your statement as ...". - For subscriptions, send a reminder before each renewal and before a free trial converts, and make cancelling as easy as signing up. - Show a contact and refund route on every order page. A customer who gets a fast answer from you has less reason to call the bank. ## Keep proof of delivery and use For physical goods, keep the carrier tracking with the delivery scan, and ask for a signature or photo on high-value orders. For digital goods and services, keep logs of logins, downloads and usage with the IP address and device, tied to the account. Collect all of it at order time. Evidence you did not log cannot be produced when the dispute arrives. ## Use pre-dispute alerts Card networks and their partners offer ways to settle a complaint before it becomes a chargeback. Visa's [Order Insight](https://www.visa.com/en-us/products/order-insight) sends order details to the issuer when a cardholder asks about a charge, so the bank can show what was bought. Visa's Rapid Dispute Resolution can refund disputes that match rules you set, and Mastercard's Ethoca alerts tell you an issuer has a fraud report or dispute so you can refund first. Each service charges per alert or per resolved case, usually through your processor, and they suit low-value orders where a refund costs less than a fight. Stripe's [dispute prevention docs](https://docs.stripe.com/disputes/get-started/prevention) explain how they connect for Stripe merchants. ## Answer chargebacks with evidence that fits the reason Representment means answering a chargeback with evidence so the issuer reverses it. Match the evidence to the reason code: - For fraud claims, send CVV and address check results, the 3-D Secure result, IP address, device ID, login history and earlier undisputed orders on the same account. Visa's Compelling Evidence 3.0 rules let a merchant answer some card-absent fraud disputes with earlier undisputed transactions from the same cardholder that share data such as IP address, device ID or account login. Stripe documents how it [submits this evidence](https://docs.stripe.com/disputes/api/visa-ce3). - For "not received", send carrier tracking to the address the cardholder gave, with a delivery photo or signature. - For "not as described", send the product page as it was at the time of sale, photos and your messages with the customer. - For a cancelled subscription, send the terms accepted at signup, the renewal reminders and usage after the renewal date. Keep each response short and factual, and respond before your processor's deadline. ## Stop repeat disputers Flag customers who have filed disputes. Link new accounts to old ones through device, card fingerprint, address and email, the same methods used to [detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md), and refuse orders from linked accounts or limit them to payment methods without chargebacks. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Stripe Radar](https://stripe.com/radar) scores Stripe payments, supports rules that request 3-D Secure, and works with Stripe's dispute tools; it fits merchants already on Stripe. - [Signifyd](https://www.signifyd.com/) reviews orders and offers a guarantee that covers fraud chargebacks on the orders it approves, for merchants who want to hand off liability. - [Riskified](https://www.riskified.com/) also approves or declines orders and pays covered fraud chargebacks on the ones it approves, so it is worth comparing with other guarantee vendors on cover and pricing. - [Visa Order Insight](https://www.visa.com/en-us/products/order-insight) and other pre-dispute services are usually switched on through your processor and fit stores with many low-value disputes. - [Kairal](https://www.kairal.io/industries/retail-ecommerce/) links devices, IP addresses and accounts across login, signup and checkout, which helps catch account takeover and repeat disputers on new accounts before they order. ## Common questions ### Can you stop friendly fraud completely? No. Some cardholders will dispute whatever evidence you hold, and issuers decide each case. You can lower the number of disputes and win more of the ones you answer, and you can stop selling to accounts that dispute again and again. ### Should I fight every chargeback? Fight when you hold evidence that matches the dispute reason and the amount justifies the staff time. For low-value orders, refunding through a pre-dispute alert or accepting the loss often costs less than a response you are unlikely to win. ### How long do customers have to file a chargeback? It depends on the card network, the reason code and the region, and some reasons allow disputes long after the purchase. Your processor's dispute documentation lists the time limits that apply to you, along with your own deadline to respond. ## Related - [Chargeback fraud vs friendly fraud](https://stopbots.io/learn/ecommerce-fraud/chargeback-fraud-vs-friendly-fraud.md) - [What is triangulation fraud in ecommerce?](https://stopbots.io/learn/ecommerce-fraud/triangulation-fraud.md) - [Signs of account takeover: the red flags in your logs](https://stopbots.io/learn/account-attacks/signs-of-account-takeover.md) - [Bot protection vs fraud prevention tools: which do you need?](https://stopbots.io/learn/ecommerce-fraud/bot-protection-vs-fraud-prevention-tools.md) # Refund fraud and return fraud: how they work > Refund fraud is getting money back for an order without being entitled to it, for example by falsely claiming a parcel never arrived. Return fraud is the part that abuses the returns process: sending back an empty box, a different item or a used item, or returning goods with a fake receipt. Refund-as-a-service groups file these claims for paying customers. Category: Ecommerce and payment fraud. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/refund-and-return-fraud/ A refund costs the merchant twice when it is fraudulent: the money goes back, and the goods do not. Most refund fraud is done by people rather than bots, often by customers with a normal buying history, which makes it harder to catch than payment fraud. ## What are the common types of refund and return fraud? - An item not received claim says a delivered parcel never arrived and asks for a refund or a replacement. - A missing item claim admits the parcel arrived but says part of the order was not in it. - An empty box or wrong item return holds nothing, something of similar weight, or a cheaper or fake version of the product. - Wardrobing means buying clothing, a camera or a tool, using it once for an event or a job, then returning it as unused. - Receipt fraud uses fake, altered or reused receipts to return goods, sometimes stolen goods, for a refund. It affects stores that take online orders back in person. - Double dipping means getting a refund from the merchant and also filing a [chargeback](https://stopbots.io/learn/ecommerce-fraud/chargeback-fraud-vs-friendly-fraud.md) on the same order. Some of these are also friendly fraud when the claim goes to the bank instead of the store. ## How refund-as-a-service groups work These groups advertise in online forums and chat channels. A customer places a normal order in their own name, and once the goods arrive, the group files a false claim on their behalf for a share of the order value. The group's agents use scripted chats and pressure on support staff, or falsify the return shipment record so it looks as if the item was sent back. They look for merchants that refund on a carrier scan before the parcel is inspected, or that let support agents approve refunds without seeing the account's history. From your side it looks like this: - claims from accounts with clean histories, often on high-value items in a few product lines - the same wording, story structure or escalation steps across tickets from unrelated customers - a claim written by someone who knows little about the order, or who asks the agent to act quickly - return tracking that shows a drop-off or route that does not fit the customer's address ## Signals that point to refund fraud - A claim rate per customer, address or device well above your store's baseline. - Not-received claims on deliveries with a GPS scan, photo or signature at the right address. - A return parcel that weighs less than the outbound parcel or the item's known weight. - Several accounts that share a device or one address written different ways ("12 High St" and "12 High Street, Flat A"), all filing claims. The methods are the same as for [multi-accounting](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md). - A refund followed by a chargeback on the same order. This PostgreSQL query finds addresses with repeated not-received or missing-item claims in the last 90 days. It assumes you store a normalised address, in lower case with punctuation and common abbreviations standardised. ```sql SELECT normalized_address, COUNT(DISTINCT customer_id) AS accounts, COUNT(*) AS orders, SUM(CASE WHEN refund_reason IN ('not_received', 'missing_item') THEN 1 ELSE 0 END) AS claims FROM orders WHERE created_at > NOW() - INTERVAL '90 days' GROUP BY normalized_address HAVING SUM(CASE WHEN refund_reason IN ('not_received', 'missing_item') THEN 1 ELSE 0 END) >= 3 ORDER BY claims DESC; ``` Three claims is a starting point. Adjust it to your claim rate and order volume. ## Policies that reduce refund fraud - Pay refunds after the return is received and inspected, at least above an order value you set. - Ask for a signature or a delivery photo on high-value orders. - Weigh parcels when they ship and when returns arrive, and record both. - Use tamper-evident tags on clothing and state that returns need the tag attached. - Refund only to the original payment method. - After a set number of claims in a period, send the customer's next claim to manual review instead of refunding it automatically. Take the number from your own data. - Show support agents the account's claim history and linked accounts, and give them a way to escalate scripted claims without arguing in the chat. - State in your terms that accounts with repeated false claims may be closed, and apply that rule the same way to everyone. Check consumer law in every market you sell to. In the EU, buyers can withdraw from most online purchases within 14 days without giving a reason, as [Your Europe](https://europa.eu/youreurope/citizens/consumers/shopping/returns/index_en.htm) explains, so your returns policy has to work within that right. The same rules make buyers liable for any loss in value caused by handling goods beyond what is needed to examine them, which is the basis for reducing the refund on a worn item. Refunds that turn into bank disputes are covered in [how to prevent chargeback fraud](https://stopbots.io/learn/ecommerce-fraud/how-to-prevent-chargeback-fraud.md). Discount abuse by the same accounts is covered in [promo and coupon abuse](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md). ## Common questions ### Is refund fraud illegal? A deliberately false claim made to get money or goods is generally treated as fraud or theft, though the offence and the penalty depend on the jurisdiction. Buying and returning often within your policy is abuse of the policy, not a crime. This is general information, not legal advice. ### What is the difference between refund abuse and refund fraud? Refund abuse stays within the letter of the policy, such as a customer who orders five sizes and returns four every time. Refund fraud involves a lie: a parcel claimed as missing when it arrived, or a box returned without the item. Abuse is handled with policy limits, fraud with evidence and account action. ### What is a return fraud tag kit? It is a set of tamper-evident tags, often large and placed where they are visible when worn, attached to clothing so it cannot be worn and returned unnoticed. The return policy states that items come back with the tag intact. ## Related - [Chargeback fraud vs friendly fraud](https://stopbots.io/learn/ecommerce-fraud/chargeback-fraud-vs-friendly-fraud.md) - [How to prevent chargeback fraud](https://stopbots.io/learn/ecommerce-fraud/how-to-prevent-chargeback-fraud.md) - [What is multi-accounting?](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) - [What is promo abuse and how do you stop it?](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md) # What is triangulation fraud in ecommerce? > Triangulation fraud involves three parties. A fake storefront or marketplace listing takes a real buyer's order and payment, then buys the same item from a legitimate merchant with a stolen card and ships it to the buyer. The buyer gets the goods, the fraudster keeps the buyer's money, and the legitimate merchant later loses the goods and the sale to a fraud chargeback. Category: Ecommerce and payment fraud. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/triangulation-fraud/ Triangulation fraud is hard to spot because two of the three people involved are honest. The buyer really ordered the goods and really lives at the delivery address. The cardholder really did not make the purchase. Only the middle party, the fake shop, knows the full picture. ## How does triangulation fraud work? 1. The fraudster lists popular products below market price on a marketplace, a social media shop or a copied website. 2. A real buyer orders and pays the fraudster, giving their name and delivery address. 3. The fraudster places the same order with a legitimate merchant, using the buyer's name and address for delivery and a stolen card for payment. 4. The merchant ships to the buyer, who receives the goods and often leaves the fake shop a good review. 5. Weeks later the cardholder sees the charge and disputes it as fraud. The merchant loses the goods, the sale amount and a dispute fee. The fraudster repeats this with many cards and many buyers until the listing is taken down. Along the way they collect buyers' personal details and build a seller reputation on the marketplace. ## Why the orders look legitimate Standard checks pass. The delivery address is a real home where a real person accepts the parcel, with no freight forwarder or reshipping service in between. If you call the recipient, they confirm the order. The basket is realistic, the amount is normal, and the billing details may pass address checks because they match the stolen card. Billing and shipping differ, but so do many honest gift orders. ## What the legitimate merchant sees Single orders look clean. The pattern shows up across orders: - billing and shipping names that differ on every order, with the two people never appearing together again - many cards shipped to many unrelated addresses from a small set of devices, IP addresses or browser fingerprints - customer emails that are new, follow one naming pattern, or clearly belong to someone other than the recipient - the same products in the same quantities, matching what one marketplace listing sells - phone numbers on the order that do not belong to the recipient or the cardholder - fraud disputes that arrive in clusters weeks later, all on orders that were delivered - recipients who contact you about an order they believe came from another shop The device link is usually the clearest signal. One person or a small team runs the ring, so many orders share a device even when the IP address changes on every order. Device and browser identifiers are explained in [device fingerprinting vs browser fingerprinting](https://stopbots.io/learn/detection/device-fingerprinting-vs-browser-fingerprinting.md), and the IP rotation in [how to detect residential proxies](https://stopbots.io/learn/detection/how-to-detect-residential-proxies.md). ## How to find triangulation fraud in your order data This PostgreSQL query lists devices that placed orders with several cards to several shipping addresses in the last 30 days, and counts how often the billing and shipping names differed: ```sql SELECT device_id, COUNT(*) AS orders, COUNT(DISTINCT card_fingerprint) AS cards, COUNT(DISTINCT shipping_address_hash) AS shipping_addresses, SUM(CASE WHEN billing_name <> shipping_name THEN 1 ELSE 0 END) AS name_mismatches FROM orders WHERE created_at > NOW() - INTERVAL '30 days' GROUP BY device_id HAVING COUNT(DISTINCT card_fingerprint) >= 3 AND COUNT(DISTINCT shipping_address_hash) >= 3 ORDER BY cards DESC; ``` Treat a device with three cards and three addresses as a starting point for review, and look for a second signal before you act. Shared family computers and office networks produce some matches. Run the same query by email domain pattern or phone number for rings that use several devices. The account linking methods in [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) apply here too. ## What to do when you find a ring 1. Cancel unshipped orders linked to the same devices, emails and cards, and refund them to the cards used. 2. Refund shipped orders on cards that look stolen before disputes arrive. You lose the goods either way, but you avoid the dispute fee and the dispute counting against your rate. 3. Block the device, email and card fingerprints, since blocking the IP address alone does little. 4. Report the storefront to the marketplace or platform hosting it, and give your processor the order list. 5. Keep the evidence for a police report. The recipients usually paid the fake shop in good faith and are victims as well. If you contact them, say so and point them to the marketplace's dispute process. Triangulation orders end as true fraud disputes, so they are rarely winnable in representment. The prevention steps that apply are in [how to prevent chargeback fraud](https://stopbots.io/learn/ecommerce-fraud/how-to-prevent-chargeback-fraud.md), and the wider set of attacks is in [what is ecommerce fraud](https://stopbots.io/learn/ecommerce-fraud/what-is-ecommerce-fraud.md). ## Common questions ### Is triangulation fraud the same as dropshipping? No. A dropshipper takes the customer's payment and pays the supplier with its own money, so the supplier's sale stands. In triangulation fraud the middle party pays with a stolen card, and the supplier's sale is reversed when the cardholder disputes it. ### Does 3-D Secure stop triangulation fraud? It helps. A fraudster holding only stolen card details often cannot pass an issuer challenge, and an authenticated payment usually moves fraud liability to the issuer. Payments approved without a challenge, or exempted from authentication, can still go through, so order and device linking are still needed. ### Who loses money in triangulation fraud? The legitimate merchant usually loses the most: the goods, the sale amount and the dispute fee. The cardholder gets the money back through the chargeback. The buyer keeps the goods, but has paid a criminal and handed over their name, address and often payment details. ## Related - [What is ecommerce fraud? The main types explained](https://stopbots.io/learn/ecommerce-fraud/what-is-ecommerce-fraud.md) - [How to prevent chargeback fraud](https://stopbots.io/learn/ecommerce-fraud/how-to-prevent-chargeback-fraud.md) - [Device fingerprinting vs browser fingerprinting](https://stopbots.io/learn/detection/device-fingerprinting-vs-browser-fingerprinting.md) - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) # What is promo abuse and how do you stop it? > Promo abuse is using discounts, coupon codes, free shipping or first-order offers in ways the terms forbid, most often by one person opening many accounts to claim a once-per-customer deal again and again. Other forms are leaked codes, bots guessing codes and stacking bugs. The main defence is linking accounts that belong to the same person before the discount applies. Category: Ecommerce and payment fraud. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse/ On a dashboard, promo abuse looks like growth: new accounts, first orders, high redemption of the welcome code. The cost shows up later in margin, in stock sold at a discount to resellers, and in a marketing budget spent on the same few people. ## What are the common types of promo abuse? - One person signs up again and again to claim a first-order discount, free shipping or sign-up credit. This is [multi-accounting](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) applied to promotions. - A code meant for one customer, one email list or one influencer's audience leaks to coupon sites and gets picked up by browser extensions. - Bots try large numbers of codes against the apply-coupon endpoint until some work. OWASP lists this as token cracking (OAT-002) in its [automated threats](https://stopbots.io/learn/bots/owasp-automated-threats.md) catalogue. - A customer stacks two codes that should not combine, or keeps a discount after changing the cart so it no longer qualifies, because of a gap in the discount logic. - Resellers get past a per-customer discount or quantity limit on a popular product by buying through many accounts. ## Account linking is the main defence A once-per-customer rule only works if you can tell when two accounts are the same customer. An email address is easy to change, so link accounts on signals that are harder to change: - the device or browser fingerprint - the payment card fingerprint, a token your processor gives that stays the same for the same card number across customers - the shipping address, normalised so "Flat 2, 10 Main St" and "10 Main Street apt 2" match - the phone number, once verified - the email address, normalised as below - the IP address and subnet, as a weak signal only, since homes, offices and mobile networks share them Gmail ignores dots in the part before the @ ([Google's help page](https://support.google.com/mail/answer/7436150)), and Gmail and many other providers deliver `name+anything@` to `name@`. Normalise before you look for earlier redemptions: ```js function normalizeEmail(email) { const parts = email.trim().toLowerCase().split('@'); if (parts.length !== 2 || !parts[0] || !parts[1]) return null; const [local, domain] = parts; const user = local.split('+')[0]; if (domain === 'gmail.com' || domain === 'googlemail.com') { return `${user.replace(/\./g, '')}@gmail.com`; } return `${user}@${domain}`; } ``` Use the normalised form only as a lookup key. Keep the address the customer typed for sending mail. A starting decision rule: when a new account shares a card fingerprint with an account that already used the offer, do not apply the discount. When it shares only a device or an address, apply the offer once per household, or hold the order for review if the value is high. Families share computers and addresses, so do not ban on those signals alone. The methods are covered in more depth in [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md). ## Stop bots from guessing codes Use long random codes for single-use offers, never sequential ones. Return the same error message for invalid, expired and already-used codes, so a script cannot tell which codes once existed. Rate limit the apply-coupon endpoint per session and per IP address, and run bot detection on the cart and checkout pages, since a script trying codes looks very different from a shopper. ## Design offers that are harder to abuse - Bind single-use codes to the account or email address they were sent to. - Check the welcome offer at checkout, on the payment card and device, not at signup. - Set a minimum order value, and a cap per address or household. - Pay cashback and store credit after the return window closes, so a refunded order earns nothing. - Give every code an expiry date, and end influencer codes when the campaign ends. - Watch redemptions per code each day. Fake signups that feed promo abuse are covered in [how to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md), and the same pattern in referral programmes in [referral fraud](https://stopbots.io/learn/ecommerce-fraud/referral-fraud.md). Kairal's [coupon fraud guide](https://www.kairal.io/blog/coupon-fraud-prevention/) covers how to define offer rules. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Fingerprint](https://fingerprint.com/) identifies returning devices so you can link accounts, and its [open-source FingerprintJS library](https://github.com/fingerprintjs/fingerprintjs) is a free starting point for small shops. - [SEON](https://seon.io/) scores signups and orders using email, phone, IP and device data, which suits teams that want rules and manual review in one place. - [Kairal](https://www.kairal.io/use-cases/coupon-promo-referral-abuse/) links devices, networks and behaviour across signup and checkout to flag multi-accounting and promo abuse, with protection set per endpoint. - [Verisoul](https://www.verisoul.ai/) focuses on fake and duplicate accounts, and fits businesses where sign-up offers are the main target. ## Common questions ### Is promo abuse illegal? Using a code more often than the terms allow is usually a breach of contract, handled by cancelling orders or closing accounts. It can become fraud where it involves false identities, stolen payment details or deceiving staff, and the answer depends on the jurisdiction. This is general information, not legal advice. ### How do I find out if a coupon code has leaked? Compare daily redemptions of each code with the size of the audience you sent it to, and check the referrer on the sessions that use it. A code redeemed far more often than its audience could explain, or used by sessions arriving from coupon sites and browser extensions, has leaked. ### Should I block disposable email addresses to stop promo abuse? Blocking them helps a little, but abusers also use plus aliases, dots in Gmail addresses and cheap real mailboxes. Treat a disposable domain as one risk signal and decide on the discount using the device, card and address links. ## Related - [What is multi-accounting?](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) - [Referral fraud: how self-referral rings work](https://stopbots.io/learn/ecommerce-fraud/referral-fraud.md) - [How to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) - [Bonus abuse: multi-accounting in betting and gaming](https://stopbots.io/learn/fake-accounts/bonus-abuse-in-betting-and-gaming.md) # Referral fraud: how self-referral rings work > Referral fraud is claiming referral rewards for sign-ups that are not new, independent customers. The common form is self-referral, where one person invites accounts they created themselves. Rings scale it up by trading codes or running account farms. The defences are linking referrer and referee by device, payment card and address, and paying rewards only after a real purchase that was not refunded. Category: Ecommerce and payment fraud. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/referral-fraud/ A referral programme pays for introductions, so it attracts people who manufacture introductions. Every reward paid for a fake referee is a marketing cost with no customer behind it. Programmes that pay in cash or gift cards draw the most organised groups, because those rewards are easy to cash out. ## How do self-referral rings work? Referral fraud is a form of [multi-accounting](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md), and it scales in stages: 1. A single self-referrer opens a second account with another email address and signs it up with their own code. Often the same device, card and address are used for both. 2. Code-swap groups meet in forums and chat channels. Members sign up through each other's codes, complete the smallest qualifying action, and move on. Each account belongs to a real person, but none of them is a customer you wanted. 3. Account farms create referees at scale, using scripts or paid workers, rented phone numbers for verification, [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) and [antidetect browsers](https://stopbots.io/learn/fake-accounts/what-is-an-antidetect-browser.md) so each account looks like a different person. 4. Paid sign-ups split the reward with strangers who join through a code and then leave. Rewards are cashed out as store credit spent on resellable goods, gift cards, or the accounts themselves, which are sold on once they hold a balance. ## What a referral ring looks like in your data - Referrer and referee share a device, a payment card fingerprint, a shipping address or a phone number. - One referrer has many referees who all complete exactly the qualifying action, such as one order just above the minimum, and never come back. - Referees sign up in bursts minutes apart, with near-identical times from signup to qualifying order. - IP addresses change on every signup while the device or browser fingerprint repeats, a sign of proxies. - Email addresses follow one pattern, such as a name plus a number, or use the same few domains. - Phone numbers belong to virtual number services rather than mobile carriers. - Rewards are spent quickly, on gift cards or the products resellers want. This SQL query counts, for each referrer, how many of their referees were seen on one of the referrer's own devices. It assumes an `account_devices` table that records which device IDs each account has used. ```sql WITH shared AS ( SELECT DISTINCT ref.referrer_id, ref.referee_id FROM referrals ref JOIN account_devices a ON a.account_id = ref.referrer_id JOIN account_devices b ON b.account_id = ref.referee_id AND b.device_id = a.device_id ) SELECT ref.referrer_id, COUNT(DISTINCT ref.referee_id) AS referees, COUNT(DISTINCT shared.referee_id) AS referees_on_same_device FROM referrals ref LEFT JOIN shared ON shared.referrer_id = ref.referrer_id AND shared.referee_id = ref.referee_id GROUP BY ref.referrer_id HAVING COUNT(DISTINCT ref.referee_id) >= 3 ORDER BY referees_on_same_device DESC; ``` Run the same query with card fingerprints and normalised addresses in place of device IDs. A farm that changes devices often still reuses cards or addresses. The wider set of linking methods is in [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md). ## Reward rules that make referral fraud unprofitable - Pay the reward on the referee's first paid order, after the return window closes. - Pay in store credit for future orders rather than cash or gift cards. - Cap rewards per referrer per month and send anything above the cap to review. - Require the referee to pay with a card not seen on any other account. - Claw back the reward when the referee's order is refunded or charged back. - Write each rule into the programme terms so you can act on it. A starting decision rule for linked accounts: a shared card fingerprint means no reward, since a shared card usually means one payer. A shared device or address on its own means hold for review, because partners, flatmates and families refer each other honestly. The same approach works for [promo and coupon abuse](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md), which often comes from the same accounts. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Kairal](https://www.kairal.io/use-cases/account-farming-multi-accounting/) connects device, network and behaviour signals across signup and checkout to link accounts run by the same person or farm, with a preview mode before enforcement. - [Fingerprint](https://fingerprint.com/) gives a device identifier you can store against each account and compare between referrer and referee; the open-source library is enough to start on a small programme. - [SEON](https://seon.io/) checks email, phone and IP data at signup, which helps spot farmed referees with new mailboxes and virtual numbers. - [Verisoul](https://www.verisoul.ai/) detects fake and duplicate accounts at signup, suited to programmes where sign-up rewards are the main target. ## Common questions ### Is self-referral fraud illegal? Self-referral usually breaks the programme terms, so the normal response is to cancel the rewards and close the accounts. Where false identities or stolen payment details are used to collect rewards, it can fall under fraud law, depending on the jurisdiction. This is general information, not legal advice. ### Is it fraud if customers post their referral codes publicly? Not by default. Posting a code on a forum or coupon site brings in real new customers, which may be what you want. If you only want personal invitations, say so in the terms and cap rewards per referrer, since public posting tends to concentrate rewards on a few accounts. ### How do I stop referral fraud without hurting real referrers? Hold rewards until the referee's first paid order passes the return window, and review instead of rejecting when the only link is a shared address or network. A delay costs real referrers little, while a farm that depends on fast cash-outs loses its reason to farm. ## Related - [What is promo abuse and how do you stop it?](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md) - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) - [How to prevent free trial abuse](https://stopbots.io/learn/fake-accounts/how-to-prevent-free-trial-abuse.md) - [SMS pumping fraud: when bots attack your OTP endpoint](https://stopbots.io/learn/account-attacks/sms-pumping-fraud.md) # Bot protection vs fraud prevention tools: which do you need? > Bot protection judges the request and the session before an action such as login, signup or checkout. Payment fraud tools score the transaction itself with card, order and customer data. Chargeback guarantee vendors approve orders and take on the fraud liability. A CAPTCHA tests one moment only. Automated attacks need the first layer, and stolen-card purchases made by people need the second. Category: Ecommerce and payment fraud. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ecommerce-fraud/bot-protection-vs-fraud-prevention-tools/ Bot protection and fraud prevention tools look at different moments and different data, so they catch different attacks. Buying the wrong one leaves the real problem untouched, and two tools that never share data each miss what the other saw. ## Where each tool sits in the customer journey | Tool | When it acts | Data it uses | What it decides | What it misses | |---|---|---|---|---| | Bot protection | On every request and session, before login, signup, search or checkout returns a result | TLS and HTTP fingerprints, IP reputation and ASN, browser and device signals, behaviour | Allow, challenge, block or rate limit | A real person typing a stolen card by hand | | Payment fraud tool | When the customer submits payment | Card BIN, CVV and address check results, amount, billing and shipping, order and account history, data pooled across merchants | Approve, review, decline or ask for 3-D Secure | Attacks that never reach payment, such as credential stuffing and scraping | | Chargeback guarantee | On each order, after screening | The same data as a payment fraud tool | Approve or decline, then reimburse covered fraud chargebacks on approved orders | Abuse outside the contract, such as promo abuse or refund claims | | CAPTCHA | On one form submission | The answer to a puzzle, or a risk score for that moment | Pass or fail | Everything before and after that moment, and bots that use solving services | A few terms in the table: TLS fingerprints such as JA4 describe how a client sets up an encrypted connection, which differs between real browsers and scripts. An ASN (autonomous system number) identifies the network an IP address belongs to, such as a hosting provider or a home broadband operator. A BIN is the first six to eight digits of a card number, which identify the issuer. The timing matters for cost. Bot protection acts before your application or your processor spends anything, while a payment fraud tool only runs once a visitor reaches the pay button, and a guarantee vendor changes who pays when its decision is wrong. A CAPTCHA checks one form and knows nothing about the session behind it, as covered in [what CAPTCHAs still stop](https://stopbots.io/learn/captcha/do-captchas-stop-bots.md). ## Which problem needs which tool - Card testing needs bot protection on the payment and add-card endpoints, plus velocity rules at the processor. A blocked request never becomes an authorisation, so it creates no authorisation fee and no decline. The steps are in [how to stop card testing](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md). - Credential stuffing and account takeover need bot protection at login, plus login risk checks and multi-factor authentication. - Stolen-card purchases placed by people need payment fraud scoring and 3-D Secure, and a guarantee vendor if you want to move the liability. - Friendly fraud needs evidence, clear billing descriptors and pre-dispute alerts, as in [how to prevent chargeback fraud](https://stopbots.io/learn/ecommerce-fraud/how-to-prevent-chargeback-fraud.md). Some guarantee contracts cover certain non-fraud disputes, so read the terms. - Promo abuse, referral fraud and multi-accounting need device and account linking, which comes from bot protection or device intelligence tools, plus order rules. - Scalping and inventory hoarding need bot protection, often with a queue for product drops. - Refund fraud needs order history, carrier data and support processes. Neither layer covers it fully. ## How bot protection and fraud tools work together Run bot protection first, so automated traffic is dropped before it costs authorisation fees or per-transaction screening fees. Pass its verdict to the fraud tool as an extra input. On Stripe, for example, you can attach a session risk value as payment metadata and write a Radar rule on it: ```txt Review if ::bot_risk:: = 'high' ``` Feed outcomes back the other way. Chargebacks and confirmed fraud should label the sessions and devices in the bot protection tool, so the next attack from the same device is caught earlier. Use a CAPTCHA or invisible challenge as the response for uncertain sessions, never as the only check. Track mistakes in both layers: approval rate and manual review rate on the fraud side, challenge rate and challenge pass rate on the bot side, split by country and device type. A web application firewall sits in front of both and handles a different job, explained in [WAF vs bot management](https://stopbots.io/learn/implementation/waf-vs-bot-management.md). ## Questions to ask vendors - Where does it integrate: CDN or edge, reverse proxy, server API, browser script or mobile SDK? - Does it act before the request reaches your application, or score afterwards? - Is there a preview or monitor-only mode to see decisions before blocking? - What happens when it times out: does traffic pass (fail open) or stop (fail closed)? - Is it priced per request, per session, per transaction or as a share of order value? - Who carries the chargeback liability, and for which dispute types? - Which personal data leaves your systems, and where is it processed? [Bot protection and GDPR](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) covers the questions for European traffic. A longer checklist is in [how to choose bot protection](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) scores requests at the edge for sites that already run through Cloudflare. - [Stripe Radar](https://stripe.com/radar) screens Stripe payments with machine learning and custom rules, and accepts your own metadata as rule inputs. - [Signifyd](https://www.signifyd.com/) approves or declines orders and covers fraud chargebacks on the orders it approves, for merchants who want to hand off liability. - [Kairal](https://www.kairal.io/product/bot-protection/) combines bot protection and fraud signals from device, network and behaviour across first visit, login, signup and checkout, and works alongside an existing CDN or through an API. - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) is a free challenge for single forms, enough for a small site that only needs to protect signup or contact pages. ## Common questions ### Do I need both bot protection and a fraud prevention tool? Only if you have both kinds of problem. A small shop with few disputes but regular card testing may need bot protection and processor rules and nothing more. A store with stolen-card orders placed by hand needs payment fraud scoring first. A store with both problems needs both layers, connected. ### Is a WAF enough to stop ecommerce fraud? No. The standard rules of a web application firewall block malicious request patterns such as injection attacks and known bad IP addresses. They do not judge whether a well-formed checkout request comes from a script, and the firewall never sees payment results. ### What do ecommerce fraud prevention tools cost? Pricing models differ by layer. Bot protection is often priced by request or session volume, payment fraud tools by screened transaction, and chargeback guarantee vendors by a share of approved order value. Ask each vendor for a quote based on your traffic and order volumes. ## Related - [How to choose bot protection software](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md) - [WAF vs bot management: what is the difference?](https://stopbots.io/learn/implementation/waf-vs-bot-management.md) - [What is bot management?](https://stopbots.io/learn/bots/what-is-bot-management.md) - [How to stop card testing attacks](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md) # What are scalper bots? > Scalper bots are programs that buy limited goods or services faster than people can, so the operator can resell them at a higher price. They target sneakers, event tickets, consoles, graphics cards, collectibles and booking slots. They watch for stock, check out through the site's own API in seconds and spread purchases across many accounts, cards and IP addresses. Category: Scalper and checkout bots. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/what-are-scalper-bots/ OWASP lists scalping as automated threat OAT-005 in its [Automated Threats to Web Applications](https://owasp.org/www-project-automated-threats-to-web-applications/) project and defines it as obtaining "limited-availability and/or preferred goods/services by unfair methods". The entry collects the names the same activity goes by in different markets, among them sneaker bot, Grinch bot, ticket touting, slot-booking bot and vaccine bot. The tools differ from one market to the next, but the goal and the traces they leave are close enough that the same defences apply. ## What do scalper bots buy? Anything with a fixed supply, a known release time and a resale price above the retail price. Common targets: - Limited sneakers and streetwear drops - Concert, sports and theatre tickets - Game consoles, graphics cards and other hardware in short supply - Trading cards, collectible toys and limited editions - Appointment slots such as driving tests, visa interviews and restaurant tables The last group surprises people because the slot is often free or cheap. The bot books it and the operator sells the booking, then swaps the buyer's name in. [Appointment booking bots](https://stopbots.io/learn/scalping/appointment-booking-bots.md) covers how public services and restaurants defend against this. ## How does a scalper bot work? Most scalper setups are built from the same parts: - A monitor that polls product pages, APIs or sitemaps and fires when stock or an on-sale time changes. - A pool of accounts, payment cards and shipping addresses, often created in bulk in the weeks before a release. - Tasks that run the purchase through the site's own cart and checkout endpoints, usually without loading the pages a person would see. - Proxies that spread requests over many IP addresses, so limits per IP address never trigger. - A way past CAPTCHAs, through solving services or through tokens solved shortly before the sale. The two market-specific guides go through each part and what it leaves in your logs: [how sneaker bots work](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md) and [how ticket bots work](https://stopbots.io/learn/scalping/how-ticket-bots-work.md). Some operators also hold stock without buying it. They fill carts or reserve seats so other buyers see "sold out", then release the stock to their own accounts or let it expire. OWASP files this separately as Denial of Inventory, covered in [inventory hoarding bots](https://stopbots.io/learn/scalping/inventory-hoarding-bots.md). ## Why do scalper bots hurt the seller? The seller sells out either way, so the damage is easy to miss in the sales report. It shows up in other places: - Real customers cannot buy, blame the brand and fill support queues and social channels. - Bots often pay with stolen cards or with many virtual cards, and the chargebacks arrive weeks after the launch. - Monitors and checkout tasks send far more requests than real buyers, which can slow or break the site at the moment of release. - Sell-out speed and conversion rates look excellent, but they partly measure bots, so demand planning built on them is off. - The resale price becomes the market price, and the brand no longer decides who gets the product or what they pay. ## How can you tell scalpers bought your release? The order data shows it if you look. Signs to check: - Orders from sessions that never loaded the product page or any images, scripts or stylesheets. - A wave of new accounts created in the days before the release, with similar email patterns. - Several accounts shipping to the same address, written in slightly different ways ("Apt 4", "Apt. #4", "4"). - Many different cards that share the same BIN, the first six to eight digits that identify the card issuer. - Resale listings for your product before your first parcels have been delivered. A quick first pass groups the orders for one release by a normalised shipping address. The table and column names below are illustrative, written for PostgreSQL: ```sql SELECT lower(regexp_replace(concat(ship_line1, ship_postcode), '[^a-zA-Z0-9]', '', 'g')) AS address_key, count(*) AS orders, count(DISTINCT customer_id) AS accounts FROM orders WHERE sku = 'RELEASE-SKU' GROUP BY 1 HAVING count(DISTINCT customer_id) > 1 ORDER BY orders DESC; ``` Stripping spaces and punctuation makes "12 Main St, Apt 4" and "12 main st apt4" match. It will not catch every variation, so treat the output as a list to review by hand. ## Are scalper bots legal? It depends on what is bought and where. Event tickets have specific laws in the US, the UK, the EU and some other places, which [are ticket bots illegal](https://stopbots.io/learn/scalping/are-ticket-bots-illegal.md) explains. For sneakers, consoles and most other retail goods, using a bot is generally not a crime, and stores enforce their terms of sale instead. ## What stops scalper bots? No single control does. A first-come sale needs bot detection on the cart and checkout endpoints, including the API that apps and bots call directly, and purchase limits that count linked identities, meaning the same person behind several accounts, cards or addresses. Queues and raffles change the race, but each brings its own attacks. The full launch-day checklist is in [how to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md). ## Common questions ### What is the impact of sneaker bots on the company and customer? Customers lose the chance to buy at the retail price and often blame the brand for it. The company books the same revenue but pays for it in support load, chargebacks from stolen cards, traffic spikes at launch and a resale market that sets the real price of its product. ### How do bots affect ticket sales? Bots take tickets in the first minutes of an on-sale and can hold seats they never pay for, so fans see an event sell out and then find the same seats on resale sites at a markup. The promoter loses control over who attends and what they pay. ### What is a Grinch bot? A Grinch bot is a scalper bot aimed at holiday gifts such as toys and consoles. The name also appears in US bills called the Stopping Grinch Bots Act, which would extend the ticket bot rules of the BOTS Act to online retail. ## Related - [How do sneaker bots work?](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md) - [How do ticket bots work?](https://stopbots.io/learn/scalping/how-ticket-bots-work.md) - [How to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) - [OWASP automated threats: the 21 bot attacks in plain English](https://stopbots.io/learn/bots/owasp-automated-threats.md) # How do sneaker bots work? > A sneaker bot is a set of tools. Monitors poll the store for new products and stock. Generated accounts, addresses and cards give each purchase a different identity. Checkout tasks call the cart and payment endpoints directly, faster than a page loads, through proxies on many IP addresses, with CAPTCHAs passed by solving services. Cook groups share release details and early links. Category: Scalper and checkout bots. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/how-sneaker-bots-work/ The tools behind a sneaker bot are often bought or rented from different sellers and combined by the operator. Each one talks to your store in a way a shopper does not, and each leaves a trace in access logs, signup records or order data. Knowing the parts tells you where to look. ## What does a sneaker bot do on release day? A monitor notices that a product or size has gone live. It triggers tasks. A task is one checkout attempt with one profile (an account, a shipping address and a card) and usually one proxy IP address. Each task adds the item to a cart, submits shipping and payment, and reports success or failure. Operators run many tasks at once, so one person can make a large share of the checkout attempts in the first minute. Successful orders are resold. ## Monitors that poll for stock Monitors request the same few URLs again and again: product JSON, search results, sitemaps, collection pages and stock APIs. On Shopify storefronts the public product JSON (`/products.json` and `/products/.json`) is a common target. Some monitors also watch the image CDN for new product photos or request guessed URLs built from known product IDs. In the logs you will see the same path at fixed intervals, often with a random query string that skips the cache, no cookies, no asset requests and no referrer. The requests come from many IP addresses that each send only a few: ```txt 203.0.113.14 GET /products/new-runner.json?c=91827 200 cookie=- referer=- 198.51.100.7 GET /products/new-runner.json?c=10294 200 cookie=- referer=- 192.0.2.55 GET /products/new-runner.json?c=55310 200 cookie=- referer=- ``` Two cheap fixes: drop unknown query strings from the cache key for product JSON so the cache absorbs the polling, and make an unreleased product return the same 404 as a product that does not exist. ## Account generators and checkout profiles A limit of one pair per account means the operator needs many accounts. Generators create them in bulk, using a catch-all email domain (every address at the domain lands in one inbox), dot and plus variations of one Gmail mailbox, and rented phone numbers for SMS checks. Shipping addresses get "jigged": small edits such as extra characters or a different apartment notation, so duplicate checks miss them. Cards are often virtual cards, many numbers drawn from one funding account. The traces are signup bursts from an email domain you have never seen, accounts that verify and then sit idle until release day, addresses that match once you strip punctuation, and many cards that share a BIN and expiry date. Gmail ignores dots and anything after a plus sign, so this PostgreSQL query (illustrative schema) collapses those variants into one mailbox: ```sql SELECT CASE WHEN split_part(lower(email), '@', 2) IN ('gmail.com', 'googlemail.com') THEN replace(split_part(split_part(lower(email), '@', 1), '+', 1), '.', '') || '@gmail.com' ELSE lower(email) END AS mailbox, count(*) AS accounts FROM customers GROUP BY 1 HAVING count(*) > 1 ORDER BY accounts DESC; ``` The wider method is in [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md). ## Checkout tasks that skip the page The fastest bots never render your pages. They send the add-to-cart, shipping and payment calls straight to the endpoints your front-end JavaScript would call. Others drive a real browser through an automation framework, which is slower but looks closer to a person. Compare a shopper with a task in the same access log: ```txt # shopper 10:00:02.114 GET /products/new-runner 200 10:00:02.390 GET /assets/app.js 200 10:00:02.512 GET /images/new-runner-1.jpg 200 10:00:09.870 POST /cart/add 200 10:00:11.025 GET /checkout 200 # checkout task 10:00:00.402 POST /cart/add 200 10:00:00.618 POST /checkout/shipping 200 10:00:00.903 POST /checkout/payment 200 ``` Look for POST requests with no page view in the same session, gaps between steps shorter than anyone can type, and a TLS fingerprint that does not match the browser named in the User-Agent. [TLS fingerprinting with JA3 and JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) explains that last check. Bot detection has to run on these POST endpoints. A check that only runs when the product page loads never sees a task. ## Proxies: one IP address per task Limits per IP address do little when every task uses a different address. Operators rent residential proxies, which route traffic through home internet connections, and ISP proxies, which are addresses registered to consumer ISPs but hosted in data centres. In the logs this looks like many IP addresses with a handful of requests each during the release window, the same device or TLS fingerprint across many of them, and IP locations far from the shipping address. [What are residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) covers how to spot them. ## CAPTCHA solving Challenges at cart or checkout are passed in two ways. Solving services return a valid token for a fee, with people or software doing the solving. Or tokens are solved in a normal browser shortly before the release and attached to bot requests. Google's [reCAPTCHA documentation](https://developers.google.com/recaptcha/docs/verify) says each token is valid for two minutes and can be verified once, so harvested tokens are used fast. Traces include tokens from sessions that never loaded the challenge script and near-identical solve times across sessions. Always verify tokens on the server and check the returned hostname and timestamp. [How CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md) goes further. ## Cook groups and early links Cook groups are paid chat communities where resellers share release dates, product IDs, early links and notes on which stores are easy targets. An early link is a direct URL to a product or checkout step that works before the product is listed on the site. The traces are requests for a product URL that nothing links to yet, referrers from chat apps, a spike on one product ID minutes after a leak, and purchase attempts on staging or preview hosts. Create the product only at release time, use handles that cannot be guessed and close preview domains to the public. Kairal's guide to [sneaker bot prevention](https://www.kairal.io/blog/sneaker-bot-prevention/) and the [launch-day checklist](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) turn these traces into controls. ## Common questions ### What do sneaker bots do? They wait for a release, then add the product to a cart and pay in well under a second, repeated across many accounts, cards and IP addresses. The operator ends up with many pairs from a sale meant to allow one per customer. ### Do sneaker bots still work? They still work against stores that only check the product page or limit purchases per account. They get much less from stores that run bot detection on every cart and checkout request, link accounts to the same person and cancel duplicate orders after the sale. ### Why do sneaker bots use virtual cards? Each virtual number gets its own card fingerprint, so a limit per card treats every number as a new buyer. Link on the billing name and address, the BIN and the device as well, since those tend to stay the same across the numbers. ## Related - [What are scalper bots?](https://stopbots.io/learn/scalping/what-are-scalper-bots.md) - [How to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) - [Do raffles and draws stop bots?](https://stopbots.io/learn/scalping/do-raffles-stop-bots.md) - [What are residential proxies and why do bots use them?](https://stopbots.io/learn/bots/what-are-residential-proxies.md) # Are sneaker bots illegal? > In most places, using a sneaker bot to buy shoes or other retail goods is not a crime. Ticket bot laws such as the US BOTS Act cover event tickets only. Bots usually break the store's terms of sale, so stores cancel orders and close accounts. Other laws can apply when a bot operation uses stolen cards, other people's accounts or fake identities. Category: Scalper and checkout bots. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/are-sneaker-bots-illegal/ Sneakers are one of the most common targets for [scalper bots](https://stopbots.io/learn/scalping/what-are-scalper-bots.md), and the legal questions they raise sit in three places: laws written for event tickets, general laws on fraud and computer misuse, and the store's own contract with the buyer. What follows covers the US, the UK and the EU in general terms. It is not legal advice, and the answer depends on the country and the facts. ## Is there a law against sneaker bots? In the US, the [BOTS Act of 2016](https://www.congress.gov/bill/114th-congress/senate-bill/3183) applies to tickets for events in venues with a capacity of more than 200. It does not cover shoes, consoles or other goods. Bills called the Stopping Grinch Bots Act would extend the same approach to online retail, making it unlawful to get around the measures stores use to limit purchases. Versions have been introduced in several sessions of Congress, including [S. 3516](https://www.govinfo.gov/app/details/BILLS-119s3516is) in December 2025. Check its status on Congress.gov before you rely on it. In the UK, the offence created in 2018 under the Digital Economy Act 2017 covers using software to buy event tickets above a sales limit. There is no matching offence for retail goods. In the EU, a 2019 change to the Unfair Commercial Practices Directive bans traders from reselling event tickets bought with bots that get around purchase limits. It does not mention goods. [Are ticket bots illegal](https://stopbots.io/learn/scalping/are-ticket-bots-illegal.md) covers the ticket laws in more detail. ## When can a sneaker bot operation break the law? The bot itself may be legal while parts of the operation around it are not. Common cases: - Paying with stolen card data, or with cards opened in other people's names, is fraud. - Logging in to other people's accounts, for example to use their saved cards or raffle wins, can be an offence under computer misuse laws such as the UK [Computer Misuse Act 1990](https://www.legislation.gov.uk/ukpga/1990/18/contents) or the US [Computer Fraud and Abuse Act](https://www.law.cornell.edu/uscode/text/18/1030). - Opening accounts with stolen identities, or with real people's details without their consent, raises fraud and data protection issues. - Running a resale business brings tax and consumer law duties like any other trade. Whether getting around a store's technical limits counts as unauthorised access on its own is unsettled. It depends on the country, the facts and how the measure was bypassed. Using many accounts raises similar questions, covered in [is multi-accounting illegal](https://stopbots.io/learn/fake-accounts/is-multi-accounting-illegal.md). ## What can a store do under its terms of sale? The store's main tool is contract. Many retailers ban automated purchasing in their terms and reserve the right to cancel orders. A useful clause covers four things: a ban on automated access and ordering, purchase limits that apply per person across all of their accounts, the right to cancel and refund orders that break the rules, and the right to close the accounts involved. A plain example, to be adapted by your own lawyer for the countries you sell to: ```txt You may not use bots, scripts or other automated means to access the store, add items to a cart or place orders. Purchase limits apply per person, household, shipping address and payment method, across all accounts. We may cancel and refund any order that we reasonably believe breaks these rules, and close the accounts involved. ``` Then apply it the same way every time: - Review orders before they ship and cancel linked ones in one batch. - Refund in full and quickly, so the cancellation is clean. - Keep the evidence for each decision: the accounts, devices, addresses and cards that link the orders. - Publish the rules before the release. [How sneaker bots work](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md) lists the traces that make that evidence, and the [launch-day checklist](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) covers the post-order review. ## Is reselling sneakers legal? Reselling goods you bought lawfully is generally legal, and resale platforms operate openly in most countries. The legal questions above concern how the pairs were obtained. A brand can still refuse to sell to known resellers through its own channels, within the limits of competition and consumer law. ## Common questions ### Are shoe bots legal? Shoe bots and sneaker bots are two names for the same kind of software. Running one is generally legal, yet a store can still refuse the order, close the account and keep the evidence, because the buyer agreed to its terms when checking out. ### Can a store cancel an order placed with a bot? Usually, when the store's terms allow it and the buyer gets a full refund. Where an order confirmation already forms a contract, local consumer law decides when cancelling is allowed, so the wording of the confirmation email and the timing of the cancellation both matter. ### Is it legal to sell sneaker bot software? Selling bot software for retail purchases is generally not banned in the US, the UK or the EU. Ticket rules can differ: Ontario, for example, bans the sale of ticket-buying software as well as its use. ## Related - [Are ticket bots illegal? The BOTS Act and other laws](https://stopbots.io/learn/scalping/are-ticket-bots-illegal.md) - [How do sneaker bots work?](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md) - [Is multi-accounting illegal?](https://stopbots.io/learn/fake-accounts/is-multi-accounting-illegal.md) - [How to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) # How do ticket bots work? > Ticket bots watch event pages and APIs for on-sale times and newly released seats, then use many fan accounts, devices and proxy IP addresses to take many places in the queue. The sessions that reach the front search the seat map, hold the best seats and pay through the checkout API in seconds. The tickets are then listed or transferred to resale buyers. Category: Scalper and checkout bots. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/how-ticket-bots-work/ A ticket bot operation targets two moments: the on-sale, when demand peaks, and the later releases, when the platform puts held or returned seats back on sale. The tools are close to the ones used against sneaker stores, described in [how sneaker bots work](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md). Two things differ for a ticketing platform. Big on-sales usually run behind a queue, so bots compete for queue places. And seats can be held before payment, so bots can take inventory without buying it. ## Monitoring on-sale times and ticket drops Monitors poll event pages, search endpoints and seat availability APIs. They look for new events, changed on-sale times, presale announcements, returned seats and price changes. Seats released at an odd hour are easy pickings for a bot, because few people are watching. In the logs, monitors show up as steady polling of one event's availability endpoint between sales, from many IP addresses, with no cookies and no asset loads. They also request event IDs that are not public yet. Rate limit the availability endpoint per session, serve it from a short-lived cache, and alert on any request for an unpublished event ID. ## Fan accounts, presale registrations and codes Ticket limits are usually set per account, and presales need a registration or a code. Operators build pools of accounts well before the sale, sometimes aged for months, register them all for presales and share or buy codes. Phone checks are met with rented numbers. The traces are registration bursts from accounts with no purchase history, many accounts that share devices, cards or phone number ranges, and one presale code redeemed by many accounts. [How to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) covers the signup side. ## Taking many places in the queue A queue gives each visitor a place. A bot operator opens many sessions, each with its own browser profile, cookies and proxy IP address, so it holds many places at once. Sessions that land near the front go on to buy. The rest are dropped. Signs of this in your queue data: - Many queue entries that share one device fingerprint or one TLS fingerprint. - Entries from hosting providers' networks, or from residential IP ranges far from the event. - A queue pass issued to one session and used from another session or IP address. - Seat or checkout requests that arrive with no valid queue pass at all. The last one means the queue is only checked on the page, and the API behind it is open. [Do virtual waiting rooms stop bots](https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots.md) explains how to close that gap. ## Searching the seat map and holding seats Once through the queue, a bot queries the seat map or availability API to find the best seats for its resale plan, then requests holds. A hold reserves seats for a few minutes while the buyer pays. Bots hold more seats than they plan to buy, hold them again as soon as they expire, or release them at a chosen moment to their own accounts. OWASP calls this Denial of Inventory. [Inventory hoarding bots](https://stopbots.io/learn/scalping/inventory-hoarding-bots.md) covers the defences. The traces are sessions whose holds expire unpaid far more often than others, the same seats held again and again by linked sessions, and seat map requests at a rate no person clicking a map can reach. ## Checkout through the API The payment step is sent straight to the checkout API, with card details stored in the bot's profile, seconds after the hold. Payment pages, scripts and fraud checks that only run in the browser never load. Look for hold-to-payment times far below what a person needs to type card details, payment calls with no page view in the session, and many cards with the same BIN (the first digits that identify the issuer) spread over linked accounts. ## Proxies and CAPTCHA solving Requests are spread over residential and ISP proxies so limits per IP address never trigger. [What are residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) explains how these networks work and how to spot them. CAPTCHAs in the queue or at checkout are passed with solving services or with tokens solved in a browser just before use. A challenge on its own adds a cost per attempt that a funded operator will pay, so pair it with signals from the device and the network. ## Where the tickets go Bought tickets are listed on resale marketplaces, sometimes before the operator holds them, and delivered by the platform's own transfer feature or by handing over the account. In your data that looks like many transfers out of one account to unrelated recipients shortly after purchase, one account that receives tickets from many senders, and mobile tickets opened on new devices close to the event. Transfer data is a strong signal for review after a sale, because it links accounts that looked separate at checkout. Delaying transfers until close to the event, capping them per account and naming tickets for high-demand events all reduce the payoff. Reselling tickets bought by getting around purchase limits is also unlawful in several countries, as covered in [are ticket bots illegal](https://stopbots.io/learn/scalping/are-ticket-bots-illegal.md). Kairal's guide to [ticket scalping bot prevention](https://www.kairal.io/blog/ticket-scalping-bot-prevention/) turns these traces into a defence plan. ## Common questions ### How many tickets are bought by bots? There is no reliable public figure that holds across events, and numbers quoted online rarely show their method. A platform can estimate its own share after each sale by linking orders through shared accounts, devices, cards and transfer recipients. ### Are bots buying concert tickets? Yes. High-demand concerts are a main target because the on-sale time is announced in advance and the resale markup is large. Bots also return days or weeks later, whenever the platform adds seats it had kept back. ### What is seat spinning? Seat spinning means holding seats in a cart again and again without paying, so they look sold to everyone else. OWASP lists it as another name for Denial of Inventory, one of its automated threats. ## Related - [How do sneaker bots work?](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md) - [Do virtual waiting rooms and queues stop bots?](https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots.md) - [Are ticket bots illegal? The BOTS Act and other laws](https://stopbots.io/learn/scalping/are-ticket-bots-illegal.md) - [Inventory hoarding: bots that hold stock in carts](https://stopbots.io/learn/scalping/inventory-hoarding-bots.md) # Are ticket bots illegal? The BOTS Act and other laws > In several places, yes. The US BOTS Act of 2016 makes it unlawful to get around a ticket seller's controls on purchase limits for events with a capacity above 200, and to sell tickets obtained that way. The UK made using software to buy tickets above a limit for profit a criminal offence in 2018. EU consumer law bans traders from reselling tickets bought with bots. Category: Scalper and checkout bots. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/are-ticket-bots-illegal/ Ticket bots are one of the few kinds of bot that lawmakers have written specific rules for. The US, the UK, the EU and some other places ban using bots to get around ticket purchase limits, reselling tickets bought that way, or both. The details differ, and what applies depends on where the event, the seller and the buyer are. What follows is a general summary of the main laws. It is not legal advice. ## Are ticket bots illegal in the US? The Better Online Ticket Sales Act of 2016, known as the [BOTS Act](https://www.congress.gov/bill/114th-congress/senate-bill/3183), is codified at [15 U.S.C. 45c](https://www.law.cornell.edu/uscode/text/15/45c). It makes two things unlawful: - Circumventing "a security measure, access control system, or other technological control or measure" that a ticket issuer uses to enforce posted purchase limits or to maintain the integrity of posted online purchasing order rules (the order in which buyers are served). - Selling, or offering to sell, a ticket obtained that way, if the seller took part in the circumvention, could control it, or knew or should have known about it. The Act covers concerts, theatre, sporting events, shows and similar scheduled activities that are open to the public and held in a venue with a capacity of more than 200. It does not ban bots as such. It bans getting around the seller's controls and profiting from that. A violation is treated as a breach of a rule against unfair or deceptive practices under the FTC Act. The FTC enforces it, and state attorneys general can bring civil actions in federal court on behalf of their residents. Writing or using software to investigate violations, or for security research on these controls, is exempt. The Act leaves state law in place, and several states have their own ticket bot rules. ## Are ticket bots illegal in the UK? The [Breaching of Limits on Ticket Sales Regulations 2018](https://www.legislation.gov.uk/uksi/2018/735/made) were made under section 106 of the Digital Economy Act 2017. They apply to tickets for a recreational, sporting or cultural event in the UK that are sold online with a limit on how many one buyer may purchase. They make it an offence to use software designed to complete any part of the ticket buying process with intent to obtain tickets above the sales limit, where this is done with a view to any person obtaining financial gain. All three parts matter: software, intent to exceed the limit, and gain. The offence applies even when the tickets are obtained from outside the UK. It is a summary offence, tried without a jury and punished with a fine, with no upper limit stated for England and Wales and a maximum of £50,000 in Scotland. ## What about the EU? [Directive (EU) 2019/2161](https://eur-lex.europa.eu/eli/dir/2019/2161/oj) added point 23a to Annex I of the Unfair Commercial Practices Directive. It bans traders from reselling event tickets to consumers when they acquired them "by using automated means to circumvent any limit imposed on the number of tickets that a person can buy or any other rules applicable to the purchase of tickets." Annex I practices are banned in all circumstances, with no case-by-case test. Each member state enforces the rule through its own consumer law and authorities, and some go further with their own limits on ticket resale. ## What about other countries? Ontario's Ticket Sales Act, 2017 bans the use and sale of ticket-buying software and knowingly selling tickets bought with it, as the [Ontario government explains](https://www.ontario.ca/page/buying-tickets-events-ontario). Other jurisdictions have their own rules, so check the law where the event takes place and where tickets are sold. | Law | What it bans | Who acts | |---|---|---| | US BOTS Act | Getting around controls that enforce posted ticket limits or order rules, and selling tickets obtained that way | FTC and state attorneys general, civil | | UK 2018 Regulations | Using software to buy tickets above the sales limit, with a view to financial gain | Criminal courts | | EU Directive, point 23a | Traders reselling to consumers tickets bought with automated means that get around limits or purchase rules | National consumer authorities | | Ontario Ticket Sales Act, 2017 | Using or selling ticket-buying software, and knowingly selling tickets bought with it | Province of Ontario | ## What do these laws mean for a ticketing platform? The laws give regulators a way to act after a sale. They also shape what a platform should keep in place, and your own lawyer can tell you how they apply to your sales: - The US Act refers to posted limits and posted order rules. Publish purchase limits and queue rules on the sale page, and keep the technical controls that enforce them. - Keep evidence. Logs that link accounts, devices, payment cards and ticket transfers are what an investigation needs. - The UK and EU rules turn on limits being exceeded, so set clear limits and count them across linked accounts. - Report organised abuse to the regulator in the country concerned, with the evidence attached. None of these laws removes bots from an on-sale. That still depends on the platform's own controls, from bot detection at the queue and checkout to limits enforced by linked identity. [How ticket bots work](https://stopbots.io/learn/scalping/how-ticket-bots-work.md) lists what each part of a bot operation leaves in the logs, and [do virtual waiting rooms stop bots](https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots.md) covers the queue. For goods such as sneakers the legal position is different, as [are sneaker bots illegal](https://stopbots.io/learn/scalping/are-sneaker-bots-illegal.md) explains, and the same tools often serve both markets, as described in [what are scalper bots](https://stopbots.io/learn/scalping/what-are-scalper-bots.md). ## Common questions ### Are ticket resale sites regulated in the UK? Yes. Section 90 of the Consumer Rights Act 2015 requires the seller and the resale platform to give the buyer the seat or standing area, any restriction on who can use the ticket and its face value, before the sale is binding. ### What is the Better Online Ticket Sales Act? It is the full name of the BOTS Act, Public Law 114-274. A state attorney general who wants to sue under it must give the FTC written notice at least 10 days before filing, and cannot sue a defendant the FTC is already suing over the same conduct. ### Are there ticket bot laws in Canada? Ticket rules are mainly set by the provinces. Ontario's government describes a ticket bot as software designed to get around the security measures or control systems that keep ticket buying fair, and its ban reaches anyone who knowingly helps sell tickets bought that way. ## Related - [How do ticket bots work?](https://stopbots.io/learn/scalping/how-ticket-bots-work.md) - [Are sneaker bots illegal?](https://stopbots.io/learn/scalping/are-sneaker-bots-illegal.md) - [Do virtual waiting rooms and queues stop bots?](https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots.md) - [What are scalper bots?](https://stopbots.io/learn/scalping/what-are-scalper-bots.md) # How to stop bots from buying your products > Stop bots from buying products by hiding stock levels and early product URLs, running bot detection on the product, cart and checkout endpoints including the API, and enforcing purchase limits across linked accounts, cards, addresses and devices. Use a queue or raffle with verification for big drops, watch the sale live, and review orders before they ship so linked ones can be cancelled. Category: Scalper and checkout bots. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products/ Bots win a limited release in three places: they see it first, they check out faster, and they buy many times under different identities. Defending a drop means closing all three, starting a week before the release and ending after the last order ships. [How sneaker bots work](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md) describes the attacking side in detail. ## Before the release: hide what bots watch - Create or publish the product only at release time. Until then it should return the same 404 as a product that does not exist, on the page and in every JSON endpoint. - Use product handles and IDs that cannot be guessed from earlier releases. - Show "in stock" or "low stock" instead of exact quantities, and remove stock counts from public APIs. - Close preview and staging hosts to the public. Early links often come from them. - Announce a release window ("between 10:00 and 12:00") and pick the exact time at random inside it. ## Decide how the stock is allocated For a first-come sale, put a waiting room in front of the product and check every visitor at entry and again at checkout, as described in [do virtual waiting rooms stop bots](https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots.md). For the most wanted items, a raffle removes the speed race and moves the fight to fake entries, covered in [do raffles stop bots](https://stopbots.io/learn/scalping/do-raffles-stop-bots.md). Either way, require a logged-in account and some verification, such as a confirmed phone number or an account older than the announcement. ## Put bot detection on product, cart and checkout, including the API Checkout bots often never load your pages, so detection has to run on the requests that change state: add-to-cart, shipping, payment, signup and login. That includes the API your mobile app uses. For apps, [Apple App Attest](https://developer.apple.com/documentation/devicecheck) and [Google Play Integrity](https://developer.android.com/google/play/integrity) let the server check that a request came from your real app on a real device. [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) covers the server side. On Cloudflare with Bot Management, a custom rule can challenge low-score requests on the cart and checkout paths: ```txt (http.request.method eq "POST" and http.request.uri.path in {"/cart/add" "/checkout"} and cf.bot_management.score lt 30) ``` Start with a Managed Challenge action and check what it catches before you switch to Block. A score of 30 is a starting point. A per-IP rate limit in nginx is a cheap floor, but it only catches crude bots, since most operators rotate proxy IP addresses: ```nginx limit_req_zone $binary_remote_addr zone=cart:10m rate=10r/m; location = /cart/add { limit_req zone=cart burst=5 nodelay; limit_req_status 429; proxy_pass http://shop_backend; } ``` ## Enforce purchase limits by linked identity A limit of one per account means nothing to someone with many accounts. Enforce the limit on every key that points to the same person: a normalised email mailbox, phone number, normalised shipping address, payment card fingerprint and device ID. Payment processors can give you a stable card fingerprint. In Stripe it is the `card.fingerprint` field on the payment method. Before accepting an order, check all keys at once: ```sql SELECT count(*) FROM orders WHERE sku = $1 AND status <> 'cancelled' AND (card_fingerprint = $2 OR address_key = $3 OR mailbox = $4 OR device_id = $5); ``` If the count is at or above the limit, refuse the order with a clear message. Parallel tasks can pass the count at the same moment, so for a limit of one, back the check with a partial unique index per key: ```sql CREATE UNIQUE INDEX orders_one_per_card ON orders (sku, card_fingerprint) WHERE status <> 'cancelled'; ``` For higher limits, run the count and the insert in one transaction while holding a lock on that key. [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) explains how to build the address and mailbox keys. ## Watch the sale while it runs Put these numbers on one screen, per minute, for the protected product: - Add-to-cart requests compared with product page views - Checkout attempts per successful order - New accounts created - Payment declines - Share of requests challenged or blocked A sudden gap between page views and cart requests means traffic is skipping the page. Agree beforehand who can pause the sale or tighten a rule, and test that switch before launch day. ## Review orders before they ship Hold fulfilment for a short review window after the drop. One or two days is a starting point. In that window, run the linking queries across all orders for the release, cancel linked orders in one batch, refund in full and tell the customers why. Your terms of sale need to allow this, as covered in [are sneaker bots illegal](https://stopbots.io/learn/scalping/are-sneaker-bots-illegal.md). Feed the confirmed bot orders back into your rules before the next release. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Kairal](https://www.kairal.io/industries/retail-ecommerce/) runs bot detection per endpoint across signup, login, cart and checkout, links related devices, accounts and IP addresses, and has a preview mode that shows the decisions it would take without blocking traffic, which is useful before a release. - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) adds a bot score to every request that WAF rules can use on cart and checkout paths, and fits stores already on Cloudflare's Enterprise plan. - [Shopify bot protection](https://help.shopify.com/en/manual/checkout-settings/bot-protection) lets Shopify Plus stores schedule a protected checkout event of up to 60 minutes with a reCAPTCHA or hCaptcha checkpoint, which suits single drops on that platform. - [Queue-it](https://queue-it.com/) is a virtual waiting room with a randomised pre-queue for timed releases, and works best paired with bot detection on checkout. - [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) is a free, MIT-licensed browser identifier that a small store can use to link accounts, though its README says it is much less accurate than the company's commercial product. ## Common questions ### How do you prevent bots from buying products? Protect every request that changes a cart or an order, since bots send those calls without loading pages. Then count each limit per person across accounts that share cards, addresses or devices, and cancel the linked orders that still get through before they ship. ### Does a purchase limit per account stop bots? Only against operators who use a single account. A limit works when the same count applies across every account that shares a card, a normalised address, a phone number or a device. ### Should I randomise the release time of a drop? It helps when combined with other controls. Announcing a window instead of an exact second removes the advantage of tasks scheduled to fire at that second, and it forces monitors to poll for longer, which makes them easier to find in your logs. ## Related - [How do sneaker bots work?](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md) - [Do virtual waiting rooms and queues stop bots?](https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots.md) - [Do raffles and draws stop bots?](https://stopbots.io/learn/scalping/do-raffles-stop-bots.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) # Do virtual waiting rooms and queues stop bots? > Not on their own. A virtual waiting room controls load and the order in which visitors reach the sale, but it does not identify who is in the queue. Bots take many places with many sessions, or skip the queue by calling endpoints that never check the queue pass. Pair the queue with bot detection when visitors join and again at cart and checkout. Category: Scalper and checkout bots. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots/ A waiting room is a holding page that lets visitors through in batches when demand is higher than the site can serve. It remembers each visitor's place with a cookie or token; Cloudflare's version, for example, uses a `_cfwaitingroom` cookie. Nothing in that cookie says whether a person or a script is holding it. An operator with many sessions gets many places in line, and the queue treats each one as a separate fan. ## What does a waiting room do against bots? A queue helps in three ways. Checkout traffic stays at a level the site can handle, so bots cannot crash it for everyone. A randomised pre-queue removes the advantage of joining at the exact second. And the queue gives you one choke point where every visitor passes, which is the right place to run checks. On its own, a queue does not tell a person from a script, does not limit how many places one operator holds and does not protect routes that skip it. ## How do bots get through a queue? - They take many places. Each session has its own browser profile, cookies and proxy IP address, and only the sessions that land near the front go on to buy. - They join early. If the pre-queue opens at a fixed time, automated joins arrive first. - They skip it. Bots call the cart, seat or checkout API directly, or use a route the queue does not cover, such as the mobile app API or an old checkout URL. - They move passes. A pass earned by one session is reused in another, or sold. - They solve the entry challenge through a paid service, as covered in [how CAPTCHA solving services work](https://stopbots.io/learn/captcha/how-captcha-solvers-work.md). [How ticket bots work](https://stopbots.io/learn/scalping/how-ticket-bots-work.md) describes what each of these leaves in the logs. ## Randomise the pre-queue Queue-it and Cloudflare Waiting Room can both shuffle the visitors who arrive before the sale starts. In Cloudflare, an event with a `prequeue_start_time` and `shuffle_at_event_start` set to true assigns pre-queue visitors random places at the start time, according to its [event documentation](https://developers.cloudflare.com/waiting-room/additional-options/create-events/). Visitors who arrive later join behind them in order. Queue-it describes the same behaviour for its pre-queue. A shuffle turns early arrival into a draw, and in a draw more places mean more chances. Randomisation only pays off when you also limit places per person. ## Check visitors when they join - Run bot detection on the request that issues a queue place. Send suspicious sessions to a challenge, or to a queue that never moves. Cloudflare documents a [Turnstile option for Waiting Room](https://developers.cloudflare.com/waiting-room/reference/configuration-settings/), on its Advanced plan, that can route visitors who fail the challenge to an infinite queue page. - Require a logged-in account to join, and allow one place per account. Then count across linked accounts that share a device, card or phone number. - Keep the queue URL and the event ID private until the queue opens. Invisible checks keep this cheap for real fans. [How invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md) explains the mechanism. ## Check them again when they leave The exit is a common weak point. A queue protects only the routes that validate its pass on the server. - Validate the pass on every request to a protected route: product, seat map, holds, cart and checkout, including API and app endpoints. Queue-it's documentation asks for its server-side token check on every request except static files. With Cloudflare Waiting Room, add every route the sale uses, API paths included, to the room. - Bind the pass to the session and account that earned it. Reject a pass presented from another device or account. - Run bot detection again on cart and checkout. A session that passed the entry check can hand over to a script at the exit. ## Signs bots are in your queue - More than one queue place per device fingerprint - Spikes in joins from hosting providers' networks - Many sessions with the same TLS fingerprint and different IP addresses, a pattern explained in [TLS fingerprinting with JA3 and JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) - Checkout requests with a missing or invalid queue pass - Passes redeemed from a different network than the one that joined Kairal's guide to [stopping scalpers in an online queue](https://www.kairal.io/blog/stop-scalpers-online-queue/) goes through these checks for ticketing, and the wider launch-day steps are in [how to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Queue-it](https://queue-it.com/) is a virtual waiting room with a randomised pre-queue and server-side connectors that validate the queue token, used for timed ticket and retail sales. - [Cloudflare Waiting Room](https://www.cloudflare.com/application-services/products/waiting-room/) runs the queue at Cloudflare's edge with event pre-queues and shuffling, and fits sites that already route traffic through Cloudflare. - [Kairal](https://www.kairal.io/industries/ticketing/) runs bot detection at queue entry and again at cart and checkout, and links sessions that share devices and IP addresses so one operator's many places show up together. - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) is a free challenge you can put on your own queue entry page when the queue product has no built-in check. ## Common questions ### Can a visitor go through the queue once and come back? Within the session window, yes. Cloudflare Waiting Room lets a returning visitor skip the queue for a session duration that defaults to five minutes, so a bot that gets through once can keep using that session. Keep the window short for high-demand sales. ### Does a random queue stop ticket bots? A shuffle stops rewarding the first arrivals, yet each extra session is another ticket in the draw, so whoever runs the most sessions still collects the most places. Pair it with a cap of one place per person, counted across linked accounts. ### Why are bots still in the queue after I added a CAPTCHA? Solving services return valid CAPTCHA tokens for a fee. A challenge raises the cost of each place, yet an operator who pays for solving still gets many, so add device and network signals and a limit of one place per account. ## Related - [How do ticket bots work?](https://stopbots.io/learn/scalping/how-ticket-bots-work.md) - [Do raffles and draws stop bots?](https://stopbots.io/learn/scalping/do-raffles-stop-bots.md) - [How to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) - [How invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md) # Do raffles and draws stop bots? > Raffles remove the speed advantage, because entering in the first second no longer matters, but bots still enter. The attack moves to mass entries from fake or farmed accounts, each with its own email, phone number, address and card. A raffle works when you link entries that belong to the same person, verify entrants before the draw and check winners again before shipping. Category: Scalper and checkout bots. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/do-raffles-stop-bots/ A first-come sale is a race, and bots win races. A raffle, or draw, collects entries over hours or days and picks winners at random after entry closes. Every extra entry is another chance to win, so the operator's goal becomes the largest number of entries that each look like a different person. ## What does a raffle fix? A raffle takes away the edge that monitors and fast checkout tasks give in a timed sale, described in [how sneaker bots work](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md). It also removes the load spike at the moment of release. The biggest gain is time. All entries are in before anyone wins, so you can inspect them, link them and remove the fakes before the draw instead of cancelling orders after the stock has gone. A [waiting room](https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots.md) cannot offer that, because it hands out stock while the sale is running. ## How do sneaker raffle bots attack a draw? - They create accounts in bulk with generated emails, such as catch-all domains or dot and plus variants of one Gmail mailbox, and rented phone numbers for SMS checks. - They buy or farm aged accounts with some order history, so the entries look like loyal customers. - They "jig" shipping addresses with small edits so each entry seems to go to a different home. - They pay for card checks with virtual or prepaid cards, many numbers from one funding source. - They post entries straight to the form or API endpoint, spread over many proxy IP addresses. Most of this is multi-accounting, one person posing as many. [What is multi-accounting](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) covers the wider pattern, and [how to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) covers the signup side. ## Link entries before the draw Treat entries that share any strong key as one person. Useful keys are the card fingerprint from your payment processor, a normalised shipping address, a normalised email mailbox, a phone number and a device ID. This PostgreSQL query (illustrative schema) lists the shared values with the most entries: ```sql SELECT 'card' AS link_type, card_fingerprint AS link_value, count(*) AS entries FROM raffle_entries WHERE raffle_id = $1 AND card_fingerprint IS NOT NULL GROUP BY card_fingerprint HAVING count(*) > 1 UNION ALL SELECT 'address', address_key, count(*) FROM raffle_entries WHERE raffle_id = $1 AND address_key IS NOT NULL GROUP BY address_key HAVING count(*) > 1 UNION ALL SELECT 'device', device_id, count(*) FROM raffle_entries WHERE raffle_id = $1 AND device_id IS NOT NULL GROUP BY device_id HAVING count(*) > 1 ORDER BY entries DESC; ``` Links chain. Entry A shares a card with B, and B shares an address with C, so A, B and C belong to one cluster. Group entries into clusters this way, keep at most one entry per cluster, and void whole clusters that are clearly farmed. [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) explains how to build the address and mailbox keys. ## Verify entrants before their entries count Each check below adds friction, so match it to how wanted the product is: - Require a logged-in account, and accept only accounts created before the raffle was announced. - Verify a phone number, and check whether it is a virtual number, which phone data services can report. - Place a small card authorisation at entry and release it after the draw. It costs the operator a card per entry and gives you a fingerprint to link on. - Run bot detection on the entry endpoint itself, with device, network and behaviour signals. - Screen emails at signup, as covered in [disposable email detection](https://stopbots.io/learn/fake-accounts/disposable-email-detection.md). - For the most wanted releases, ask winners to collect in store with ID. ## Check winners again before shipping Run the linking again on the winners only. Look for winners whose accounts share a device with other winners, shipping addresses changed after the draw, and new cards added after winning. Void those wins and redraw from the clean entries. Publish the rules for voiding and redrawing with the raffle, so the decision is easy to explain to the customer. ## What to measure after each raffle - Entries per unique device - Share of entries from accounts created after the announcement - Size of the largest linked cluster - Number of wins voided after review Compare these between raffles. If the largest cluster grows while voided wins stay flat, your linking keys are missing something. Kairal's guide to [sneaker raffle bot protection](https://www.kairal.io/blog/sneaker-raffle-bot-protection/) goes further on the retail side. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Kairal](https://www.kairal.io/use-cases/account-farming-multi-accounting/) links accounts, devices and IP addresses across signup, login and raffle entry, and runs bot detection on the entry endpoint. - [Fingerprint](https://fingerprint.com/) is a device identification API that helps spot many entries made from one device. Its free [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs) library is a less accurate option for a small store. - [SEON](https://seon.io/) enriches emails, phone numbers and IP addresses with risk data, which helps score entrants before the draw. - [Twilio Verify](https://www.twilio.com/en-us/trusted-activation/verify) adds phone and email verification to the entry flow, best paired with checks on the number type since numbers can be rented. ## Common questions ### How do sneaker raffle bots work? They submit entries in bulk, each from a separate account with its own email, phone number, shipping address and card, often posted straight to the raffle's API. Winning entries are paid for, shipped to addresses the operator controls and resold. ### Should raffle entries require a card authorisation? An authorisation at entry raises the cost of each fake entry and adds a card fingerprint you can deduplicate on. Virtual card services let operators create many card numbers, so treat the card as one linking key among several. ### How many raffle entries per person should I allow? One per person, counted across linked accounts. Decide in advance which links count as the same person, such as a shared card fingerprint, normalised address or device, and publish that rule with the raffle. ## Related - [What is multi-accounting?](https://stopbots.io/learn/fake-accounts/what-is-multi-accounting.md) - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) - [Do virtual waiting rooms and queues stop bots?](https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots.md) - [How do sneaker bots work?](https://stopbots.io/learn/scalping/how-sneaker-bots-work.md) # Inventory hoarding: bots that hold stock in carts > Inventory hoarding is when bots add limited stock to carts or hold seats, rooms or slots without paying, so real buyers see it as sold out. OWASP calls it Denial of Inventory. Operators use it to release stock to their own accounts later, sell held items or damage a sale. Defences are short hold times, a cap on holds per identity and bot detection on add-to-cart. Category: Scalper and checkout bots. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/inventory-hoarding-bots/ OWASP lists inventory hoarding as [OAT-021 Denial of Inventory](https://owasp.github.io/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-021_Denial_of_Inventory) and defines it as: "Deplete goods or services stock without completing the purchase or committing to the transaction." The entry reaches well beyond shopping carts. It names reservations for hotel rooms, restaurant tables, holidays and flight seats, and things that are not goods at all, such as availability slots and queue positions. It sits next to scalping in the [OWASP automated threats](https://stopbots.io/learn/bots/owasp-automated-threats.md) list. ## Why do bots hoard inventory? - To keep stock out of reach until the operator's own accounts are ready to buy it. - To sell the hold. In ticketing, a held seat can be released at an agreed moment so a waiting buyer can grab it, which moves the seat without the platform's transfer feature. [How ticket bots work](https://stopbots.io/learn/scalping/how-ticket-bots-work.md) covers the rest of that operation. - To make a product look scarce and push resale prices up. - To damage a competitor's or a seller's launch. Appointment systems suffer the same pattern with slots instead of stock, covered in [appointment and booking bots](https://stopbots.io/learn/scalping/appointment-booking-bots.md). ## What does inventory hoarding look like in your data? - A high add-to-cart or hold rate with low conversion, on one product or event. - Holds that expire unpaid, followed at once by a new hold on the same item from a linked session. - Many active holds per account, device or IP range. - "Sold out" shown on the site while paid orders are well below the stock count. - Hold requests with no product page view in the same session. This PostgreSQL query (illustrative schema) finds devices that hold the same item again within 30 seconds of their previous hold expiring: ```sql SELECT h1.item_id, h1.device_id, count(*) AS re_holds FROM holds h1 JOIN holds h2 ON h2.item_id = h1.item_id AND h2.device_id = h1.device_id AND h2.created_at BETWEEN h1.expires_at AND h1.expires_at + interval '30 seconds' WHERE h1.status = 'expired' GROUP BY h1.item_id, h1.device_id HAVING count(*) >= 3 ORDER BY re_holds DESC; ``` Three re-holds is a starting threshold. Run the same query on account ID and card fingerprint, since operators rotate devices. ## Shorten and cap holds - Reserve later. For limited releases, take stock out of the available count at the start of checkout or at payment, not at add-to-cart. - Keep holds short, and do not extend them without a payment step. - Allow one active hold per item per identity, and cap total holds at the purchase limit. Count across linked accounts, devices and cards. - Add a cooldown. After a hold expires unpaid, the same identity cannot hold that item again for a few minutes. - For seats, limit the number of seats in one hold to the ticket limit for the event. A hold with an automatic expiry can be as simple as one Redis key per item. `NX` makes the hold succeed only if nobody holds the item, and `EX 600` expires it after 600 seconds: ```bash redis-cli SET hold:event42:seat:A12 "acct:8841" NX EX 600 ``` The server should also keep a count of active holds per identity and refuse a new hold once that count reaches the limit. ## Put bot detection on add-to-cart and hold endpoints Hoarding runs through the add-to-cart or hold API, often without any product page view. Score those requests for automation and challenge or reject the low scores, the same way you protect checkout. The [OWASP API Security Top 10](https://api-security.owasp.org/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/) lists this kind of flow under API6:2023, unrestricted access to sensitive business flows. [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) covers the API side. Rate limits help as a floor. Limit holds per session and per account, as well as per IP address, because hoarders spread holds over proxies. [Rate limiting for bots](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) explains what limits miss. The checkout steps that follow a hold are covered in [how to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Kairal](https://www.kairal.io/product/bot-protection/) runs bot detection with protection set per endpoint, so add-to-cart and hold calls get their own rules, and links the sessions, devices and IP addresses behind repeated holds. - [Cloudflare rate limiting rules](https://developers.cloudflare.com/waf/rate-limiting-rules/) cap requests to hold endpoints by IP address or other request characteristics, and fit sites already on Cloudflare. - [AWS WAF Bot Control](https://aws.amazon.com/waf/features/bot-control/) adds managed bot rules for sites served through CloudFront or other AWS front ends. - [Akamai Bot Manager](https://www.akamai.com/products/bot-manager) scores bot traffic at Akamai's edge, which suits large ticketing and retail sites already on Akamai. ## Common questions ### What is denial of inventory? It is OWASP's name for automated threat OAT-021. Other names listed in the entry include inventory hoarding, inventory exhaustion, stock exhaustion, hold-all attack and seat spinning. ### How long should a cart hold stock? Long enough for a real buyer to pay, and no longer. Measure how long your real buyers take from the start of checkout to payment on a normal day, and set the hold for a limited release a little above that. ### How is seat spinning different from scalping? Scalping ends in a purchase that the operator resells. Seat spinning may never end in a purchase: the seats are held to block other buyers or released at a chosen moment, so the damage shows up as unsold stock and lost sales. ## Related - [How do ticket bots work?](https://stopbots.io/learn/scalping/how-ticket-bots-work.md) - [OWASP automated threats: the 21 bot attacks in plain English](https://stopbots.io/learn/bots/owasp-automated-threats.md) - [How to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) - [Rate limiting for bots: what it stops and what it misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) # Appointment and booking bots: how to protect slots > Booking bots search appointment systems for free slots, book them the moment they appear and resell them, often by swapping the buyer's details into the booking. To protect slots, run bot detection on the slot search and booking endpoints, bind each booking to one identity that cannot be swapped later, limit changes and swaps, and release cancelled slots at random times. Category: Scalper and checkout bots. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scalping/appointment-booking-bots/ OWASP lists "slot-booking bot" and "restaurant table/hotel room reservation speed-booking" among the other names for its Scalping threat, covered in [what are scalper bots](https://stopbots.io/learn/scalping/what-are-scalper-bots.md). The targets are systems where demand is far above supply and the official price is low or fixed: driving tests, visa and consular appointments, passport interviews and popular restaurant tables. A slot can only be resold if the booking can change hands, and most of the defences below aim at that. ## How do booking bots work? The UK's Driver and Vehicle Standards Agency (DVSA) described the pattern in a [2023 post](https://despatch.blog.gov.uk/2023/06/29/how-were-dealing-with-bots-and-the-reselling-of-driving-tests): bots search for and reserve test appointments much faster than people, and organisations hold the slots until they can resell them at a higher price. DVSA called this "unfair" but "not illegal". The same steps appear in other booking systems: - The bot queries the availability endpoint for many centres and dates every few seconds, from many accounts or IP addresses. - When a slot appears, it books at once, with a placeholder identity or with details collected from a customer in advance. - Once a buyer pays, the operator moves the slot to them by editing the booking, swapping it, or cancelling it and rebooking it for the buyer at the same moment. - Slots freed by cancellations are the main prize, because they appear without warning, so the search never stops. Some third-party booking services also log in with their customers' details and book on their behalf. DVSA's later rules stop third parties, including unofficial booking services, from booking or managing a test for someone else. ## What booking bots leave in your logs - Availability searches per account or session far above what one person does, often around the clock - Searches across many centres or consulates in one session - Bookings made within a second of a slot appearing - Many changes per booking, and candidate details changed after booking - Bookings swapped between accounts that have no other link - One device or IP range logging in to many candidate accounts These are the same patterns as [inventory hoarding](https://stopbots.io/learn/scalping/inventory-hoarding-bots.md), with slots in place of stock. ## How to stop bots booking driving tests and other slots Start where the bots spend their requests: the slot search. Run bot detection on the search and booking endpoints, including the API behind the page. [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) covers that side. Then: - Require a login to search, and rate limit searches per account and per session as well as per IP address. - Serve availability from a short-lived cache so polling does not reach the booking system. - Challenge suspicious sessions with an invisible check first. [CAPTCHA alternatives](https://stopbots.io/learn/captcha/captcha-alternatives.md) compares the options. - Treat a device that logs in to many candidate accounts as an agent, and apply agent limits or block it. ## Bind each booking to one identity The resale model needs a booking that can change hands. Remove that: - Tie the booking to an identifier the person must prove, such as a driving licence or passport number. - Do not allow the candidate's name or ID to change after booking. If details are wrong, cancel and return the slot to the pool. - Let only the candidate book and manage the booking, or a verified agent acting under their own capped account. - Check ID at the appointment against the booking. ## Limit changes and swaps DVSA's booking changes in 2026 are a public example, set out in its [announcement](https://www.gov.uk/government/news/end-of-the-road-for-unofficial-driving-test-booking-services): - From 31 March 2026, the number of changes allowed on a car test booking fell from six to two. - From 12 May 2026, only learner drivers can book, change, swap or cancel their own car test. - From 9 June 2026, learners can move a test only to one of the three nearest test centres. These rules go after the resale channel more than the bot itself. A cap on changes makes it harder to keep a placeholder booking moving until a buyer is found. DVSA says the nearest-centre rule should deter bookings at centres where the learner does not plan to sit the test. ## Release cancelled slots at random times If a cancelled slot reappears the instant it is freed, the fastest poller wins every time. Collect cancellations and release them in small batches at random times, or offer them to a waiting list in order or by draw, with a short acceptance window tied to the candidate's identity. Do not show exact slot counts. For a large planned release, such as a new month of appointments, a [waiting room](https://stopbots.io/learn/scalping/do-waiting-rooms-stop-bots.md) with a randomised pre-queue spreads the load. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Kairal](https://www.kairal.io/product/bot-protection/) runs bot detection per endpoint with invisible challenges, and links the devices and IP addresses behind many candidate accounts. - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) scores requests at the edge so slot search and booking paths can get stricter rules. - [Friendly Captcha](https://friendlycaptcha.com/) is a proof-of-work challenge with no image puzzles, from a company based in Germany, which suits public booking sites that want to avoid puzzles. - [Queue-it](https://queue-it.com/) puts large planned slot releases behind a waiting room with a randomised pre-queue. ## Common questions ### Is it illegal to resell driving test slots? DVSA has handled it through its booking terms. Since 12 May 2026, a third party booking, changing, swapping or cancelling someone else's car test breaches those terms. Rules in this area change, so check GOV.UK for the current position. ### Why do booking bots target cancellations? Cancelled slots appear one at a time at moments nobody can predict, and the first request that sees one gets it. A bot that searches every few seconds sees them long before a person refreshing the page. ### Do CAPTCHAs stop booking bots? They slow the crudest ones. DVSA says it uses CAPTCHA tests when it suspects automated access, alongside other bot protection, and solving services can pass many challenges for a fee, so a CAPTCHA works best as one layer among several. ## Related - [Inventory hoarding: bots that hold stock in carts](https://stopbots.io/learn/scalping/inventory-hoarding-bots.md) - [What are scalper bots?](https://stopbots.io/learn/scalping/what-are-scalper-bots.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) # What is web scraping? Crawling vs scraping > Web scraping is the automated extraction of specific data from websites, such as prices, listings or articles, into a structured format. Crawling is the discovery side: a crawler follows links to find and fetch pages, as search engines do. Most scrapers crawl to reach pages, but their goal is the data, and many hide who they are. Category: Scraping and AI crawlers. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/what-is-web-scraping/ A scraper is a program that requests web pages, reads the HTML or JSON that comes back, and copies out the fields it was built for: a product name, a price, a stock level, a phone number. It stores them in a spreadsheet or database and repeats the job across thousands of URLs. A person copying prices by hand does the same work, only slower. OWASP lists scraping as OAT-011 in its [catalogue of automated threats](https://owasp.org/www-project-automated-threats-to-web-applications/). ## Crawling vs scraping: what is the difference? Crawling is about finding pages. A crawler starts from a list of URLs, fetches each one, extracts the links and adds them to its queue. Googlebot and Bingbot crawl to build a search index. Scraping is about pulling data out of pages. A scraper often knows which URLs it wants and keeps only a few fields from each. The two overlap. Most scrapers crawl to discover product or listing URLs, and search engines store a copy of what they fetch. For a site owner the useful distinction is behaviour: who runs the bot, whether it says who it is, whether it follows your rules, and what it does with what it takes. | | Search engine crawler | Scraper | |---|---|---| | Goal | Index pages so people can find them | Extract specific data for reuse | | What it keeps | Page content for search results | Selected fields such as prices, listings, text or contacts | | Identifies itself | Yes, with a documented user agent and IP ranges | Often poses as a normal browser | | Follows robots.txt | Yes | Usually not | | What you get back | Visitors from search | Usually nothing | [AI crawlers](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) that collect training data sit between the two columns. They identify themselves and many honour robots.txt, but they send few or no visitors back. ## How does web scraping work? 1. The scraper finds URLs from sitemaps, category pages and pagination, or by counting through IDs such as `/product/1001`, `/product/1002`. 2. It fetches each page. Simple scrapers use an HTTP library and never run JavaScript. Others drive a headless browser so that pages built with JavaScript render fully; [how modern bots are built](https://stopbots.io/learn/bots/how-modern-bots-are-built.md) explains the tooling. 3. It parses the response with CSS selectors or XPath. Many scrapers skip the HTML and call the JSON API that the page itself uses, because that data is already structured. 4. It stores the results and runs again on a schedule, sometimes every few minutes for prices. Scrapers that expect to be blocked spread their requests across many IP addresses, often through residential proxies, so each address sends only a handful of requests. ## What do scrapers collect? - Prices, stock levels and promotions, usually for competitors or resellers - Full product catalogues with descriptions and images, to copy onto other shops - Listings from real estate, job, travel and classifieds sites - Articles and other text, for republishing or for AI training datasets - Profiles, email addresses and phone numbers, for spam and fraud lists - Reviews and ratings ## When is scraping a problem? Price comparison partners, academic researchers, web archives and search engines all crawl or scrape, and many site owners want them to. What separates [good bots from bad bots](https://stopbots.io/learn/bots/good-bots-vs-bad-bots.md) is mostly permission and behaviour. Scraping becomes a problem when it costs you money or advantage. Heavy scrapers load your origin servers and raise hosting bills. A competitor that reads your prices every hour can undercut each change within the hour. Copied content can compete with yours in search results. Harvested personal data puts your users at risk and raises questions under privacy law, covered in [is web scraping legal?](https://stopbots.io/learn/scraping/is-web-scraping-legal.md). Scrapers that execute JavaScript also skew analytics and conversion rates. ## What does scraping look like in your logs? Simple scrapers are easy to spot in access logs. Look for: - User agents of HTTP libraries such as `python-requests`, `Go-http-client`, `curl` or `Scrapy` - HTML pages requested with no CSS, JavaScript or image requests from the same client - URLs that walk through IDs or page numbers in order - Requests at a steady interval, day and night - Heavy traffic from cloud hosting networks (an ASN, or autonomous system number, identifies the network that owns an IP address) - No cookies sent back, so every request starts a new session Scrapers that run real browsers through residential proxies hide most of these signs. Catching them takes device, network and behaviour signals together, as described in [can web scraping be detected?](https://stopbots.io/learn/scraping/can-web-scraping-be-detected.md). The defences are in [how to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md), and Kairal has a separate guide to [web scraping protection](https://www.kairal.io/blog/web-scraping-protection/). ## Common questions ### Is web scraping legal? It depends on what is collected, how it is accessed and where. Public facts are treated differently from copyrighted text or personal data, and terms accepted when creating an account can apply even when the data is visible to everyone. ### Can web scraping be detected? Scrapers built on plain HTTP libraries show up in ordinary access logs. Scrapers that run real browsers through residential proxies need detection that combines TLS, browser fingerprint and behaviour signals, and some still get through. ### Is web crawling the same as web scraping? They overlap but are not the same. A search engine crawls broadly and sends visitors back, while a price scraper may request the same few hundred product URLs every hour and never follow a link. ## Related - [Is web scraping legal?](https://stopbots.io/learn/scraping/is-web-scraping-legal.md) - [How to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md) - [Good bots vs bad bots: how to tell them apart](https://stopbots.io/learn/bots/good-bots-vs-bad-bots.md) - [OWASP automated threats: the 21 bot attacks in plain English](https://stopbots.io/learn/bots/owasp-automated-threats.md) # Is web scraping legal? > Web scraping is not illegal in itself, but it can break several laws depending on what is scraped, how and where. In the US, the CFAA, contracts, copyright and privacy law all apply. In the EU, GDPR covers personal data even when it is public, and database and copyright rules limit copying. This is general information, not legal advice. Category: Scraping and AI crawlers. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/is-web-scraping-legal/ The same script can be lawful when it reads train timetables and unlawful when it copies a competitor's database or collects people's profiles. Courts and regulators look at what data was taken, how it was accessed, what the scraper agreed to, and what was done with the result. This page explains the main laws in general terms for [web scraping](https://stopbots.io/learn/scraping/what-is-web-scraping.md). It is not legal advice. The answer for a specific project depends on the jurisdiction and the facts, so ask a lawyer who practises there. ## Is web scraping legal in the US? The main federal statute is the [Computer Fraud and Abuse Act](https://www.law.cornell.edu/uscode/text/18/1030) (CFAA). It makes it an offence to access a computer "without authorization" or to "exceed authorized access", and site owners have used it against scrapers for years. Two decisions narrowed its reach. In [Van Buren v. United States](https://www.supremecourt.gov/opinions/20pdf/19-783_k53l.pdf) (2021), the Supreme Court read "exceeds authorized access" narrowly. The question is whether a person enters parts of a system that are off limits to them, which the Court framed as whether a gate is up or down. Misusing data you were allowed to see is a different matter. In hiQ Labs v. LinkedIn, hiQ scraped public LinkedIn profiles that anyone could view without logging in. The Ninth Circuit held that this likely did not access a computer "without authorization" under the CFAA. It said so in 2019 and again in [its 2022 opinion](https://cdn.ca9.uscourts.gov/datastore/opinions/2022/04/18/17-16783.pdf), after the Supreme Court had sent the case back to be reconsidered in light of Van Buren. The reasoning concerned data open to the public. Pages behind a login were outside it. The case did not end as a win for hiQ. The district court later found that hiQ had breached LinkedIn's User Agreement, and the case closed with a judgment against hiQ. ## What other US laws apply to scraping? - Contract law applies when the scraper accepted the site's terms. Terms accepted at signup are more likely to be enforced than terms linked in a footer that nobody clicks. - Copyright does not protect plain facts such as prices or opening hours (the Supreme Court said so in Feist v. Rural, 1991). It does protect articles, photos, product descriptions and creative selections of data, so republishing scraped content can infringe even when the scraping itself was lawful. - Trespass to chattels has been accepted where a scraper's load interfered with the site's servers. eBay v. Bidder's Edge (2000) is the early example. - State privacy laws, such as California's, can apply when the scraped data is about identifiable people. Some treat publicly available information differently, so the details depend on the specific law. ## Is web scraping legal in the EU? EU law adds rules that apply even when the data is visible to everyone. The [General Data Protection Regulation](https://eur-lex.europa.eu/eli/reg/2016/679/oj) (GDPR) covers any information about an identifiable person, published or not. A scraper that collects names, profiles, photos or contact details needs a lawful basis, often legitimate interests, which requires weighing the scraper's interest against the people's rights. It must also tell people their data is being processed and collect no more than it needs. Data protection authorities in several EU countries have fined Clearview AI for building a face database from scraped images. The [Database Directive](https://eur-lex.europa.eu/eli/dir/1996/9/oj) gives a separate right to the maker of a database that took substantial investment to obtain, verify or present. Extracting or reusing a substantial part of it without permission infringes that right, and so can repeated, systematic extraction of small parts. Product catalogues, listings and directories often qualify. Contracts matter too. In Ryanair v PR Aviation (2015), the Court of Justice held that when a database is protected by neither copyright nor the database right, its owner can still restrict use through contract terms. The [Copyright in the Digital Single Market Directive](https://eur-lex.europa.eu/eli/dir/2019/790/oj) has two exceptions for text and data mining, meaning automated analysis of content: - Article 3 lets research organisations and cultural heritage institutions mine content they can lawfully access, for scientific research. - Article 4 lets anyone mine lawfully accessible content unless the rightholder has reserved that use "in an appropriate manner, such as machine-readable means" for content published online. Which signals count as a valid reservation, for example robots.txt rules or a clause in the terms of service, is still being argued in courts and policy work. The [AI Act](https://eur-lex.europa.eu/eli/reg/2024/1689/oj) requires providers of general-purpose AI models to have a policy for identifying and respecting these reservations. Most large [AI crawlers](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) document a robots.txt opt-out. ## What decides whether a scraping project is lawful? The answer usually turns on these questions: - What the data is: facts, copyrighted works, a protected database, or personal data - How it was reached: public pages, pages behind a login, or pages reached by getting around blocks the site put in place - What the scraper agreed to, such as account terms or API terms - How much was taken and how often, and whether the load affected the site - What happens next: internal analysis, republishing, resale or AI training - Where the scraper, the site and the people in the data are located ## What can site owners do? - Publish clear terms, and have users accept them at signup if you offer accounts. - Publish machine-readable opt-outs, such as robots.txt rules for AI crawlers and, in the EU, a text and data mining reservation. [Does robots.txt stop scraping?](https://stopbots.io/learn/scraping/does-robots-txt-stop-scraping.md) explains what those rules can and cannot do. - Keep logs that show what was taken, when and from which networks. Evidence matters in a dispute. - Use technical controls. Lawsuits are slow, and many scrapers are anonymous. [How to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md) covers the layers. Bot protection processes personal data as well, so the same GDPR questions apply to your own defences. [Bot protection and GDPR](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) covers that side. ## Common questions ### Is web scraping legal in the US? No federal statute bans scraping as such. Whether a project is lawful turns on the CFAA, contract terms, copyright and state privacy laws, and courts have treated pages open to everyone differently from data behind a login. ### Does GDPR apply to scraping public data? Yes. Personal data stays personal data after it is published, so a scraper collecting names, photos or contact details from public pages needs a lawful basis and has to meet GDPR's transparency duties toward the people in the data. ### Can a website's terms of service ban scraping? Terms can restrict scraping and are strongest against someone who accepted them. They help in a dispute but do nothing against anonymous scrapers that never create an account, which is why sites pair them with technical controls. ## Related - [What is web scraping? Crawling vs scraping](https://stopbots.io/learn/scraping/what-is-web-scraping.md) - [How to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md) - [Bot protection and GDPR: is fingerprinting legal?](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md) - [Are ticket bots illegal? The BOTS Act and other laws](https://stopbots.io/learn/scalping/are-ticket-bots-illegal.md) # How to prevent web scraping > You cannot stop every scraper, because anything a browser can display a bot can read. You can make bulk extraction slow, costly and visible. Combine rate limits per IP and session, bot detection that does not trust the user agent, a hardened API, login for bulk data and honeypot links, and verify search engine crawlers so they keep working. Category: Scraping and AI crawlers. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/how-to-prevent-web-scraping/ Treat scraping prevention as a cost problem. Each layer below removes a class of scraper or makes the remaining ones slower and easier to see, while real visitors and search engines get through. Start with the pages that give a scraper the most data per request. ## Which pages and endpoints do scrapers target? Check your logs for the paths with the highest share of requests from clients that never load CSS, JavaScript or images. They are usually: - Search results and category listings with page parameters - Product, listing or profile pages reached by sequential IDs - JSON endpoints that return prices, stock or search results - Sitemaps, which hand a scraper a complete URL list Record normal traffic on each of these paths before you change anything, so you can tell whether a new rule stopped scrapers or real users. [Can web scraping be detected?](https://stopbots.io/learn/scraping/can-web-scraping-be-detected.md) has log queries to start from. ## How do you rate limit scrapers? Rate limits stop the simplest scrapers, the ones that send hundreds of requests from one address. In nginx, put a tighter limit on expensive paths such as search: ```nginx http { limit_req_zone $binary_remote_addr zone=catalog:10m rate=2r/s; upstream app { server 127.0.0.1:8080; } server { listen 80; server_name example.com; location /search { limit_req zone=catalog burst=20 nodelay; limit_req_status 429; proxy_pass http://app; } location / { proxy_pass http://app; } } } ``` Two requests per second with a burst of 20 is a starting point. Raise it if your logs show real users hitting 429 responses. Per-IP limits miss scrapers that spread requests over thousands of residential addresses, so also limit per session cookie or per account where you can. [Rate limiting for bots](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) covers what limits miss. ## Add bot detection that does not trust the user agent Any scraper can send a Chrome user agent. Detection has to check whether the rest of the request agrees with it: - The TLS fingerprint (JA4, a hash of how the client opens an encrypted connection) should match the browser the user agent claims - Headless and automated browsers leave traces in JavaScript properties and rendering, covered in [headless browser detection](https://stopbots.io/learn/detection/headless-browser-detection.md) - Real users scroll, move a pointer and pause unevenly, while scrapers move through pages at a steady rhythm - Many sessions from hosting providers, or one device fingerprint spread across hundreds of IP addresses, point to automation Send suspicious sessions to an invisible challenge instead of blocking on one signal. A false positive then costs a real user a short delay. ## Harden the API behind your pages Scrapers prefer your JSON endpoints to your HTML, because the data comes back structured. On every public API: - Return only the fields the page displays, not the full database record - Cap page sizes on the server (for example a maximum of 50 items), whatever the client asks for - Use random or opaque IDs instead of sequential ones, so a scraper cannot count through your catalogue - Require a short-lived token issued when the page loads, and rate limit per token OWASP describes this risk as [unrestricted access to sensitive business flows](https://api-security.owasp.org/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/). More API controls are in [how to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md). ## Require login for bulk data If your value is in the full dataset, put bulk access behind an account. Keep the first pages of results public for search engines and new visitors, and require login for deep pagination, exports, contact details or full price history. Then apply quotas per account. A scraper must now create and age accounts, which turns the problem into fake account detection, and the terms accepted at signup give you a stronger legal position. ## Use honeypot links to catch scrapers A honeypot link is invisible to people and disallowed in robots.txt, so only a bot that ignores both will request it: ```html ``` ```txt User-agent: * Disallow: /catalog/full-export ``` Treat a hit as a strong signal for that session and IP address, and confirm it with other signals before blocking. More trap designs are in [honeypots for bot detection](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md). ## How to stop competitors scraping your prices Price scrapers usually hit product and category pages on a fixed schedule and read only the price element or the price API. Useful controls: - Serve prices from an API that requires the page-load token, and rate limit it per session - Challenge or slow suspected scrapers instead of blocking them outright, because a hard block tells the operator to change tactics - Do not show different prices to suspected bots, since every false positive would show a real shopper a wrong price - Give partners you want, such as comparison sites and marketplaces, a feed or an API key, so you can block everyone else on the same paths ## Keep search engines and partners working Before any rule goes live, exempt verified crawlers. Check Googlebot and Bingbot with reverse and forward DNS or their published IP lists, as explained in [how to verify good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md), and never exempt a client because its user agent says Googlebot. After the change, compare crawl stats in Google Search Console and Bing Webmaster Tools with the previous week. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [fail2ban](https://github.com/fail2ban/fail2ban) is an open-source tool that bans IP addresses whose log lines match patterns you define, which is often enough against simple scrapers on a single server. - [CrowdSec](https://www.crowdsec.net/) is an open-source engine that reads your logs, detects aggressive crawling and shares IP reputation across its community, and its free version suits small sites. - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) gives each request a bot score you can act on in rules, a fit for sites already proxied through Cloudflare. - [Kairal](https://www.kairal.io/use-cases/scraping/) connects device, network and behavioural signals to detect scraping and lets you set protection per endpoint, with a preview mode that shows decisions before anything is blocked. - [AWS WAF Bot Control](https://aws.amazon.com/waf/features/bot-control/) is a managed rule group that labels and blocks common and targeted bots, suited to sites behind CloudFront or an AWS load balancer. ## Common questions ### Can websites block web scraping? They can block most of it. Scrapers using plain HTTP libraries from cloud servers are cheap to stop, while scrapers running real browsers through residential proxies need layered detection, and a determined one may still collect some pages slowly. ### Does Cloudflare prevent web scraping? Cloudflare offers Bot Fight Mode on free plans, Super Bot Fight Mode on Pro, Business and Enterprise plans, and Bot Management with a bot score per request as an Enterprise add-on. Scrapers that behave like real browsers can get past the simpler modes, so test the setting against your own logs. ### Will anti-scraping measures hurt my SEO? Only if they block or slow verified search engine crawlers. Allowlist Googlebot and Bingbot after DNS verification, never by user agent alone, and watch the crawl stats report in Search Console for a week after each change. ## Related - [Can web scraping be detected?](https://stopbots.io/learn/scraping/can-web-scraping-be-detected.md) - [Rate limiting for bots: what it stops and what it misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) - [How to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md) # Can web scraping be detected? > Yes. Simple scrapers show up in access logs through library user agents, missing headers, no asset requests and steady request rates. Scrapers that run real browsers through residential proxies are harder to catch, and finding them means combining TLS fingerprints, browser checks, behaviour and clustering across many IP addresses. Detection gives a confidence level, so match the response to it. Category: Scraping and AI crawlers. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/can-web-scraping-be-detected/ The effort to detect a scraper grows with the effort the scraper puts into hiding. A script that uses an HTTP library from a cloud server is visible in a basic log query. A scraper that runs a real browser through residential proxies looks like a person on any single request, and it only shows itself when you combine network, device and behaviour signals across many requests. ## What gives simple scrapers away? Start with your access logs or CDN logs. The cheapest signals are: - User agents of HTTP libraries and frameworks, such as `python-requests`, `Go-http-client`, `okhttp`, `curl` or `Scrapy` - Missing headers that every browser sends, such as `Accept-Language` - HTML requests with no matching requests for CSS, JavaScript or images - Cookies that are never sent back, so each request starts a new session - URLs requested in ID or page order, at a fixed interval - Traffic from hosting providers' networks (ASNs) where you expect home and mobile users This PostgreSQL query lists IP addresses that fetched more than 200 product pages in the last hour without loading a single static asset. Adjust the table and paths to your own schema. The 200 threshold is a starting point to tune against your traffic. ```sql SELECT ip, COUNT(*) FILTER (WHERE path LIKE '/product/%') AS product_pages, COUNT(DISTINCT path) FILTER (WHERE path LIKE '/product/%') AS distinct_products, COUNT(*) FILTER (WHERE path LIKE '/static/%') AS asset_requests FROM access_log WHERE ts >= NOW() - INTERVAL '1 hour' GROUP BY ip HAVING COUNT(*) FILTER (WHERE path LIKE '/product/%') > 200 AND COUNT(*) FILTER (WHERE path LIKE '/static/%') = 0 ORDER BY product_pages DESC; ``` If a CDN serves your static files from cache, origin logs show no asset requests from anyone, and every visitor looks like a scraper. Run the query on CDN logs in that case. ## How do you detect scrapers that use real browsers? Scrapers that drive Chrome or Firefox through automation frameworks run your JavaScript, keep cookies and send normal headers. The useful signals move to places that are harder to fake consistently: - The TLS fingerprint should match the claimed browser. JA4 summarises how a client sets up an encrypted connection, and a request that claims to be Chrome but negotiates TLS like a Python library is lying about something. See [TLS fingerprinting with JA3 and JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md). - Headless and automated browsers expose properties and rendering differences that normal browsers do not, covered in [headless browser detection](https://stopbots.io/learn/detection/headless-browser-detection.md). - The browser fingerprint should be internally consistent. A client that claims to be a Mac but renders graphics with a software renderer, or reports a screen size no real device has, is running in a spoofed environment. - People scroll, hover, pause and go back. Scrapers load a page, read it and move to the next URL at a steady rhythm, often with no pointer or scroll events at all. [Behavioral bot detection](https://stopbots.io/learn/detection/behavioral-bot-detection.md) explains how this is measured. ## Can scrapers on residential proxies be detected? Residential proxies route traffic through home and mobile connections, so the IP address looks like a customer's and IP reputation stops working. Other signs remain: - The IP address changes in the middle of a session while the device fingerprint stays the same - One device fingerprint or JA4 value appears behind hundreds of unrelated IP addresses in a day - The IP's country does not match the browser's time zone or language - Connection timing shows an extra hop between the client and the residential address [How to detect residential proxies](https://stopbots.io/learn/detection/how-to-detect-residential-proxies.md) goes further into each of these. ## Look at clusters instead of single requests A distributed scraper may send only 20 requests from each IP address, which no per-IP rule will flag. Group traffic by what the scraper cannot rotate cheaply: TLS fingerprint, header order, device fingerprint and the set of paths requested. Five hundred IP addresses that share one JA4 value and one header order, and together cover your whole catalogue once a day, are one scraper. Track catalogue coverage per cluster per day. A human shopper rarely views more than a small part of a large catalogue. ## How sure can you be? Detection gives a probability. Some real users look like scrapers: offices behind one NAT address, privacy browsers that resist fingerprinting, screen readers and other assistive tools, and partners nobody added to the allowlist. Let the confidence decide the response: block what is certain, challenge what is likely and log the rest. Run new rules in a log-only mode first and review what they would have blocked. [False positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md) covers how to measure the error rate. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [GoAccess](https://goaccess.io/) is a free, open-source log analyser that shows top IP addresses, user agents and paths in a terminal or HTML report, which is enough to find simple scrapers on a small site. - [JA4](https://github.com/FoxIO-LLC/ja4) is an open specification for TLS and HTTP client fingerprints with reference implementations, useful if you terminate TLS on your own servers and want to log fingerprints yourself. - [Fingerprint](https://fingerprint.com/) identifies browsers and devices across sessions, and its [open-source library](https://github.com/fingerprintjs/fingerprintjs) is a free way to start linking requests to one device. - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) gives each request a bot score built from machine learning, heuristics and behaviour signals, which you can log and use in rules. - [Kairal](https://www.kairal.io/use-cases/scraping/) links device, network and behavioural signals across sessions and shows the evidence behind each decision in its console, including related devices and IP addresses. ## Common questions ### How do websites detect web scraping? Most start with request patterns such as rates, missing headers, no asset loads and library user agents. Larger sites add TLS fingerprints, JavaScript browser checks and behaviour scoring, usually through a CDN or a bot management service. ### Is a high request rate enough to call it a scraper? No. Search engines, uptime monitors and offices behind one shared address can all send many requests. Treat a high rate as a reason to look closer, and confirm with headers, fingerprints and the pages requested before you block. ### Does Google Analytics show scraper traffic? Mostly not. Scrapers that never run JavaScript never fire the analytics tag, and GA4 excludes traffic from known bots automatically. Scrapers that run a full browser can appear as real sessions with very short engagement and unusual locations. ## Related - [How to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md) - [How does bot detection work?](https://stopbots.io/learn/detection/how-bot-detection-works.md) - [TLS fingerprinting for bot detection: JA3 and JA4 explained](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) - [How to identify and filter bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) # Does robots.txt stop scraping? > No. robots.txt is a voluntary standard (RFC 9309) that asks crawlers which paths to avoid. Search engines and most documented AI crawlers follow it, but scrapers after your data ignore it, and some AI fetchers acting for a user may not apply it. The file is public, so listing sensitive paths in it tells everyone where they are. Category: Scraping and AI crawlers. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/does-robots-txt-stop-scraping/ robots.txt is a plain text file at the root of a host that tells crawlers which paths they may fetch. [RFC 9309](https://www.rfc-editor.org/rfc/rfc9309), published by the IETF in 2022, standardised a format that crawlers had followed informally since the 1990s. The RFC states that these rules "are not a form of access authorization". A crawler reads the file and decides whether to obey it, and nothing on your server enforces the result. ## How does robots.txt work? - The file lives at `/robots.txt` on each host, so `www.example.com` and `shop.example.com` need separate files. - Rules sit in groups under one or more `User-agent` lines. A crawler matches its product token case-insensitively, follows the group that names it, and falls back to the `User-agent: *` group only if no group names it. - Within a group, `Allow` and `Disallow` rules match URL paths by prefix. The longest matching rule wins, and `Allow` wins a tie. - `*` matches any sequence of characters and `$` marks the end of the URL. - Crawlers may cache the file, but should not use a cached copy for more than 24 hours unless the file cannot be reached. - If robots.txt returns a 4xx status, crawlers may treat everything as allowed. If it returns a 5xx status, they must assume everything is disallowed. ## Who follows robots.txt and who does not? Search engines and other [good bots](https://stopbots.io/learn/bots/good-bots-vs-bad-bots.md) follow it. So do most AI crawlers that publish documentation, including OpenAI's GPTBot, Anthropic's ClaudeBot and Amazon's Amazonbot. Some AI fetchers that load a page because a person asked an assistant treat robots.txt differently. OpenAI says robots.txt rules "may not apply" to ChatGPT-User, and Perplexity says Perplexity-User "generally ignores robots.txt rules". [What are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) lists each operator's stated position. Scrapers that want your prices or content have no reason to read the file, and many never request it. A scraper that does read it gets a list of the paths you care about. ## Why robots.txt can make scraping easier The file is public. Anyone can open `/robots.txt` on your site, and the RFC warns that "listing paths in the robots.txt file exposes them publicly and thus makes the paths discoverable". A line such as `Disallow: /internal-reports/` tells every visitor that the directory exists. Put private content behind authentication and leave it out of robots.txt. robots.txt also does not keep pages out of Google's index. Google can index a disallowed URL without its content when other pages link to it. To keep a page out of search results, allow crawling and add a `noindex` rule, as [Google's documentation](https://developers.google.com/search/docs/crawling-indexing/block-indexing) explains. ## A correct robots.txt example ```txt User-agent: * Disallow: /cart/ Disallow: /checkout/ Disallow: /search Allow: /search/help Disallow: /*.pdf$ User-agent: GPTBot User-agent: CCBot Disallow: / Sitemap: https://www.example.com/sitemap.xml ``` What each part does: - `Disallow: /search` is a prefix, so it also blocks `/search?q=shoes` and `/searching`. - `Allow: /search/help` is longer than `/search`, so it wins and the help page stays crawlable. - `Disallow: /*.pdf$` blocks URLs that end in `.pdf`. Because `$` anchors the end, `/report.pdf?v=2` is not blocked. - The two `User-agent` lines share one group, so GPTBot and CCBot are both blocked from the whole site. - `Sitemap` is outside the core RFC 9309 rules, but the RFC allows extra records and the major search engines read this one. ## The group mistake that opens your site A crawler that finds a group naming it ignores the `*` group completely, so none of those rules carry over. ```txt User-agent: * Disallow: /search Disallow: /cart/ User-agent: GPTBot Disallow: /reports/ ``` Here GPTBot may crawl `/search` and `/cart/`, because its own group only mentions `/reports/`. Repeat every rule you want a named crawler to follow inside its own group. After a change, check the robots.txt report in Google Search Console, which shows the file Google fetched and any problems it found parsing it. ## What stops scrapers instead? robots.txt manages crawlers that choose to cooperate. For the rest you need controls on the server: rate limits, bot detection and a login in front of the data that matters most. [How to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md) covers those layers, and [how to block AI crawlers](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) turns robots.txt rules for AI bots into server rules that return 403. ## Common questions ### Does robots.txt block AI crawlers? It blocks the AI crawlers that choose to honour it, which includes the training crawlers of the large AI companies. It has no effect on scrapers that hide their identity, and some fetchers that act on a user's request may not apply it. ### Is ignoring robots.txt illegal? robots.txt is a voluntary convention, so ignoring it is rarely unlawful on its own. It can still count in a dispute as evidence of what the site owner permitted, and in the EU a machine-readable opt-out affects whether the text and data mining exception applies. ### How long until robots.txt changes take effect? Up to about a day for crawlers that follow RFC 9309, which tells them not to rely on a cached copy for more than 24 hours. OpenAI and Meta give a similar figure for their crawlers. Scrapers that never read the file are unaffected. ## Related - [How to block AI crawlers: robots.txt, Cloudflare and nginx](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) - [How to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md) - [What are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) - [Does bot traffic affect SEO?](https://stopbots.io/learn/bots/does-bot-traffic-affect-seo.md) # What are AI crawlers? > AI crawlers are bots run by AI companies that fetch web pages for their models and assistants. There are three kinds: training crawlers that collect content for model training, search crawlers that index pages so assistants can cite them, and fetchers that load a page when a person asks an assistant about it. Each kind uses its own user agent token. Category: Scraping and AI crawlers. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/what-are-ai-crawlers/ AI companies run several bots, each with its own name and purpose, and the purpose decides whether you want it on your site. One company may run a bot that collects training data, another that builds a search index, and a third that fetches a page only when a user asks. Blocking one of them leaves the others untouched. ## What are the three kinds of AI crawler? Training crawlers collect pages in bulk to build datasets for training models. They crawl broadly on their own schedule and send no visitors back. GPTBot and ClaudeBot are examples. CCBot belongs to Common Crawl, a non-profit that publishes an open archive of the web which others use, including to build training datasets. Bytespider is ByteDance's crawler and appears on common AI block lists, including the one Cloudflare's managed robots.txt writes. Search and retrieval crawlers index pages so that an AI assistant can find and cite them when it answers. OAI-SearchBot (for ChatGPT search), Claude-SearchBot and PerplexityBot are in this group. Being in their index is what makes your pages eligible to appear as cited, linked sources. User-triggered fetchers load a single page because a person asked an assistant something that needs it, such as summarising a URL they pasted. ChatGPT-User, Claude-User and Perplexity-User work this way. Their traffic follows user demand, so it rises when a page is widely shared. Two names are not crawlers at all. Google-Extended and Applebot-Extended are tokens you use in robots.txt to control whether content that Googlebot or Applebot already crawled may be used for AI training. Neither sends requests of its own. ## Which AI crawler user agents should you know? | Token | Operator | Kind | robots.txt, as the operator describes it | |---|---|---|---| | GPTBot | OpenAI | Training | Honoured, and disallowing it opts out of training | | OAI-SearchBot | OpenAI | Search index for ChatGPT search | Honoured, and it is the token for search opt-out | | ChatGPT-User | OpenAI | User-triggered | Rules "may not apply" | | ClaudeBot | Anthropic | Training | Honoured | | Claude-SearchBot | Anthropic | Search index | Honoured | | Claude-User | Anthropic | User-triggered | Honoured | | PerplexityBot | Perplexity | Search index, not used for training | Managed through robots.txt | | Perplexity-User | Perplexity | User-triggered | "Generally ignores" robots.txt | | Google-Extended | Google | Control token for Gemini training and grounding | robots.txt token only, no crawler of its own | | Applebot-Extended | Apple | Control token for Apple model training | robots.txt token only, does not crawl | | CCBot | Common Crawl | Open web archive | Documents a robots.txt block | | meta-externalagent | Meta | Training and indexing | Managed through robots.txt | | meta-externalfetcher | Meta | User-triggered | "May bypass" robots.txt | | Amazonbot | Amazon | Product improvement, may be used for training | Honoured | | Amzn-User | Amazon | User-triggered | "May not follow all" directives | ## How are AI crawlers different from search engine crawlers? A search engine crawler feeds an index that sends visitors back through result links. Training crawlers send nothing back, and what they have already collected stays in existing models after you block them, because blocking only affects future collection. AI search crawlers sit in between: they can bring citations and some referral traffic, depending on how often the assistant links out. User-triggered fetchers act for one person at a time, much like a browser visit, but that person reads the assistant's summary and may never see your page. Load differs too. Heavy crawling by training bots shows up as bandwidth and origin load, which matters most on small sites with dynamic pages. How AI crawlers compare with other automated traffic is covered in [good bots vs bad bots](https://stopbots.io/learn/bots/good-bots-vs-bad-bots.md). ## How do you find AI crawlers in your logs? This counts requests per AI token in an nginx or Apache access log in the combined format, where the user agent is the sixth field when a line is split on double quotes: ```bash awk -F'"' '{print $6}' /var/log/nginx/access.log \ | grep -oE 'GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-User|Claude-SearchBot|PerplexityBot|Perplexity-User|CCBot|Bytespider|meta-externalagent|Amazonbot' \ | sort | uniq -c | sort -rn ``` The match is case-sensitive on purpose, so the lowercase bot URLs inside the user agent strings are not counted twice. A user agent is only a claim, and anyone can send `GPTBot`. Confirm the source IP against the operator's published ranges before you trust it, as described in [how to verify good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md). AI agents that drive a real browser often send no token at all, which [AI agents vs bots](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) covers. ## Why the list keeps changing Operators add new agents, split one bot into several by purpose, and change how they describe robots.txt support. Check each operator's own page before you write rules: [OpenAI](https://developers.openai.com/api/docs/bots), [Anthropic](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler), [Google](https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers), [Perplexity](https://docs.perplexity.ai/guides/bots), [Meta](https://developers.facebook.com/docs/sharing/webmasters/web-crawlers), [Amazon](https://developer.amazon.com/amazonbot), [Apple](https://support.apple.com/en-us/119829) and [Common Crawl](https://commoncrawl.org/ccbot). Community lists such as [ai.robots.txt](https://github.com/ai-robots-txt/ai.robots.txt) track new names as they appear. Which kinds to allow is covered in [should you block AI crawlers?](https://stopbots.io/learn/scraping/should-you-block-ai-crawlers.md), and the configs are in [how to block AI crawlers](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md). ## Common questions ### What is AI bot traffic? It is traffic from automated clients that AI companies run or that act for AI assistants: training crawlers, AI search crawlers, user-triggered fetchers and agents that drive browsers. Analytics tools that rely on JavaScript miss most of it, so measure it in server or CDN logs. ### Do AI crawlers respect robots.txt? The major training and search crawlers say they do. Fetchers that act on a user's request vary by operator, and scrapers that collect data for AI without identifying themselves ignore it, so anything you must enforce needs a server-side rule. ### Does blocking Google-Extended remove my site from Google Search? No. Google states that Google-Extended does not affect inclusion in Google Search and is not a ranking signal. AI features inside Search, such as AI Overviews, follow the normal Search controls like nosnippet and noindex. ## Related - [Should you block AI crawlers?](https://stopbots.io/learn/scraping/should-you-block-ai-crawlers.md) - [How to block AI crawlers: robots.txt, Cloudflare and nginx](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) - [AI agents vs bots: how to treat agentic traffic](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) - [Good bots vs bad bots: how to tell them apart](https://stopbots.io/learn/bots/good-bots-vs-bad-bots.md) # Should you block AI crawlers? > It depends on what your content earns you. Training crawlers take content and send no visitors, AI search crawlers can bring citations and referrals, and user-triggered fetchers act for a real person. A common middle path is to block training crawlers and allow search crawlers and user fetchers. Publishers often block more, while shops and documentation sites usually allow most. Category: Scraping and AI crawlers. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/should-you-block-ai-crawlers/ Blocking AI crawlers is three separate decisions, one for each kind of bot, and each one trades something different. Work out the trade first, then apply it to your type of site. ## What do you give up by blocking AI crawlers? - Blocking training crawlers (GPTBot, ClaudeBot, CCBot, meta-externalagent, and the Google-Extended and Applebot-Extended tokens) keeps your future content out of new training data from those operators. It does not remove what they collected before, and it costs no search traffic. Google states that Google-Extended "does not impact a site's inclusion in Google Search nor is it used as a ranking signal". - Blocking AI search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) removes you from those assistants' search answers and citations. OpenAI says sites that opt out of OAI-SearchBot will not appear in ChatGPT search answers, though ChatGPT can still show a plain link to them. - Blocking user-triggered fetchers (ChatGPT-User, Claude-User, Perplexity-User) stops an assistant from reading your page for a person who asked about it. Some of these fetchers may not follow robots.txt, so this block usually needs a server rule. - Blocking Googlebot removes you from Google Search entirely. Google says its AI features in Search, such as AI Overviews, follow the normal Search controls (`nosnippet`, `max-snippet`, `noindex`), and it points to Google-Extended only for training and grounding in its other systems. Server load is a separate question. If the problem is bandwidth or a slow origin, a rate limit on the heavy crawler may fix it without giving up any visibility. ## How do different sites decide? These are starting positions. Adjust them with your own traffic and referral data. | Site type | Training crawlers | AI search crawlers | User-triggered fetchers | |---|---|---|---| | News or content publisher | Block, unless you have a licensing deal | Allow if citations bring readers | Allow on public pages | | Ecommerce shop | Your choice, little at stake | Allow | Allow | | SaaS documentation | Allow | Allow | Allow | | Forum or community | Block, and tell members | Allow | Allow on public threads | ## Should publishers block AI crawlers? For a publisher the content is the product. Training crawlers take articles and give nothing back, and a summary in an AI answer can replace the visit that would have shown your ads or your paywall. Blocking training crawlers is the usual starting point, and some publishers license their archives to AI companies instead. AI search crawlers are a closer call, so watch referral traffic from AI assistant domains in your analytics and decide whether it justifies the access. A user-triggered fetcher reads whatever your server returns. If paywalled text is in the HTML and only hidden with CSS or JavaScript, the fetcher can read it. Send paywalled text only after the server has checked the subscription. ## Should ecommerce sites block AI crawlers? Product pages gain from appearing in AI answers and shopping assistants, and a model trained on a product description costs a shop little. Allow search crawlers and user fetchers, and decide on training crawlers by whether your descriptions and photos are original work you want to protect. The larger threats on a shop are undeclared price scrapers and bots that buy stock, which no user agent rule will catch; see [how to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md). AI shopping agents that browse and buy for a person raise separate questions, covered in [AI agents vs bots](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) and in Kairal's guide on whether to [allow or block AI shopping agents](https://www.kairal.io/blog/ai-shopping-agents-allow-block/). ## Should SaaS companies block AI crawlers from their docs? Documentation that assistants have read, and can cite, helps developers use your product. For most public docs the sensible default is to allow every kind of AI crawler. Keep the app, dashboards and account pages behind authentication, where no crawler should reach them anyway. ## Should forums and communities block AI crawlers? The content belongs to members, and they may object to it being used for training. Posts often contain personal data, which brings GDPR into the decision for communities with EU members. A full crawl of old threads can also be expensive to serve. A reasonable setup is to block training crawlers, allow search crawlers so threads stay findable, and state in the community guidelines what you allow. ## How to block training but allow AI search ```txt User-agent: GPTBot User-agent: ClaudeBot User-agent: CCBot User-agent: Bytespider User-agent: meta-externalagent User-agent: Google-Extended User-agent: Applebot-Extended Disallow: / User-agent: * Disallow: /cart/ Disallow: /account/ ``` OAI-SearchBot, Claude-SearchBot, PerplexityBot and the user-triggered fetchers have no group of their own here, so they follow the `*` group. Amazonbot is left out because Amazon uses it to improve its products in general as well as for training; add it if you want to opt out of both. This file only binds crawlers that honour robots.txt. [How to block AI crawlers](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) adds the nginx and Cloudflare rules that enforce it, and [what are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) lists every token. ## Check your decision against your logs Count AI crawler requests per token each month and compare them with referral visits from AI assistants in your analytics. A crawler that uses a lot of bandwidth and brings no referrals is a candidate for blocking or rate limiting. Revisit the decision when an operator announces a new bot or changes what an existing one is used for. ## Common questions ### Should I block GPTBot? Block it if you do not want OpenAI to use your future content for training. ChatGPT search relies on OAI-SearchBot, so you can block GPTBot and still be eligible for citations in ChatGPT answers. ### Do websites block AI crawlers? Many news publishers do. You can check any site by opening its /robots.txt and looking for groups that name GPTBot, ClaudeBot or CCBot. Whether those crawlers comply is a separate question that the file cannot answer. ### Will blocking AI crawlers hurt my SEO? Blocking training tokens such as GPTBot, ClaudeBot or Google-Extended does not change Google or Bing rankings. Blocking Googlebot or Bingbot does, and a server rule that matches too broadly can catch them by accident, so test every pattern against their user agents. ## Related - [What are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) - [How to block AI crawlers: robots.txt, Cloudflare and nginx](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) - [AI agents vs bots: how to treat agentic traffic](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) - [Does bot traffic affect SEO?](https://stopbots.io/learn/bots/does-bot-traffic-affect-seo.md) # How to block AI crawlers: robots.txt, Cloudflare and nginx > Use three layers. A robots.txt file asks AI crawlers that honour it to stay away. A server or CDN rule returns 403 to crawlers that send their user agent token, such as GPTBot or ClaudeBot. Bot detection handles scrapers that pose as normal browsers, because user agent rules only stop crawlers that identify themselves. Category: Scraping and AI crawlers. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/how-to-block-ai-crawlers/ robots.txt, a server or CDN rule and bot detection each catch traffic the previous layer misses. Decide first which kinds of AI bot you want to keep out: training crawlers, AI search crawlers, user-triggered fetchers, or all of them. [Should you block AI crawlers?](https://stopbots.io/learn/scraping/should-you-block-ai-crawlers.md) covers that choice, and [what are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) lists the tokens. ## How to block AI crawlers with robots.txt This file blocks the main training crawlers and, in a second group, AI search crawlers and user-triggered fetchers. Delete the second group if you want to stay visible in AI search answers. ```txt # AI training crawlers and control tokens User-agent: GPTBot User-agent: ClaudeBot User-agent: CCBot User-agent: Bytespider User-agent: meta-externalagent User-agent: Amazonbot User-agent: Google-Extended User-agent: Applebot-Extended Disallow: / # AI search crawlers and user-triggered fetchers User-agent: OAI-SearchBot User-agent: ChatGPT-User User-agent: Claude-SearchBot User-agent: Claude-User User-agent: PerplexityBot User-agent: Perplexity-User Disallow: / User-agent: * Disallow: /cart/ Disallow: /account/ Sitemap: https://www.example.com/sitemap.xml ``` Token matching is case-insensitive, and several `User-agent` lines can share one group. A crawler that finds its own group ignores the `*` group, so copy any `*` rules it should still follow into its group. Every subdomain needs its own file, and crawlers can take up to 24 hours to pick up a change. ## How to block AI crawlers in nginx Put the `map` in the `http` block. It sets a variable to 1 when the user agent contains one of the tokens, ignoring case: ```nginx map $http_user_agent $block_ai_crawler { default 0; # Training crawlers ~*gptbot 1; ~*claudebot 1; ~*ccbot 1; ~*bytespider 1; ~*meta-externalagent 1; ~*amazonbot 1; # AI search crawlers and user-triggered fetchers ~*oai-searchbot 1; ~*chatgpt-user 1; ~*claude-searchbot 1; ~*claude-user 1; ~*perplexitybot 1; ~*perplexity-user 1; ~*meta-externalfetcher 1; } server { listen 80; server_name example.com; root /var/www/example; location = /robots.txt { try_files $uri =404; } location / { if ($block_ai_crawler) { return 403; } try_files $uri $uri/ =404; } } ``` The check sits inside `location /` so that `/robots.txt` stays readable. Under RFC 9309, a crawler that gets a 4xx response for robots.txt may treat the whole site as allowed and keep requesting pages. Anthropic gives a similar warning about IP blocks: they stop its bots from reading your robots.txt, so the opt-out may not hold. If you have other `location` blocks that serve pages, add the same `if` to each. Delete the second group of map lines if you want to stay in AI search, mirroring the robots.txt file. For ChatGPT-User, Perplexity-User and meta-externalfetcher, whose operators say they may not follow robots.txt, a server rule like this is the only reliable block. Run `nginx -t` before reloading. Apache and more nginx patterns are in [how to block bots with nginx and Apache](https://stopbots.io/learn/implementation/block-bots-with-nginx-and-apache.md). ## How to block AI crawlers with Cloudflare Cloudflare has a managed option under Security settings, filtered to bot traffic. The setting it currently calls AI Crawler and Agent access policies lets you block or allow AI bots separately for search, agent and training behaviour, and the policy applies both to verified bots and to unverified bots that match them. A related toggle, Bot Preference Sync, writes matching lines into your robots.txt. Cloudflare renames these settings from time to time, so follow the [current documentation](https://developers.cloudflare.com/bots/additional-configurations/block-ai-bots/). [AI Crawl Control](https://developers.cloudflare.com/ai-crawl-control/) shows which AI crawlers visit and whether they follow your robots.txt. For your own list, create a custom rule with the action Block and this expression: ```txt (lower(http.user_agent) contains "gptbot" or lower(http.user_agent) contains "claudebot" or lower(http.user_agent) contains "ccbot" or lower(http.user_agent) contains "bytespider" or lower(http.user_agent) contains "meta-externalagent" or lower(http.user_agent) contains "amazonbot") and http.request.uri.path ne "/robots.txt" ``` This expression covers the training crawlers. To block AI search crawlers and user-triggered fetchers as well, add their tokens from the nginx map in the same lowercase form. `contains` is case-sensitive, which is why the expression lowercases the user agent first. More Cloudflare options are in [how to block bots with Cloudflare](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md). ## How to block AI crawlers on WordPress WordPress serves a generated robots.txt when there is no file on disk. Upload your own `robots.txt` to the web root, or edit it through your SEO plugin's file editor if it has one. That covers only the robots.txt layer, so add the nginx or Apache rule, or a CDN rule, for enforcement. ## Why user agent rules are not enough A user agent rule stops only crawlers that announce themselves. A scraper collecting content for an AI dataset can send a normal Chrome user agent, run a real browser and rotate through residential IP addresses, and none of the rules above will see it. Catching that traffic needs detection based on TLS and browser fingerprints, behaviour and network signals, as described in [can web scraping be detected?](https://stopbots.io/learn/scraping/can-web-scraping-be-detected.md). The reverse problem matters too. A request that says `GPTBot` may not come from OpenAI. If you allow some AI crawlers and block others, confirm the source IP against the operator's published list, as shown in [how to verify good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md). ## Check that the block works ```bash curl -s -o /dev/null -w "%{http_code}\n" -A "GPTBot" https://www.example.com/ curl -s -o /dev/null -w "%{http_code}\n" -A "GPTBot" https://www.example.com/robots.txt ``` The first command should print 403 and the second 200. After a day, count 403 responses per token in your access logs. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [ai.robots.txt](https://github.com/ai-robots-txt/ai.robots.txt) is an open-source, MIT-licensed list of AI crawlers with a ready robots.txt and matching configs for Apache, nginx, Caddy, HAProxy and lighttpd, enough for most small sites. - [Cloudflare AI Crawl Control](https://developers.cloudflare.com/ai-crawl-control/) shows which AI crawlers reach a site on Cloudflare and lets you allow or block each one, on all Cloudflare plans. - [Known Agents](https://knownagents.com/) keeps a directory of AI agents and bots and offers an automatically updated robots.txt and agent analytics, with a free tier. - [Anubis](https://github.com/TecharoHQ/anubis) is an open-source proxy that asks browsers to solve a small proof-of-work challenge before serving pages, which slows heavy scrapers that hide their identity. - [Kairal Agent Traffic Intelligence](https://www.kairal.io/agent-traffic-intelligence/) gives visibility and control over AI agents and crawlers, alongside detection for scrapers that do not identify themselves. ## Common questions ### Does Cloudflare block AI crawlers? It can, through its AI crawler policies or a custom rule. Whether blocking is already on depends on how and when your zone was set up, so open the bot traffic settings in your dashboard and check the current value for search, agent and training crawlers. ### Can I block AI crawlers with .htaccess? Yes, on Apache with mod_rewrite. Add a RewriteCond on %{HTTP_USER_AGENT} that matches the tokens with the [NC] flag for case-insensitive matching, followed by RewriteRule ^ - [F], which returns 403 Forbidden. ### Does blocking AI crawlers remove my content from existing AI models? No. Blocking stops future collection by crawlers that respect it. Content collected before the block stays in datasets and models already built, and removing it depends on each operator's own process. ## Related - [Should you block AI crawlers?](https://stopbots.io/learn/scraping/should-you-block-ai-crawlers.md) - [What are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) - [How to block bots with nginx and Apache](https://stopbots.io/learn/implementation/block-bots-with-nginx-and-apache.md) - [How to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md) # How to verify Googlebot and other good bots > Do not trust the User-Agent header, because any client can claim to be Googlebot. Verify the source instead: run a reverse DNS lookup on the IP, check that the hostname ends in the operator's domain, such as googlebot.com or search.msn.com, then confirm the hostname resolves back to the same IP. For speed, match IPs against the operator's published range files. Category: Scraping and AI crawlers. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/how-to-verify-good-bots/ Scrapers often send a Googlebot user agent, because many sites exempt search engines from rate limits and challenges. Common Crawl's own documentation notes that other crawlers falsely identify themselves as CCBot. A rule that trusts the User-Agent header gives those scrapers the same access as the real crawler. Verify where the request comes from instead, using DNS, published IP ranges or, where the operator supports it, a cryptographic signature. ## Why the User-Agent header proves nothing The User-Agent is a header the client writes itself, and any HTTP client can set it to any value. The source IP address is harder to fake for a full HTTP request, because the TCP connection only completes if replies can reach that address. Verification ties the request to the network that owns the IP. Reverse DNS maps an IP address back to a hostname through a PTR record. Whoever controls an IP block sets its PTR records, so anyone can make their own server's IP resolve to a name like `crawl-1-2-3-4.googlebot.com`. The forward lookup closes that gap: only Google controls DNS for `googlebot.com`, so if that name resolves back to the same IP, the IP belongs to Google. ## How to verify Googlebot with reverse and forward DNS Google's [verification steps](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot) are: 1. Run a reverse DNS lookup on the IP address from your logs. 2. Check that the hostname is in `googlebot.com`, `google.com` or `googleusercontent.com`. 3. Run a forward DNS lookup on that hostname. 4. Check that it returns the original IP address. ```bash $ 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 hostname also tells you which kind of Google client you are dealing with. Googlebot and the other common crawlers resolve to `crawl-...googlebot.com` or `geo-crawl-...geo.googlebot.com`. Special-case crawlers such as AdsBot resolve to `rate-limited-proxy-...google.com`. User-triggered fetchers resolve to `google-proxy-...google.com` or `...gae.googleusercontent.com`. Treat `googleusercontent.com` with care. Virtual machines rented by Google Cloud customers also get reverse names in that domain, so accept it only when the IP is also in Google's user-triggered fetchers list. ## How to verify Bingbot Bingbot uses the same method with the domain `search.msn.com`: ```bash $ host 157.55.39.1 1.39.55.157.in-addr.arpa domain name pointer msnbot-157-55-39-1.search.msn.com. $ host msnbot-157-55-39-1.search.msn.com msnbot-157-55-39-1.search.msn.com has address 157.55.39.1 ``` ## A script to verify Google and Bing crawlers ```bash #!/usr/bin/env bash # Usage: verify-crawler.sh ip="$1" name=$(host "$ip" | awk '/domain name pointer/ {print $NF; exit}') if [ -z "$name" ]; then echo "$ip: no reverse DNS record, not a verified crawler" exit 1 fi case "$name" in *.googlebot.com.|*.google.com.) operator="Google" ;; *.search.msn.com.) operator="Bing" ;; *) echo "$ip: reverse DNS is $name, not a Google or Bing crawler" exit 1 ;; esac if host "$name" | awk '/has (IPv6 )?address/ {print $NF}' | grep -qxF "$ip"; then echo "$ip: verified $operator crawler ($name)" else echo "$ip: $name does not resolve back to $ip, treat as spoofed" exit 1 fi ``` The `case` patterns start with a dot and end with the trailing dot that `host` prints, so a hostname such as `crawl.evilgooglebot.com` does not match. The forward check uses `grep -x` for an exact line match, so `66.249.66.1` does not accept `66.249.66.10`. It handles IPv4 and IPv6, and leaves out `googleusercontent.com` for the reason above. ## Use published IP range files for speed Two DNS lookups per request are too slow for a busy site. Most operators publish JSON files of their ranges in CIDR notation, a network written as an address and a prefix length, such as `192.178.4.0/27`: - Google: [common crawlers](https://developers.google.com/static/crawling/ipranges/common-crawlers.json), [special-case crawlers](https://developers.google.com/static/crawling/ipranges/special-crawlers.json) and [user-triggered fetchers](https://developers.google.com/static/crawling/ipranges/user-triggered-fetchers.json) - Bing: [bingbot.json](https://www.bing.com/toolbox/bingbot.json) - OpenAI: [GPTBot](https://openai.com/gptbot.json), [OAI-SearchBot](https://openai.com/searchbot.json) and [ChatGPT-User](https://openai.com/chatgpt-user.json) - Anthropic: [bots.json](https://claude.com/crawling/bots.json) - Perplexity: [PerplexityBot](https://www.perplexity.ai/perplexitybot.json) and [Perplexity-User](https://www.perplexity.ai/perplexity-user.json) - Apple: [applebot.json](https://search.developer.apple.com/applebot.json) - Common Crawl: [ccbot.json](https://index.commoncrawl.org/ccbot.json) Amazon lists Amazonbot's addresses through its [Amazonbot page](https://developer.amazon.com/amazonbot). These files share one shape, a `prefixes` array of `ipv4Prefix` or `ipv6Prefix` entries, so one loader handles them all. This Node.js module loads three of them into the built-in `BlockList`: ```js import { BlockList, isIPv6 } from "node:net"; const SOURCES = { Googlebot: "https://developers.google.com/static/crawling/ipranges/common-crawlers.json", Bingbot: "https://www.bing.com/toolbox/bingbot.json", GPTBot: "https://openai.com/gptbot.json", }; async function loadRanges(url) { const res = await fetch(url); if (!res.ok) throw new Error(`${url} returned ${res.status}`); const { prefixes } = await res.json(); const list = new BlockList(); for (const p of prefixes) { const cidr = p.ipv4Prefix ?? p.ipv6Prefix; const [network, bits] = cidr.split("/"); list.addSubnet(network, Number(bits), p.ipv4Prefix ? "ipv4" : "ipv6"); } return list; } const lists = Object.fromEntries( await Promise.all( Object.entries(SOURCES).map(async ([bot, url]) => [bot, await loadRanges(url)]) ) ); export function isFromBot(bot, ip) { return lists[bot]?.check(ip, isIPv6(ip) ? "ipv6" : "ipv4") ?? false; } ``` Call `isFromBot("Googlebot", ip)` only for requests whose user agent claims to be Googlebot, and reload the lists on a schedule. If your site sits behind a CDN, use the client IP the CDN passes on, not the CDN's own address. The AI crawlers behind these lists are described in [what are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md). ## Web Bot Auth: signed requests from bots and agents IP checks work poorly for agents that run in cloud browsers on shared infrastructure, and for operators that cannot keep a stable list. Web Bot Auth identifies the bot with a key instead. The bot signs each request using HTTP Message Signatures ([RFC 9421](https://www.rfc-editor.org/rfc/rfc9421)) and sends three headers: `Signature`, `Signature-Input`, and `Signature-Agent`, which holds the URL of the operator's key directory at `/.well-known/http-message-signatures-directory`. The site, or its CDN, fetches the public key and checks the signature. A valid signature proves the request came from whoever holds the private key, whatever IP address it used. HTTP Message Signatures is a published RFC, but the parts specific to bots, such as the key directory format and how a bot attaches its identity, are still Internet-Drafts. The IETF has chartered a [Web Bot Auth working group](https://datatracker.ietf.org/wg/webbotauth/about/) to turn them into a standard. Some operators already sign: OpenAI [documents](https://help.openai.com/en/articles/11845367-chatgpt-agent-allowlisting) that its ChatGPT cloud browser signs requests with `Signature-Agent: "https://chatgpt.com"`, and it names Cloudflare, Akamai, HUMAN and Vercel as services that verify those signatures automatically. Most crawlers do not sign yet, so keep DNS and IP checks as the default and use signatures as a stronger check where they exist. [AI agents vs bots](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) covers how signed agents fit into a wider policy. ## What to do with the result - If the crawler is verified, skip challenges and give it a generous rate limit. Google slows its crawling when your server returns 429, 500 or 503 responses, but long runs of these errors can lead it to drop URLs from its index, so set the limit well above its normal crawl rate. - If a client claims to be a known bot and fails verification, treat it as spoofed. Block or challenge it and log the IP. - If a client makes no such claim, run it through normal bot detection. Cache each verification result per IP for about 24 hours as a starting point. Before you deploy a rule that could touch search crawlers, compare Search Console crawl stats for the week before and after. Cloudflare users can skip the DNS work with its verified bot field, described in [how to block bots with Cloudflare](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare verified bots](https://developers.cloudflare.com/bots/concepts/bot/verified-bots/) is a directory of known good bots that Cloudflare verifies, including through Web Bot Auth, and exposes to rules through the `cf.client.bot` field. - [AWS WAF Bot Control](https://aws.amazon.com/waf/features/bot-control/) verifies common self-identifying bots such as search engine crawlers and labels them, so rules can separate real crawlers from impostors. - [Akamai Bot Manager](https://www.akamai.com/products/bot-manager) keeps a directory of known bots for Akamai customers and, according to OpenAI, verifies signed ChatGPT cloud browser requests. ## Common questions ### Does Google publish Googlebot IP addresses? Yes. Google publishes JSON files of crawler ranges, split into common crawlers, special-case crawlers and user-triggered fetchers. Its broader list of all Google IP addresses also covers other services, so a match against that list does not prove a request came from a crawler. ### Should I block requests that claim to be Googlebot but fail verification? Block or challenge them. A real Googlebot request passes the DNS check, so a clear failure, as opposed to a DNS timeout, means the client lied about who it is, which is a strong reason to distrust the rest of its traffic. ### How often should I refresh crawler IP lists? Daily is a safe starting point. Most of these files carry a creationTime field, so you can skip the update when it has not changed, and keep the last good copy if a download fails. ## Related - [Good bots vs bad bots: how to tell them apart](https://stopbots.io/learn/bots/good-bots-vs-bad-bots.md) - [How to block AI crawlers: robots.txt, Cloudflare and nginx](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) - [AI agents vs bots: how to treat agentic traffic](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) - [How to block bots with Cloudflare](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) # AI agents vs bots: how to treat agentic traffic > An AI agent is software that browses, compares or buys on behalf of a real person, often in a real or cloud browser. Technically it is a bot, so judge it by what it does. Identify agents that declare themselves, verify signatures or IP ranges where the operator supports it, judge each session by behaviour and intent, and set separate rules for content, login, signup and checkout. Category: Scraping and AI crawlers. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/scraping/ai-agents-vs-bots/ When someone asks an assistant to compare three hotels and book the cheapest, the requests come from software, but a real person wants the result and may pay you. Blocking all automation turns that customer away. Allowing all of it lets in the same tools that power scraping, scalping and fraud. Agent traffic needs its own policy, built on who the agent is, what it is doing and which part of your site it is touching. ## What counts as agentic traffic? - User-triggered fetchers load one page so an assistant can answer a question. ChatGPT-User, Claude-User and Perplexity-User identify themselves with these tokens, described in [what are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md). - Cloud browser agents run a full browser on the operator's servers and click through pages for the user, filling in forms and adding items to a cart. OpenAI's ChatGPT cloud browser is one documented example, and it signs its requests. - Agentic browsers on the user's own device act with the person's cookies and logged-in sessions. To your server they look like that person's browser, because they are. - Shopping agents are any of the above when they search for products, compare prices and complete a checkout, sometimes with payment details the user has delegated. ## How is a useful agent different from abusive automation? Read the table as tendencies. A verified agent can still be pointed at abuse, and an unknown one may be harmless. | Signal | Useful agent | Abusive automation | |---|---|---| | Who it acts for | One person with one task | An operator running many tasks or accounts | | Volume | About one person's session | Many sessions, often in parallel | | Identity | Often declared or signed | Hidden behind browser user agents and proxies | | What it requests | The pages the task needs | The whole catalogue, login, signup or limited stock | | Accounts | The user's own | Many new or stolen accounts | | Payments | One card, normal outcomes | Many cards, high decline rates | ## Identify agents that declare themselves Start with what the agent tells you. Fetchers send a user agent token. Signed agents use Web Bot Auth, which builds on HTTP Message Signatures ([RFC 9421](https://www.rfc-editor.org/rfc/rfc9421)): each request carries `Signature`, `Signature-Input` and `Signature-Agent` headers, and the `Signature-Agent` value points to the operator's public key directory. OpenAI [documents](https://help.openai.com/en/articles/11845367-chatgpt-agent-allowlisting) that its cloud browser sends `Signature-Agent: "https://chatgpt.com"` with keys published at `https://chatgpt.com/.well-known/http-message-signatures-directory`. Store the declared identity as a field on the session, next to IP, device and account. You will need it later to change policy for one operator without touching the rest. Agents that run inside the user's own browser often send nothing distinctive, so a missing declaration tells you little. ## Verify where the operator supports it Rank the evidence. A valid signature is strongest, an IP address inside the operator's published range comes next, and a user agent token alone is only a claim. [How to verify good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md) shows the DNS and IP checks. If you sit behind a CDN that verifies signatures, use its result instead of checking yourself. A client that claims a known agent and fails verification is spoofing, so block or challenge it. A client that makes no claim is simply unverified: judge it on behaviour like any other session. ## Judge each session by behaviour and intent Verification tells you who runs the agent, but the user decides what it does, and a verified agent can be told to buy 40 pairs of trainers or test a list of cards. Watch the same signals you use for any automation: - Purchases, signups or messages per account and per payment card - Many accounts driven with the same pattern from the same agent operator - Checkout attempts per minute and the share that are declined - How much of the catalogue a session covers - Repeated attempts at limited-stock items as soon as they go on sale Treat an agent acting for a user as that user. The per-account and per-card limits that apply to people should apply to their agents, so an agent cannot be used to get around them. Card testing through an agent looks the same at the payment step as card testing by a script; see [what is card testing?](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md). ## Set policy per endpoint - Public content and product pages: allow declared fetchers and verified agents, with a rate limit per agent identity. - Search and listings: allow at volumes that fit one person's task, and challenge deep pagination. - Login: keep MFA and new-device checks. An agent logging in from a cloud browser is a new device and should be treated as one. - Signup: challenge automation. A person's agent may create one account for them, but bulk signups are farming; [how to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) covers the controls. - Checkout: allow verified agents and keep your normal fraud checks and card authentication. An agent's purchase should pass the same checks as the user's. - Limited-stock drops, tickets and appointments: set per-person limits and decide explicitly whether agents may take part, since a buying agent and a scalper bot look alike here. [How to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) has the options. - Data that agents need in bulk: offer an official API with keys and terms, so agents have a better route than driving your interface. Kairal also has a guide on whether to [allow or block AI shopping agents](https://www.kairal.io/blog/ai-shopping-agents-allow-block/). ## What is still unsettled? - Identity standards are drafts. RFC 9421 is final, but the bot-specific parts of Web Bot Auth are Internet-Drafts, and the IETF [Web Bot Auth working group](https://datatracker.ietf.org/wg/webbotauth/about/) is still producing the standard. Expect details to change. - No shared method tells a site which person an agent acts for or what that person authorised. The working group's charter leaves authentication of the end user out of scope. - Operators disagree on whether robots.txt applies to fetches a user triggers. OpenAI says its rules "may not apply" to ChatGPT-User, Perplexity says Perplexity-User "generally ignores" them, and Anthropic says its bots honour them. - Preferences about how content may be used by AI have no common vocabulary yet. The IETF [AIPREF working group](https://datatracker.ietf.org/wg/aipref/about/) is drafting one. - Card networks, payment providers and AI companies have each published their own protocols for checkout started by an agent, and none of them is a shared standard. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare](https://developers.cloudflare.com/bots/concepts/bot/verified-bots/) verifies signed agents and verified bots, and its AI crawler policies let you allow or block agents separately from training and search crawlers. - [Kairal Agent Traffic Intelligence](https://www.kairal.io/agent-traffic-intelligence/) gives visibility and control over AI agents and crawlers, with protection set per endpoint such as login, signup and checkout. - [HUMAN Security](https://www.humansecurity.com/) is a bot and fraud protection platform that, according to OpenAI, recognises and verifies signed ChatGPT cloud browser requests. - [Akamai Bot Manager](https://www.akamai.com/products/bot-manager) classifies known bots and agents for Akamai customers and, per OpenAI's documentation, verifies ChatGPT cloud browser signatures automatically. ## Common questions ### What is AI agent traffic? It is requests made by AI software acting for a person, such as an assistant fetching a page, a cloud browser filling in a form or a shopping agent placing an order. It sits between human traffic and classic bots, so the default rules for either one fit it badly. ### Should I block AI shopping agents? Blocking all of them turns away buyers who chose to shop through an assistant. Allow verified agents on product pages and checkout with your usual fraud checks, and keep strict limits on limited-stock items, where agents and scalper bots behave the same way. ### How can I tell an AI agent from a human in a browser? Often you cannot from one request, especially when the agent runs inside the person's own browser. Signatures and declared tokens identify cooperative agents, while timing, input patterns and form-filling speed separate automated sessions from people over the course of a visit. ## Related - [What are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) - [How to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md) - [How to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) - [Can AI solve CAPTCHAs?](https://stopbots.io/learn/captcha/can-ai-solve-captchas.md) # What is click fraud? > Click fraud is generating clicks on pay-per-click ads with no real interest in the advertiser, using bots, click farms, malware or people clicking by hand. The aim is to drain a rival's budget, earn publisher revenue or claim commission. The advertiser pays for visits that never convert, and automated bidding learns from the fake traffic. Category: Click fraud and fake traffic. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/what-is-click-fraud/ Pay-per-click ads charge the advertiser each time someone clicks. A fake click costs the same as a real one, and on networks that share ad revenue with website and app owners, someone earns money from every click. That price is what makes clicks worth faking. ## Who commits click fraud and why? Most click fraud comes from a few groups with different goals: - Competitors click a rival's search ads to use up the daily budget early, so their own ads win more auctions for the rest of the day. This is usually done by hand or with a simple script. - Publishers in display and app networks click the ads on their own sites and apps, or pay others to, because they receive a share of each click. - Fraud operations place ads on sites and apps they control, then send automated traffic to those properties to collect the payouts at scale. - Affiliates and app install partners fake clicks to claim credit for sales or installs they did not cause. [Affiliate fraud](https://stopbots.io/learn/ad-fraud/affiliate-fraud.md) covers click injection and click spamming. Accidental clicks, such as a thumb hitting a banner placed next to a game button, are not fraud in the legal sense. Google still counts them as invalid clicks because they show no real interest in the advertiser. ## How are fake clicks produced? Simple bots run in data centres and click from cloud IP addresses. Ad platforms catch most of these because hosting IP ranges are well known. More careful operations drive real browsers with automation software and route them through [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md), so each click appears to come from a home internet connection. Malware on infected computers and phones clicks ads in the background while the owner uses the device. These devices form a [botnet](https://stopbots.io/learn/bots/what-is-a-botnet.md), and they carry the owner's real cookies and browsing history, which makes their clicks harder to separate from real ones. [Click farms](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md) use real phones, sometimes operated by low-paid workers and sometimes by software that drives racks of devices. Their traffic passes many automated checks because the devices and the touch input are real. ## What does click fraud cost an advertiser? The direct cost is the price of each click that will never become a customer. The indirect costs often matter more: - Automated bidding learns from the traffic it receives. If fake clicks lead to fake form fills that count as conversions, the system bids more for the placements and audiences that produce them. - Remarketing lists fill with bots, so later campaigns pay to show ads to the same fake visitors. - Sales teams spend time calling leads with invented names and numbers that do not connect. - Reports show more traffic and lower conversion rates, which can push teams to rebuild landing pages or cut keywords that were working. ## Where does click fraud happen most? Exposure depends on where the ad runs. On the main search results page no third-party publisher earns from your clicks, so the profit motive is weaker, although competitors can still click. Display ads, app inventory, search partner sites and campaign types that spread ads across many networks carry more exposure, because other parties own the pages and apps where the clicks happen and some of them are paid per click. Price per click matters too. In sectors with expensive clicks, such as legal services, insurance or emergency home repairs, each fake click does more damage, and a rival needs only a handful a day to drain a small budget. ## What do ad platforms do about click fraud? Google Ads filters clicks it judges invalid before billing, and [its help page on invalid clicks](https://support.google.com/google-ads/answer/42995) says advertisers are not charged for them. When Google finds invalid clicks after billing, it issues credits "where appropriate and possible". The filter decides with what Google can see at click time: the IP address, the device, the click pattern and its own history of similar traffic. It does not see what the visitor did on your site unless you send conversion data back. Clicks that pass the filter are billed. Finding the rest falls to the advertiser, using server logs, analytics and lead quality data. [How to detect click fraud](https://stopbots.io/learn/ad-fraud/how-to-detect-click-fraud.md) lists the checks that need no paid tool, and [how to stop click fraud on Google Ads](https://stopbots.io/learn/ad-fraud/how-to-stop-click-fraud-on-google-ads.md) covers the campaign settings that reduce exposure. ## Common questions ### Is click fraud illegal? Organised click fraud for profit is generally treated as fraud, and in the US large ad fraud schemes have been prosecuted as wire fraud. A competitor clicking your ads by hand is harder to pursue and is usually handled through the ad platform's refund process. The answer depends on the country and the facts, and this page is not legal advice. ### What is competitor click fraud? It shows up as repeat clicks on your most expensive keywords from one area or office network during working hours, with almost no time on the page. An IP exclusion helps when the rival clicks from a fixed connection, and Google's Click Quality Form lets you report the pattern for review. ### Does click fraud happen on Meta ads? Yes. Any ad sold per click or per impression can attract fake traffic, including Facebook and Instagram ads and ads Meta places in third-party apps. Compare Meta's link clicks with landing page views and with the visits your own server logged to see how big the gap is. ## Related - [How to detect click fraud](https://stopbots.io/learn/ad-fraud/how-to-detect-click-fraud.md) - [What is ad fraud? The main types](https://stopbots.io/learn/ad-fraud/what-is-ad-fraud.md) - [How do click farms work?](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md) - [What is a botnet?](https://stopbots.io/learn/bots/what-is-a-botnet.md) # How to detect click fraud > To detect click fraud, compare what the ad platform billed with what your own systems recorded. Check the Invalid clicks column in Google Ads, then look for paid clicks with no matching visit, visits with zero engagement, clicks clustered on a few placements, networks, devices or hours, and leads that never qualify. A sudden change against your own baseline is the strongest signal. Category: Click fraud and fake traffic. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/how-to-detect-click-fraud/ Ad platforms report clicks. Your web server, analytics and CRM report what those clicks did afterwards. Click fraud shows up where the two disagree, so most detection work is comparing them, campaign by campaign, against what normal weeks look like. ## Start with the invalid clicks column in Google Ads Google lets you see how many clicks it removed. In the Campaigns view, open the column picker, search for "Invalid clicks" and apply it. These are clicks Google's filters caught before billing, and you were not charged for them. The normal Clicks column already excludes them, so calculate the share yourself: ```txt invalid click share = invalid clicks / (clicks + invalid clicks) ``` Track it weekly per campaign. A share that rises on one campaign means that campaign is attracting more bad traffic, which is a reason to look harder at the clicks Google did bill. Two more places hold the rest of Google's view, as its [invalid traffic help page](https://support.google.com/google-ads/answer/11182074) describes. The Invalid traffic card on the Overview page shows estimated savings and past credits. The Invalid Activity Credit Report in Report Editor shows credits for invalid clicks found after billing, by campaign. ## Compare paid clicks with visits and server logs Put Google Ads clicks next to GA4 sessions with a session source / medium of google / cpc, per campaign and per day. Some gap is always there, because consent banners, ad blockers and people who close the page before the tag loads all lose sessions. Watch the ratio against your own baseline. A gap that widens on one campaign or one day is the signal, more than any absolute number. Server logs give a second count that does not depend on JavaScript. With auto-tagging on, each Google Ads click lands with a `gclid` parameter in the URL. This groups those landings by /24 subnet (the first three parts of an IPv4 address) so repeat sources stand out: ```bash grep 'gclid=' /var/log/nginx/access.log \ | awk '{print $1}' \ | cut -d. -f1-3 \ | sort | uniq -c | sort -rn | head -20 ``` Behind a CDN or load balancer, the first field is the proxy's address unless your server is set up to log the real client IP (in nginx, the `real_ip_header` and `set_real_ip_from` directives). After allowing for consent refusals and ad blockers, gclid landings that never appear as sessions in analytics came from clients that did not run your JavaScript, which most real browsers do. ## Look for visits with no engagement GA4 counts a session as engaged when it lasts 10 seconds or more, includes a key event, or has two or more page views. For paid traffic, check engagement rate and average engagement time per session by campaign, and then break the low ones down by device model, screen resolution and city. Paid sessions with zero engagement time, one page view and no scroll event, concentrated in one segment, are the pattern to look for. [Bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) covers the dimensions and filters in more detail. ## Check where the clicks cluster Real interest spreads across many placements, networks, devices and hours. Fake clicks tend to cluster. Check each of these against your organic traffic: - Placements: in Display and Performance Max reports, look for apps or sites with a click-through rate far above the campaign average and no conversions. - Networks: group gclid landings by ASN (autonomous system number, the ID of the network that owns an IP range). Clicks from hosting providers rarely come from customers. Rotating home IPs from [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) need other signals. - Devices: one device model or screen resolution far more common in paid clicks than in organic visits. - Hours: clicks while your customers sleep, or an even flow of clicks around the clock. - Location: clicks from outside your target area, which often points to location settings that are too broad. ## Follow the leads to the end Store the gclid with every form submission and push lead status back from your CRM: new, qualified, won. Then compare the qualification rate per campaign, keyword and placement. Click fraud that survives every other check often shows up here as leads with invented names, phone numbers that do not connect, [disposable email addresses](https://stopbots.io/learn/fake-accounts/disposable-email-detection.md), the same person submitted several times with small changes, or forms completed in two or three seconds. ## A weekly check you can run Start with these and adjust the thresholds once you know your normal range: - Invalid click share per campaign compared with the previous four weeks. - Paid clicks to paid sessions ratio per campaign. - Top 20 subnets and ASNs by gclid landings. - Placements with a click-through rate above twice the campaign average and no conversions (a starting point). - Lead qualification rate per campaign and placement. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Google Ads invalid traffic reports](https://support.google.com/google-ads/answer/11182074) are free and built in, and for many search-only accounts the Invalid clicks column and credit report are enough. - [MaxMind](https://www.maxmind.com/) offers GeoLite2 databases, free with an account, that map IP addresses to ASNs and countries so you can group log entries by network owner. - [ClickCease](https://www.clickcease.com/) monitors paid clicks and can automate exclusions for the sources it flags, for advertisers who would rather not review logs by hand. - [Lunio](https://www.lunio.ai/) analyses paid traffic across several ad platforms, which fits teams that spend outside Google too. - [Kairal](https://www.kairal.io/product/bot-protection/) checks visitors on landing pages and lead forms with device, network and behaviour signals, which fits when fake leads are a bigger cost than the clicks themselves. ## Common questions ### Can Google Ads detect click fraud on its own? Google filters invalid clicks automatically and does not bill them. It cannot see what a visitor did after landing on your site, so fraud that only shows up as zero engagement or junk leads has to be found with your own data. ### How do I tell competitor clicks from bot clicks? Competitor clicks are usually few, repeat from one area or office network during working hours and hit your most expensive keywords. Bot clicks come in larger volumes, often around the clock, from hosting networks or from many rotating home IP addresses. ### Do I need click fraud detection software? Not always. Accounts that run mostly on Google Search with steady lead quality can often manage with the free checks on this page. Paid tools save time when most spend goes to Display, apps or automated campaign types, or when you advertise on several platforms. ## Related - [What is click fraud?](https://stopbots.io/learn/ad-fraud/what-is-click-fraud.md) - [How to stop click fraud on Google Ads](https://stopbots.io/learn/ad-fraud/how-to-stop-click-fraud-on-google-ads.md) - [How to detect bot traffic on your website](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) - [How to identify and filter bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) # How to stop click fraud on Google Ads > Google already filters invalid clicks and does not bill them. To cut the rest, exclude IP addresses that keep clicking, set location targeting to Presence, drop placements and apps that send junk, turn off search partners or Display where quality is poor, bid on qualified offline conversions, and send suspicious traffic to Google's Click Quality Form for review and possible credits. Category: Click fraud and fake traffic. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/how-to-stop-click-fraud-on-google-ads/ Google's [help page on managing invalid traffic](https://support.google.com/google-ads/answer/11182074) says you don't need to act because its defences protect you, and for many search-only accounts that is close to true. The settings below matter when your own data shows paid traffic that does not behave like customers. [How to detect click fraud](https://stopbots.io/learn/ad-fraud/how-to-detect-click-fraud.md) covers how to get that data first. ## What does Google already do about invalid clicks? Google filters clicks it judges invalid before billing, and you are not charged for them. You can see how many it removed in the Invalid clicks column, the Invalid traffic card on the Overview page and the Invalid Activity Credit Report, which lists credits for invalid clicks found after billing. Everything below deals with the clicks that get through. ## Exclude IP addresses that keep clicking The [IP exclusion help page](https://support.google.com/google-ads/answer/2456098) sets the limits: - You can exclude up to 500 IP addresses per campaign, as single addresses or ranges. - Campaign-level exclusions are not available for Video, App, Performance Max, Smart Display and hotel campaigns. - Account-level IP exclusions also exist and apply to every campaign in the account, including Performance Max. - Add both the IPv4 and IPv6 forms of an address if a source uses both. IP exclusions work against sources with a fixed address: a competitor's office, or your own staff and agency checking the ads. They do little against bots on [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) or phones on mobile networks, where addresses change constantly and many real customers share them. Keep the list for repeat sources you have confirmed in your logs, or the 500 slots fill with addresses that will never come back. ## Target people in your area Google offers two location options. "Presence or interest" also reaches people outside your locations who have shown interest in them, and Google recommends it for Search. "Presence" limits ads to people in or regularly in your locations. A local or national business that cannot serve other countries usually wants Presence, which cuts clicks from far away, including traffic from abroad that only matched because a search mentioned your city. Add location exclusions for countries that send clicks and never buy. ## Choose where your ads appear Search campaigns can also show on search partner sites and on the Display Network, through the campaign's network settings. Segment your campaign report by network. If partner or Display clicks show low engagement and no qualified leads, turn those networks off for a few weeks and compare cost per qualified lead. For Display and Performance Max, review where your ads ran. Exclude sites, apps and app categories with a click-through rate far above average and no conversions. Apps where ads sit close to buttons invite accidental clicks, which Google lists as one kind of invalid click. Placement exclusions can be set per campaign or for the whole account. Content suitability settings let you exclude whole content types and labels. ## Stop the bidding system from rewarding junk clicks Automated bidding optimises toward whatever you count as a conversion. If a form fill is the conversion and bots fill your forms, the system learns to find more traffic that fills forms. Fix the signal: 1. Save the gclid with every lead, in a hidden form field and your CRM. 2. When a lead qualifies or buys, import that event as an offline conversion, or use enhanced conversions for leads, which matches on hashed contact details. 3. Make the qualified or won event the primary conversion for bidding, and demote the raw form fill to a secondary action. This keeps the gclid across pages within the visit and fills any field named `gclid`: ```js const gclid = new URLSearchParams(window.location.search).get("gclid"); if (gclid) sessionStorage.setItem("gclid", gclid); document.querySelectorAll('input[name="gclid"]').forEach((input) => { input.value = sessionStorage.getItem("gclid") ?? ""; }); ``` ## Protect landing pages and lead forms The click is billed before the visitor reaches your page, but you can stop fake visitors from turning into fake conversions. Google's own guidance suggests securing lead forms with reCAPTCHA and server-side validation, and using double opt-in. [How to stop form spam](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md) has the details, and Kairal's [click fraud guide](https://www.kairal.io/blog/click-fraud/) shows how landing page checks fit with ad settings. ## Report suspicious traffic and ask for credits Use the [Click Quality Form](https://support.google.com/google-ads/contact/click_quality). Reviews cover the last 60 days. Prepare your customer ID, exact dates, campaign and ad group names, the keywords involved, server log lines with IP addresses, devices and gclids, and lead details if fake leads are the problem. Google says reviews take several business days and that an investigation will not confirm whether specific clicks were valid or invalid. ## When is Google's own filtering enough? Google's filtering plus the settings above is usually enough when your ads run only on the main search results page, the invalid click share is steady and lead quality from paid search matches other channels. A third-party tool starts to pay for itself when a large share of spend goes to Display, apps or Performance Max, when clicks are expensive and a rival is clicking, or when you advertise on several platforms and want one view of them. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Google Ads invalid traffic reports](https://support.google.com/google-ads/answer/11182074) are free and show filtered clicks, savings and credits, enough for many search-only accounts. - [CHEQ](https://cheq.ai/) covers invalid traffic in paid campaigns along with on-site and analytics data, which fits marketing teams that want one view across channels. - [Lunio](https://www.lunio.ai/) analyses paid traffic across several ad platforms and helps exclude invalid sources, useful when spend goes beyond Google. - [ClickCease](https://www.clickcease.com/) monitors paid clicks and can automate exclusions for sources it flags, a fit for advertisers who do not want to manage IP lists by hand. - [Google reCAPTCHA](https://cloud.google.com/security/products/recaptcha) returns a score for each form submission that your server checks, which keeps bot form fills out of the conversions you send back to Google Ads. ## Common questions ### Does Google refund click fraud? Google does not charge for clicks its filters catch, and it issues credits when it finds invalid clicks after billing. Credits appear as Invalid activity adjustments in billing, tied to the original month and campaign, rather than as changes to your campaign statistics. ### Can I block a competitor from clicking my Google ads? Only in part. If the clicks come from a fixed office connection, an IP exclusion stops your ads showing to that network. Clicks from phones on mobile data or from changing home connections cannot be blocked reliably this way. ### Is click fraud protection for Google Ads worth paying for? It depends on how much of your budget runs outside the main search results page and how expensive your clicks are. Run the free checks for a month first; if the numbers show losses larger than the cost of a tool, a trial will tell you whether it finds more than you did. ## Related - [How to detect click fraud](https://stopbots.io/learn/ad-fraud/how-to-detect-click-fraud.md) - [What is click fraud?](https://stopbots.io/learn/ad-fraud/what-is-click-fraud.md) - [How to stop bots from submitting forms](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md) - [What are residential proxies and why do bots use them?](https://stopbots.io/learn/bots/what-are-residential-proxies.md) # What is ad fraud? The main types > Ad fraud is any scheme that makes advertisers pay for ad views, clicks, installs or leads that no interested person produced. Fraudsters fake the event that triggers payment with bots, hidden ads, spoofed websites or apps, malware and click farms, or they steal credit for real customers through attribution tricks. Advertisers lose budget, and honest publishers lose revenue to fake inventory. Category: Click fraud and fake traffic. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/what-is-ad-fraud/ Digital ads are bought per event: per thousand impressions, per click, or per action such as an app install, a lead or a sale. Software records each of those events, and anything software records can be faked. Ad fraud aims at whichever event the advertiser pays for. ## How does ad fraud work? Money moves from the advertiser through ad platforms and exchanges to the publisher whose site or app showed the ad. A fraudster gets into that chain in one of three ways. They become the publisher, with sites or apps that exist only to sell ad space to bots. They become a partner paid per action, such as an affiliate or an app install network. Or they spread malware that turns other people's devices into ad viewers and clickers. In each case they produce events that look billable, or they claim credit for events that real customers produced anyway. ## The main types of ad fraud - Bot impressions and clicks. Automated browsers load pages and click ads. Cheap operations run in data centres; better ones route through home connections with [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) or use infected devices in a botnet. - Domain and app spoofing. A low-quality site or app declares itself in the ad request as a well-known publisher, so buyers pay premium prices for worthless inventory. - Hidden ads. Ad stacking places many ads on top of each other in one slot so only the top one is visible, and pixel stuffing squeezes a full ad into a 1x1 pixel frame. Every hidden ad still counts an impression. - Click fraud. Fake clicks on pay-per-click ads by bots, click farms, publishers or competitors. [What is click fraud](https://stopbots.io/learn/ad-fraud/what-is-click-fraud.md) covers it in detail. - Mobile install fraud. Click injection and click spamming steal credit for app installs, and SDK spoofing sends fake install and in-app events from servers that imitate an app's measurement code. [Affiliate fraud](https://stopbots.io/learn/ad-fraud/affiliate-fraud.md) explains how to spot them. - Connected TV spoofing. Servers pretend to be TV apps or streaming devices and request video ads that no one ever watches. The MRC's invalid traffic standards list server-side ad insertion spoofing as one form. - Ad injection. Adware and malicious browser extensions insert ads into pages that never sold that space, or replace a site's own ads with theirs. - Human fraud. [Click farms](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md) pay people, or run racks of phones, to click, install and fill in forms. ## Who loses from ad fraud? Advertisers pay for nothing, and their optimisation data gets worse because bidding systems learn from fake conversions. Honest publishers lose too: spoofed inventory competes with theirs for the same budgets, and when a buyer finds fraud on a supply path, it may cut spend on every site sold through it. People whose devices are infected pay in data use, battery life and exposure to other malware on the same machine. ## What the ad industry uses against it Several shared standards make fraud harder or easier to catch: - [ads.txt and app-ads.txt](https://iabtechlab.com/ads-txt/) let publishers list the companies allowed to sell their ad space, and [sellers.json](https://iabtechlab.com/sellers-json/) lets exchanges list who they sell for. Together they let a buyer check that inventory claiming to be from a known site comes through a seller that site authorised, which makes simple domain spoofing much harder. - The Media Rating Council's invalid traffic standards split invalid traffic into general and sophisticated categories and set what accredited measurement must filter. [GIVT vs SIVT](https://stopbots.io/learn/ad-fraud/invalid-traffic-givt-vs-sivt.md) explains the difference. - The [IAB/ABC International Spiders and Bots List](https://iabtechlab.com/software/iababc-international-spiders-and-bots-list/) is a paid list of known crawlers that measurement and analytics products use to filter declared bots. - [TAG](https://www.tagtoday.net/fraud), the Trustworthy Accountability Group, runs a Certified Against Fraud programme for companies in the ad supply chain. Law enforcement also acts against large schemes. In the United States, the operator of the Methbot scheme, which used servers in commercial data centres to imitate people viewing ads on fake versions of real publishers' sites, was [sentenced to 10 years in prison](https://www.justice.gov/usao-edny/pr/russian-cybercriminal-sentenced-10-years-prison-digital-advertising-fraud-scheme) in 2021. ## What can a single advertiser do? Buy through sellers listed in the publisher's ads.txt, and prefer direct or short supply paths. Use a verification vendor that reports sophisticated invalid traffic, and ask for credits in your contracts when it is found. Pay for outcomes that are hard to fake, such as qualified leads or retained users, and check what each placement and partner delivers in your own sales data as well as in the platform's reports. On your own site, blocking or challenging bots before the page loads keeps them out of your analytics and remarketing lists. ## Common questions ### What is an ad fraud botnet? A network of infected computers or phones that load and click ads in the background without the owner noticing. Because the devices belong to real people with real cookies and home connections, their traffic is much harder to filter than traffic from data centres. ### How do advertisers detect ad fraud? Most use a verification vendor that measures invalid traffic on their impressions and clicks, and many compare what they paid for with what their own analytics and sales data show. Large gaps between the two, by site, app or seller, point to where the fraud sits. ### Is ad fraud illegal? Schemes that deliberately fake ad traffic to take advertisers' money have been prosecuted as fraud, for example in the United States. Whether a specific practice is illegal depends on the jurisdiction and the facts, and this page is not legal advice. ## Related - [What is click fraud?](https://stopbots.io/learn/ad-fraud/what-is-click-fraud.md) - [Invalid traffic: GIVT vs SIVT](https://stopbots.io/learn/ad-fraud/invalid-traffic-givt-vs-sivt.md) - [Affiliate fraud: cookie stuffing, fake leads and click injection](https://stopbots.io/learn/ad-fraud/affiliate-fraud.md) - [How do click farms work?](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md) # How do click farms work? > A click farm produces paid clicks, app installs, likes, signups or reviews using many real phones or computers. Some are rooms of low-paid workers tapping through tasks by hand. Others are racks of phones driven by software. Because the devices, browsers and often the network connections are real, click farm traffic passes many automated bot checks and has to be caught by patterns across devices and accounts. Category: Click fraud and fake traffic. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/how-click-farms-work/ Click farms exist because many online systems pay for, or reward, an action that a person on a phone can perform: an ad click, an app install, a follow, a review, a new account. Buyers include fraudulent publishers, app install networks paid per install, people who want a social profile to look popular, and abusers who need many accounts for sign-up bonuses. ## What does a click farm look like? The manual version is a room of shelves or racks holding phones, each plugged into power and connected to Wi-Fi or a mobile SIM card. Workers move from phone to phone following a task list: search a keyword, click a given ad, stay on the page for a set time, install an app, open it, register. They are usually paid per task or per shift. The automated version, often called a phone farm, replaces most of the workers with software. A controller computer sends taps, swipes and typed text to many phones at once over USB or the network. Some farms use bare phone circuit boards without screens to fit more devices in less space. Others use emulators or virtual phones, which are cheaper but much easier to detect because the hardware is not real. Many farms mix the two. Software handles the repetitive steps, and people step in for anything that needs judgement, such as solving a CAPTCHA, answering an SMS code or writing a short review. ## Why do click farms pass many bot checks? Most bot detection looks for signs of automation. Click farms avoid many of them: - The devices are real phones with real hardware, sensors, graphics chips and operating systems, so the device fingerprint looks normal. - Phones on mobile data share carrier IP addresses with thousands of real customers, and the address changes when the phone reconnects. Farms on Wi-Fi often add [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md). IP blocking does little either way. - Touches, scrolls and typing come from fingers or from scripts replaying recorded human input, so simple behaviour checks see nothing odd. - Between tasks, apps are reinstalled, data is cleared and advertising IDs are reset, so each task appears to come from a new user. The Media Rating Council classes organised human activity like this as sophisticated invalid traffic: its standards name click farms as an example of incentivised human invalid activity. [GIVT vs SIVT](https://stopbots.io/learn/ad-fraud/invalid-traffic-givt-vs-sivt.md) explains what that category means for ad buyers. ## What do click farms sell? - Ad clicks and impressions, for fraudulent publishers or for someone draining a rival's budget. See [what is click fraud](https://stopbots.io/learn/ad-fraud/what-is-click-fraud.md). - App installs and in-app events such as registration or reaching a game level, for install campaigns that pay per action. - Social engagement: followers, likes, views and comments. - Accounts and sign-ups for bonus abuse, referral rewards, fake reviews and voting. ## Signs of click farm traffic No single signal proves a click farm. Several together are strong evidence: - A narrow device mix. Many sessions come from the same few phone models and operating system versions, often older ones, compared with your normal traffic. - New every time. Each session has no history, no earlier cookies and a fresh advertising ID, yet the same hardware models keep appearing. - Location that does not fit. The phone's time zone or language does not match where its IP address says it is, or traffic comes from a region where you have no customers. - Shift patterns. Activity starts and stops at fixed hours that match a working day somewhere else, with breaks at the same time each day. - The same path every time. Sessions land on the same page, scroll to the same depth and spend nearly the same time before the same action. - Many accounts per device or network. Accounts created on one device, or from one IP range within minutes, point to a farm. [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) covers the linking methods. - Nothing after the action. Installs that never open the app a second time, sign-ups that never log in again, leads that never answer the phone. Inside a mobile app, some teams also check whether devices are always charging and never move, which fits phones mounted on a rack. ## What can you do about click farms? Pay for outcomes a farm cannot fake cheaply. A click or an install costs a farm seconds of work, while a qualified lead, a purchase that is not refunded or a user still active after a week costs far more. Move partner payouts and bidding targets toward those later events. Cut whole sources. When a placement, app or sub-publisher shows the signs above, exclude it and ask your partner for sub-source IDs so you can see where traffic comes from. In your own apps, device integrity checks such as [Google Play Integrity](https://developer.android.com/google/play/integrity) and [Apple App Attest](https://developer.apple.com/documentation/devicecheck) confirm that requests come from your unmodified app on a genuine device. That stops emulators and tampered apps. Farm phones are genuine devices, so pair integrity checks with limits on rewards and accounts per device and per network. ## Common questions ### Are click farms illegal? Faking engagement breaks the terms of every major ad and social platform, and using a farm to take advertisers' money can amount to fraud. The legal position depends on the country and on what the farm is paid to do, and this page is not legal advice. ### What is a phone farm? A phone farm is a click farm run mostly by software: dozens or hundreds of phones, sometimes bare phone circuit boards without screens, wired to a controller that runs the same scripted task on all of them. It needs fewer workers than a manual farm and can run around the clock. ### Do CAPTCHAs stop click farms? Usually not. A worker can solve the puzzle, and automated farms send puzzles to paid solving services. Checks that compare devices, accounts and behaviour across many sessions work better. ## Related - [What is click fraud?](https://stopbots.io/learn/ad-fraud/what-is-click-fraud.md) - [What are residential proxies and why do bots use them?](https://stopbots.io/learn/bots/what-are-residential-proxies.md) - [How to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md) - [Invalid traffic: GIVT vs SIVT](https://stopbots.io/learn/ad-fraud/invalid-traffic-givt-vs-sivt.md) # How to identify and filter bot traffic in GA4 > GA4 automatically excludes known bots and spiders, identified through Google research and the IAB/ABC International Spiders and Bots List. You cannot turn this off or see what it removed, and bots missing from the list still appear. Spot them by near-zero engagement, odd screen resolutions, one city and old browser versions, then exclude them with segments, IP-based data filters or by blocking them before the tag fires. Category: Click fraud and fake traffic. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4/ Google Analytics 4 counts whatever its tag reports, and a bot that runs JavaScript fires the tag the same way a browser does. The built-in filter only knows the bots on a list, so the rest of [bot traffic](https://stopbots.io/learn/bots/what-is-bot-traffic.md) lands in your sessions, conversion rates and remarketing audiences. ## Does GA4 filter out bot traffic? Partly. Google's [known bot-traffic exclusion page](https://support.google.com/analytics/answer/9888366) says traffic from known bots and spiders is excluded automatically, using Google research and the International Spiders and Bots List maintained by the IAB. It also says you cannot disable the exclusion or see how much traffic it removed. The list covers bots that declare themselves, such as search engine crawlers and monitoring services. A bot that presents itself as Chrome on Windows is on no list, so GA4 records it as a visitor. ## Why do unknown bots still show up? - Headless and automated browsers run the GA4 tag like any visitor. - Bots sent by [click fraud](https://stopbots.io/learn/ad-fraud/how-to-detect-click-fraud.md) or fake sign-up campaigns land on your paid landing pages. - Your measurement ID is visible in your page source, so anyone can send events to Google's collection endpoint with it without visiting your site. These hits often carry a hostname that is not yours. ## How to identify bot traffic in GA4 Look for groups of sessions that differ from your normal visitors on several of these at once: - Spikes in Direct traffic (Session default channel group) with near-zero engagement. - Average engagement time per session close to zero, Views per session of exactly one, and no scroll events (GA4's enhanced measurement sends scroll when a visitor reaches 90% of the page). - Screen resolution values that real devices rarely report, such as 800x600, the default window size of several automation tools. - City concentrated on one place you never market to, or "(not set)". - Browser version years out of date, or a single exact version far more common than in the rest of your traffic. - Hostname values that are not your domains, which points to hits sent without a real visit. - Device model and Operating system with version identical across hundreds of sessions. GA4 does not show IP addresses, network owners or ASNs (the ID of the network an address belongs to). "All of this came from one hosting provider" can only be confirmed in server or CDN logs. [How to detect bot traffic](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) covers the log side. ## Build an exploration to isolate the bots In Explore, start a free-form exploration. Add Session default channel group, City, Screen resolution, Browser, Browser version and Hostname as dimensions, and Sessions, Engaged sessions, Average engagement time per session and Views per session as metrics. Find rows with high volume and almost no engagement, then build a session segment for that pattern, such as one city plus one screen resolution, and exclude it when reporting. Segments and comparisons change only what you see in that analysis: audiences, key events and the conversions you share with Google Ads still include the bots. ## How to exclude bot traffic in GA4 1. Segments and comparisons. Useful for past data, with no change to collection. 2. Internal traffic rules and data filters. In the web data stream's tag settings, define internal traffic by IP address, exact or as a CIDR range (for example 203.0.113.0/24). GA4 then adds a `traffic_type` parameter, and a data filter excludes events with that value. Per the [data filters help page](https://support.google.com/analytics/answer/10104470), a property can have up to 10 filters, and data an active filter excludes is gone for good, so run it in Testing state first. This suits ranges you know, such as your office, uptime monitors or a bot range you confirmed in logs, which you can give its own `traffic_type` value. Rotating bots will not stay inside a range. 3. Unwanted referrals. Adding a domain to this list in tag settings stops it from being credited as a referral source. The sessions still count, so it does not remove bots. 4. Blocking at the edge. A bot that is blocked or challenged before the HTML is served never loads the tag, so it never reaches GA4 or your ad audiences. This [Cloudflare custom rule](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) expression matches visits from three large hosting networks (DigitalOcean, Amazon and Hetzner) while letting verified good bots through. Pair it with a managed challenge rather than a block, because some real people browse through VPNs hosted on those networks. ```txt (ip.src.asnum in {14061 16509 24940} and not cf.client.bot) ``` 5. Server-side validation. With a server-side tagging container, events pass through your own endpoint first, so you can drop events that lack a session cookie your server set or that come from networks you have already flagged. ## What GA4 cannot do GA4 blocks nothing: a bot in your reports has already loaded the page, and the known bot list cannot be inspected. Kairal's guide to [bot traffic in Google Analytics](https://www.kairal.io/blog/bot-traffic-google-analytics/) walks through cleaning reports alongside blocking. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) scores and challenges bots at the edge, and the free plan includes a simpler Bot Fight Mode that is often enough for a small site. - [CrowdSec](https://www.crowdsec.net/) is open source and blocks IP addresses that its community has reported for abuse, a free option for self-hosted servers. - [Google Tag Manager server-side tagging](https://developers.google.com/tag-platform/tag-manager/server-side) routes analytics events through your own endpoint, where you can validate them before they reach GA4. - [Kairal](https://www.kairal.io/integrations/) runs at the CDN, reverse proxy or API with a JavaScript collector, and its preview mode shows which visitors it would challenge before you enforce anything. ## Common questions ### How do I remove bot traffic that is already in GA4? You cannot delete it from standard reports, and data filters only act on data collected after they are active. For past data, use a segment or comparison that leaves out the bot pattern, or clean the raw events in the BigQuery export. ### Can I see visitor IP addresses in GA4? No. GA4 does not log or store IP addresses, so no report or export contains them. Find bot ranges in your server or CDN logs instead, where every request carries the client address. ### Why does GA4 show a spike of traffic from one small town? GA4 places visitors by IP address, and addresses owned by cloud data centres resolve to the town where the data centre sits. Ashburn in Virginia is a common example because it hosts a large concentration of data centres, so a spike from there with near-zero engagement is usually automated. ## Related - [How to detect bot traffic on your website](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) - [What is bot traffic?](https://stopbots.io/learn/bots/what-is-bot-traffic.md) - [How to detect click fraud](https://stopbots.io/learn/ad-fraud/how-to-detect-click-fraud.md) - [How to block bots with Cloudflare](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) # How to stop bots from submitting forms > Stop most form spam by layering cheap checks: a hidden honeypot field that only bots fill in, a signed timestamp that rejects forms sent too fast, strict server-side validation and rate limits, and a non-interactive challenge such as Turnstile on forms that matter. Add a content filter like Akismet for comment and contact spam, and double opt-in for any form that sends email. Category: Click fraud and fake traffic. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam/ Bots submit forms to post links for search rankings, to send phishing text through your autoresponder, to fill your CRM with fake leads and to sign victims up for mail floods. Most of them are scripts that post straight to the form's URL without loading the page, so any check that depends on the page being loaded, such as a hidden field, a signed token or a challenge, stops a large share of them. ## Add a honeypot field A honeypot is a field that people never see and bots fill in because they fill in everything. Hide it with CSS, not `type="hidden"`, because many bots skip hidden inputs. Give it a name that browser autofill will not match (avoid email, name, phone or website), take it out of the tab order and hide it from screen readers: ```html
``` When the field arrives filled, show the normal thank-you page and discard the message, so the bot's operator does not learn which check caught it. [Honeypots for bot detection](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md) covers trap links and other variants. ## Reject forms sent too fast People need a few seconds to fill in a form; scripts need none. Put the time the form was rendered into a hidden field, and sign it with an HMAC (a keyed hash) so a bot cannot write its own timestamp. Your template fills `form_token` with `formToken()`, and the handler rejects tokens that are missing, forged, younger than 3 seconds or older than 2 hours. Treat both limits as starting points. ```js import crypto from "node:crypto"; const SECRET = process.env.FORM_TOKEN_SECRET; const MIN_AGE_SECONDS = 3; const MAX_AGE_SECONDS = 2 * 60 * 60; const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; const LINK_PATTERN = /https?:\/\//gi; function sign(timestamp) { return crypto.createHmac("sha256", SECRET).update(timestamp).digest("hex"); } export function formToken() { const timestamp = String(Math.floor(Date.now() / 1000)); return `${timestamp}.${sign(timestamp)}`; } function tokenAgeSeconds(token) { const [timestamp, mac] = String(token ?? "").split("."); if (!timestamp || !mac) return null; const expected = Buffer.from(sign(timestamp)); const received = Buffer.from(mac); if (expected.length !== received.length || !crypto.timingSafeEqual(expected, received)) { return null; } return Math.floor(Date.now() / 1000) - Number(timestamp); } export function rejectReason(body) { if (body.extra_info) return "honeypot"; const age = tokenAgeSeconds(body.form_token); if (age === null || age < MIN_AGE_SECONDS || age > MAX_AGE_SECONDS) return "timing"; const email = String(body.email ?? "").trim(); const message = String(body.message ?? ""); if (email.length > 254 || !EMAIL_PATTERN.test(email)) return "email"; if (message.length < 10 || message.length > 5000) return "length"; if ((message.match(LINK_PATTERN) ?? []).length > 2) return "links"; return null; } ``` Call `rejectReason(req.body)` at the top of the form handler. Return the thank-you page for `"honeypot"`, and a "please reload and try again" message for `"timing"` so a real person with an expired page can recover. ## Validate everything on the server Bots never run your browser-side validation, so the server is the only place a check counts. Enforce types and lengths, accept only known values for select fields, reject links in name and phone fields, and drop requests with an unexpected content type. Add a rate limit per IP address on the form endpoint. In nginx: ```nginx limit_req_zone $binary_remote_addr zone=forms:10m rate=5r/m; server { location = /contact { limit_req zone=forms burst=3 nodelay; proxy_pass http://127.0.0.1:3000; } } ``` The `limit_req_zone` line belongs in the `http` block. Five requests a minute per address with a small burst is a starting point for a contact form; signup forms under attack may need a limit per email address too. ## Add a non-interactive challenge For forms where spam gets past the cheap checks, add a challenge that runs in the background, such as Cloudflare Turnstile, reCAPTCHA v3 or Friendly Captcha. The widget gives the browser a token, and your server must verify it with the provider on every submission. Turnstile's [server-side validation guide](https://developers.cloudflare.com/turnstile/get-started/server-side-validation/) notes that tokens are single-use and expire after 300 seconds. [CAPTCHA alternatives](https://stopbots.io/learn/captcha/captcha-alternatives.md) compares the options. ## Filter the content Some spam is typed or pasted by people, and no bot check stops it. A content filter scores the message itself. [Akismet](https://wordpress.org/plugins/akismet/) does this for WordPress comments and contact forms, and has an API for other platforms. Your own rules can catch the rest: messages with more than two links, the same message from many addresses, and phrases that keep appearing in spam you have already received. ## Use double opt-in for anything that sends email Any form that sends an email to the address typed in it can be used against a third party. Send one plain confirmation and nothing else until the person clicks it, leave user-typed fields such as first name out of that email, and do not auto-reply to contact forms with anything more than a bare acknowledgement. [Subscription bombing](https://stopbots.io/learn/ad-fraud/subscription-bombing.md) explains why. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Akismet](https://wordpress.org/plugins/akismet/) filters comment and contact form spam by content, the usual first step on a WordPress site. - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) is a free challenge that most visitors pass without any interaction, and works on sites that do not use Cloudflare's CDN. - [Friendly Captcha](https://friendlycaptcha.com/) uses a proof-of-work puzzle solved in the background, a fit for sites that want an EU-based provider. - [Google reCAPTCHA](https://cloud.google.com/security/products/recaptcha) returns a risk score per submission that your server can act on. - [Kairal](https://www.kairal.io/use-cases/spam-phishing/) sets protection per endpoint, such as signup and contact forms, and verifies suspicious visitors with invisible challenges, which suits sites where form abuse is one part of wider bot traffic. ## Common questions ### Is a honeypot or a CAPTCHA better against form spam? A honeypot costs real users nothing and stops generic bots, but a bot written for your site can skip the field. A challenge stops more automated submissions at some cost in friction or privacy, so use the honeypot everywhere and add a challenge where spam still gets through. ### Why do I still get spam with reCAPTCHA on my form? Either the token is not checked on the server, so bots post to the form without it, or the spam comes from people or solving services that pass the challenge. Confirm that a submission without a valid token is rejected, then add content filtering and rate limits. ### Should I reject form messages that contain links? Rejecting every link blocks some real customers who paste a URL. A limit of one or two links per message, plus a ban on links in name and phone fields, is a common middle ground that you can tighten if spam keeps coming. ## Related - [Honeypots for bot detection: hidden fields and trap links](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [Subscription bombing: bots abusing your signup forms](https://stopbots.io/learn/ad-fraud/subscription-bombing.md) - [How to stop fake account creation](https://stopbots.io/learn/fake-accounts/how-to-stop-fake-account-creation.md) # Affiliate fraud: cookie stuffing, fake leads and click injection > Affiliate fraud is when a partner in a pay-per-sale, per-lead or per-install programme collects commission it did not earn. Common methods are cookie stuffing, click injection and click spamming on mobile installs, fake or recycled leads, buying through one's own link, and bidding on the merchant's brand in search ads. Timing, conversion and lead quality signals expose most of them. Category: Click fraud and fake traffic. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/affiliate-fraud/ Affiliate programmes pay partners for results: a sale, a lead, an app install. Most decide which partner gets paid with last-click attribution, so the partner whose tracking link was clicked last before the conversion takes the commission. Affiliate fraud aims at that rule. The fraudster either takes the credit for a customer who was already going to buy, or fakes the conversion itself. ## Cookie stuffing Cookie stuffing drops an affiliate's tracking cookie into a visitor's browser without a real click. A page loads the affiliate link in a hidden frame, an invisible image or a pop-under window. A browser extension rewrites links or adds its own tracking tag as the shopper reaches checkout. If that visitor later buys, the merchant pays commission on a sale the affiliate had nothing to do with. The Media Rating Council lists cookie stuffing among its forms of sophisticated invalid traffic, covered in [GIVT vs SIVT](https://stopbots.io/learn/ad-fraud/invalid-traffic-givt-vs-sivt.md). Signals to check: - Affiliate clicks logged by your redirect with no landing page view after them, because the request came from a hidden frame or image. - An affiliate click appearing in the middle of a session that started from another source, seconds before checkout. - High conversion rates for an affiliate whose site has little visible content or traffic. - Clicks whose referrer is empty or is a page unrelated to your products. ## Click injection and click spamming in mobile installs Mobile install campaigns attribute an install to the last click recorded before it. Two methods exploit this. Click spamming, also called click flooding, sends huge numbers of fake clicks for devices that never saw an ad, hoping some of those devices install the app on their own later. The partner then takes credit for organic installs. Signals: a very low click-to-install rate, click-to-install times spread flat over days instead of clustered in the first hour, and organic installs falling as the partner's installs rise. Click injection is an Android method. An app already on the phone notices that another app is being installed and fires a fake click just before the install completes. Signals: click-to-install times of a few seconds, and clicks recorded after the install had already started. Google Play's [Install Referrer API](https://developer.android.com/google/play/installreferrer/library) gives your app `getReferrerClickTimestampSeconds()` and `getInstallBeginTimestampSeconds()`, so a click your attribution system logged after the install began cannot have caused the install. The MRC's invalid traffic standards also name short, illogical click-to-install durations and no use after install as signals. ## Fake leads Pay-per-lead programmes attract partners who submit forms with invented, recycled or bought contact details, using bots, [click farms](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md) or people paid to fill in forms with no interest in the product. Signals: - A low contact rate: numbers that do not connect and emails that bounce. - The same phone number or email address arriving from several partners. - Disposable email domains and forms completed in a couple of seconds. - Leads arriving in bursts at night, or many leads from one device or subnet. The same defences that stop [form spam](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md) apply, and paying only for leads that pass validation removes the incentive. ## Self-referral and brand bidding Self-referral is an affiliate buying through their own link to earn commission or cashback, sometimes on expensive items they return after the commission is paid. Look for orders where the buyer's name, address, payment card or device matches the affiliate's own details, and for affiliates whose sales come back as returns more often than others. [Referral fraud](https://stopbots.io/learn/ecommerce-fraud/referral-fraud.md) covers the same pattern in customer referral programmes. Brand bidding is an affiliate buying search ads on your brand name to catch people who were already looking for you, then sending them through a tracking link. You pay commission on customers you would have had anyway, and you pay more per click on your own brand because the affiliate competes in the auction. Search your brand terms in each market with Google's ad preview tool, which does not count as an impression, and check the Auction insights report for domains you do not recognise. ## Contract terms that help Write these into the programme terms so you can act without a dispute: - Commission is paid only after the return or cancellation window closes, and can be clawed back for refunds, chargebacks and fraud. - Lead and install payouts depend on validation: a contacted lead, an install with activity after day one. - No cookie setting without a user click, and no toolbars or extensions that add tracking unless approved in writing. - No bidding on brand terms, misspellings or brand plus product terms, brand terms must be added as negative keywords, and no direct linking from search ads. - Incentivised traffic, such as cashback or reward sites, only when declared and tracked separately. - Sub-source IDs on every click, so you can cut one bad traffic source without dropping the partner. - No purchases through one's own link, and the right to audit traffic sources and withhold payment for invalid activity. ## Common questions ### What is affiliate click fraud? Faking clicks on affiliate links so the affiliate's tracking cookie or click ID gets attached to more visitors. Programmes that pay per click lose money on every fake click, and programmes that pay per sale lose when those clicks claim credit for customers who would have bought anyway. ### Is cookie stuffing illegal? It breaks the terms of almost every affiliate network, and in the US, cookie stuffing against eBay's affiliate programme led to federal criminal charges. Whether a case is a crime depends on the country and the facts, and this page is not legal advice. ### How long should commission be held before payout? At least as long as your return or cancellation window, plus the time chargebacks take to arrive on card payments. For lead programmes, hold payment until the lead has been contacted and validated. ## Related - [Referral fraud: how self-referral rings work](https://stopbots.io/learn/ecommerce-fraud/referral-fraud.md) - [What is ad fraud? The main types](https://stopbots.io/learn/ad-fraud/what-is-ad-fraud.md) - [How do click farms work?](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md) - [What is promo abuse and how do you stop it?](https://stopbots.io/learn/ecommerce-fraud/promo-and-coupon-abuse.md) # Invalid traffic: GIVT vs SIVT > General invalid traffic (GIVT) is traffic found through routine list or parameter checks, such as declared crawlers, known data-centre traffic and non-browser user agents. Sophisticated invalid traffic (SIVT) needs advanced analytics, corroboration across sources or human review to find, such as hijacked devices, hidden ads, falsified events and organised paid activity. Both terms come from the Media Rating Council's invalid traffic standards. Category: Click fraud and fake traffic. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/invalid-traffic-givt-vs-sivt/ Ad buyers, sellers and verification vendors use two labels for traffic that should not be counted or billed. Both come from the Media Rating Council (MRC), the US industry body that audits and accredits advertising measurement. The MRC published its first invalid traffic guidelines in 2015 and replaced them with the [Invalid Traffic Detection and Filtration Standards Addendum](https://www.mediaratingcouncil.org/sites/default/files/Standards/IVT%20Addendum%20Update%20062520.pdf) in June 2020. The definitions below follow that document. ## What is general invalid traffic (GIVT)? The MRC defines GIVT as traffic "identified through routine means of filtration executed through application of lists or with other standardized parameter checks." Its examples: - Known invalid data-centre traffic, meaning sources that are consistently invalid, not ordinary users whose traffic passes through a data centre. - Bots, spiders and other crawlers. - Activity-based filtering using transaction-level data and campaign or app parameters. - Non-browser user agents and other unknown browsers. - Pre-fetch and pre-rendered traffic where no valid user later saw the ad. - Invalid placements, and ads delivered at 0x0 or 1x1 size. - Sessions that cannot render images, such as headless browsers or devices without a display. GIVT checks are meant to give the same answer whichever vendor runs them, because they rely on shared lists such as the [IAB/ABC International Spiders and Bots List](https://iabtechlab.com/software/iababc-international-spiders-and-bots-list/) and TAG's data-centre IP list. Much GIVT is honest automation, such as search engine crawlers and uptime monitors that declare themselves. ## What is sophisticated invalid traffic (SIVT)? SIVT covers "more difficult to detect situations that require advanced analytics, multi-point corroboration/coordination, significant human intervention, etc., to analyze and identify." The MRC's examples include: - Automated browsing from dedicated devices: emulators and custom automation software. - Automated browsing from devices that belong to real people: infected and hijacked devices. - Incentivised human invalid activity, which the standards illustrate with [click farms](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md). Disclosed reward programmes that do not aim to manipulate measurement are excluded. - Manipulated activity: forced clicks, forced tabs, forced app installs, clickjacking and tricks that cause accidental clicks. - Falsified measurement events: impressions, viewability, clicks, location, referrer, consent strings and conversions, plus server-side ad insertion spoofing. - Domain and app misrepresentation, such as app ID spoofing and domain laundering. - Bots and crawlers that pose as real users and are only caught by sophisticated means. - Hidden, stacked, transparent or otherwise obscured ads. - Invalid proxy traffic, adware and malware, including ad injection. - Cookie stuffing, recycling or harvesting, covered in [affiliate fraud](https://stopbots.io/learn/ad-fraud/affiliate-fraud.md). The MRC expects some SIVT categories to move into GIVT over time as industry lists and objective criteria catch up with them. ## GIVT vs SIVT compared | | GIVT | SIVT | |---|---|---| | How it is found | Lists and standard parameter checks | Advanced analytics, signals corroborated across sources, human review | | Typical examples | Declared crawlers, known data-centre IPs, non-browser user agents, pre-fetch | Hijacked devices, hidden ads, spoofed domains and apps, click farms, cookie stuffing | | Agreement between vendors | Intended to be consistent | Varies with each vendor's methods | | MRC requirement | Required for any accredited measurement | Strongly encouraged, and accredited separately | | Who produces it | Often declared or honest automation, plus simple bots | Usually deliberate fraud or manipulation | ## Where does data-centre traffic fit? Data-centre traffic sits on the line between the two. The MRC says industry lists have limits, noting that the TAG data-centre IP list only covers addresses where human traffic is not expected and leaves out mixed data-centre IPs. As a minimum, it requires filtering invalid data-centre traffic from IP addresses of the three largest hosting companies, Amazon AWS, Google and Microsoft, while leaving out routing artifacts of real users and legitimate browsing from virtual machines. Vendors may classify data-centre traffic they find through sophisticated analysis as SIVT, and are asked to report the sources so they can be added to shared lists. The practical effect is that bot operators avoid hosting IPs. Traffic routed through [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) or infected home devices does not match any data-centre list, so finding it is SIVT work. ## Pre-bid and post-bid detection Many buyers filter before they bid, using a vendor's prediction of whether a bid request is invalid. The MRC describes these up-front techniques as "generally probabilistic," built on historical patterns, while back-end detection can use telemetry from the impression itself. A vendor that uses pre-bid filtering in place of a required back-end check must show, with auditable evidence, that it works as well. For a buyer, pre-bid filtering avoids paying for some invalid traffic, and post-bid measurement shows what got through. You need both to know your real rate. ## What GIVT and SIVT mean for an ad buyer Ask these questions of every measurement vendor and seller: 1. Is the measurement MRC-accredited, and for which metrics and environments? GIVT filtering is required for accreditation, while SIVT detection is accredited separately and only counts when it covers all applicable categories. 2. If the measurement of record only applies GIVT, how will you add SIVT coverage? The MRC encourages buyers in that position to add SIVT detection through a third party. 3. Are GIVT and SIVT reported separately, by site or app, by seller and by supply path? 4. What is the decision rate? The MRC requires vendors to report the share of impressions for which they collected enough signals to make an invalid traffic decision. A low invalid traffic rate on a low decision rate tells you little. 5. Are you billed on gross or net counts, and what happens when SIVT is found after billing: credits, make-goods or refunds? Put the answer in the insertion order. 6. Does the inventory come from sellers listed in the publisher's ads.txt or app-ads.txt? [What is ad fraud](https://stopbots.io/learn/ad-fraud/what-is-ad-fraud.md) explains how those files and sellers.json limit domain spoofing. Then check outcomes yourself. Invalid traffic rates mostly describe impressions and clicks, while fake leads and installs with no later activity show up in your own sales and product data. ## What it means for a site owner Your own analytics only applies list-based filtering. GA4's built-in exclusion uses the IAB/ABC list and Google's research, the kind of check the MRC places under GIVT, so SIVT-style bots still reach your reports. [Bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) covers how to find and exclude them. Publishers who buy traffic to meet audience targets take on the risk that it includes SIVT, which buyers' verification vendors may flag and refuse to pay for. ## Common questions ### Does GIVT cost advertisers money? It should not when measurement is accredited, because GIVT must be filtered out before counts are reported. It does cost money when a buyer pays on raw counts from a seller or platform that does not filter, or when contracts are based on gross rather than net figures. ### What is a normal invalid traffic rate? No single benchmark holds across channels, formats and vendors, because each vendor detects differently and sees different inventory. Compare rates for the same vendor over time and between your own suppliers, and read them next to the vendor's decision rate. ### Who decides whether traffic is GIVT or SIVT? The measurement or verification company classifies it under the MRC standards, and the MRC audits those companies before accrediting them. Two accredited vendors can still disagree on SIVT, because the standards define what to detect and leave the method to each vendor. ## Related - [What is ad fraud? The main types](https://stopbots.io/learn/ad-fraud/what-is-ad-fraud.md) - [How do click farms work?](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md) - [Affiliate fraud: cookie stuffing, fake leads and click injection](https://stopbots.io/learn/ad-fraud/affiliate-fraud.md) - [How to identify and filter bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) # Subscription bombing: bots abusing your signup forms > Subscription bombing is an attack where bots enter a victim's email address into thousands of newsletter, signup and contact forms at once. The flood of confirmation emails buries a real alert, such as a bank's fraud notice, while the attacker uses the victim's account. Sites whose forms are abused lose sender reputation. Bot checks before any email is sent, per-recipient limits and confirmation-only double opt-in stop it. Category: Click fraud and fake traffic. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/ad-fraud/subscription-bombing/ The target of a subscription bombing attack is one person's inbox. The tools are thousands of ordinary signup forms on legitimate websites, which is why your newsletter form, account signup or contact page can end up taking part without anyone on your team noticing. ## How does a subscription bombing attack work? In many cases the attacker already controls, or is about to use, one of the victim's accounts: online banking, a shop account, a work mailbox. The Swiss National Cyber Security Centre's [warning on subscription bombing](https://www.bacs.admin.ch/en/26w6-en) describes it as a distraction: the real security alert or order confirmation is buried among hundreds or thousands of messages, so the victim misses it. Bots find forms that send email without a bot check and submit the victim's address to all of them: newsletters, account registrations, contact forms with autoreplies, back-in-stock alerts, gated downloads and event registrations. Each form sends one polite email. Together they bury the inbox. Double opt-in does not stop this on its own. Spamhaus [described large waves of these attacks](https://www.spamhaus.org/news/article/734/subscription-bombing-coi-captcha-and-the-next-generation-of-mail-bombs) in 2016 and noted that many abused lists already used confirmed opt-in, because the confirmation email is itself part of the flood. ## What does it cost the site whose form is abused? Your domain and sending IPs send mail to people who never asked for it. Some mark it as spam, some addresses bounce, and complaint rates rise. Google's [email sender guidelines](https://support.google.com/a/answer/81126) ask senders to keep the spam rate reported in Postmaster Tools below 0.10% and never reach 0.30%. A single attack on a small list can push a sender past that, and the damage outlasts the attack: newsletters to your real subscribers start landing in spam, your email provider may throttle or suspend the account, and blocklist operators may list the sending IPs. There is a second risk. If the confirmation email repeats a field the visitor typed, such as a first name or company, attackers fill that field with a link or a scam message, and your domain delivers it with your reputation attached. ## Signs your forms are being used - Signups jump while the share that confirms collapses. - Many signups for addresses at one company domain within an hour. - The same address submitted to several of your forms within minutes. - Names or company fields that contain links, phone numbers or gibberish. - Submissions with no page view before them, or from hosting networks. - Replies or complaints saying "I never signed up for this". This query lists recipient domains with unusual signup volume in the last day, along with how many confirmed. Large mailbox providers such as gmail.com will always appear, so compare each domain with its usual numbers: ```sql SELECT split_part(lower(email), '@', 2) AS domain, count(*) AS signups, count(confirmed_at) AS confirmed FROM newsletter_signups WHERE created_at > now() - interval '1 day' GROUP BY 1 HAVING count(*) >= 20 ORDER BY signups DESC; ``` ## How to stop bots using your forms Put a bot check before any email is sent. That means every form that emails the address typed into it, from the newsletter box to account signup and contact forms. The Swiss guidance recommends requiring the challenge before confirmation emails go out. Use a non-interactive challenge or bot detection, verify its token on the server, and only then queue the email. [How to stop form spam](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md) and [CAPTCHA alternatives](https://stopbots.io/learn/captcha/captcha-alternatives.md) cover the options, and a [honeypot field](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md) adds a free extra layer. Send only the confirmation until the person confirms. No welcome offer, no marketing, no user-typed fields in the message. Make the confirmation page ask for a button press rather than confirming on page load, because email security scanners open links in incoming mail automatically. Limit email per recipient as well as per IP address. Bots rotate IPs, while the victim's address stays the same. A starting point is one confirmation per address per 24 hours across all your forms, and a cap per recipient domain per hour set from your normal volume, with higher caps for large mailbox providers. Check both before sending: ```sql SELECT count(*) FILTER (WHERE recipient = $1 AND sent_at > now() - interval '24 hours') AS to_address, count(*) FILTER (WHERE recipient_domain = $2 AND sent_at > now() - interval '1 hour') AS to_domain FROM confirmation_emails WHERE sent_at > now() - interval '24 hours'; ``` Do not auto-reply to contact and quote forms with anything beyond a bare acknowledgement, and consider no auto-reply at all for addresses you have not verified. Watch bounce and complaint rates every day. Google Postmaster Tools and your email provider's dashboard show them, and an alert on a sudden fall in confirmation rate can catch an attack within hours. ## What to do during an attack Turn on the challenge for every email-sending form, or pause confirmation emails on the form being abused. Delete unconfirmed signups from the attack window and do not mail them again. Tell your email provider before its own systems flag the account, and watch your spam rate in Postmaster Tools over the following weeks. If the attack used an account form, check whether the same traffic is also creating [fake accounts or testing stolen logins](https://stopbots.io/learn/account-attacks/what-is-account-takeover.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) is a free challenge most visitors pass without interaction, enough for many small sites when its token is checked on the server. - [Friendly Captcha](https://friendlycaptcha.com/) runs a background proof-of-work check, a fit for teams that prefer an EU provider. - [Google Postmaster Tools](https://postmaster.google.com/) is free and shows your spam rate and domain reputation at Gmail, the numbers that tell you whether an attack hurt you. - [Kairal](https://www.kairal.io/use-cases/spam-phishing/) applies bot detection per endpoint, so signup, newsletter and contact forms can each get their own protection, with a preview mode to see decisions before blocking. ## Common questions ### What should I do if my own inbox is being subscription bombed? Check your bank, shopping and email account activity directly, not through the inbox, because the flood often hides a transaction or password change. Then filter messages containing words like 'confirm your subscription' into a folder until the flood stops, and keep any real alerts as evidence. ### Does a CAPTCHA stop subscription bombing? It stops the cheap bots behind most of these floods, as long as your server verifies the token before any email is queued. Attackers can pay solving services to pass puzzles, so keep per-recipient limits as a backstop. ### What is list bombing? List bombing is the name email service providers often use for the same attack seen from the sender's side: a list receives a sudden wave of fake signups for addresses whose owners never asked to join. ## Related - [How to stop bots from submitting forms](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md) - [What is account takeover (ATO) fraud?](https://stopbots.io/learn/account-attacks/what-is-account-takeover.md) - [CAPTCHA alternatives: how to stop bots without a puzzle](https://stopbots.io/learn/captcha/captcha-alternatives.md) - [Honeypots for bot detection: hidden fields and trap links](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md) # How to stop bots on your website > Start by measuring which bots hit which pages, using server or CDN logs rather than analytics alone. Then turn on free controls: your CDN's bot setting, rate limits and verified crawler rules. Next protect the pages bots target, such as login, signup, checkout and forms, with checks fitted to each one. Add dedicated bot management when attackers adapt to the simple controls. Category: Blocking bots in practice. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/how-to-stop-bots-on-your-website/ The goal is to stop the few kinds of bots that cost you money, such as account attacks, card testing, content scraping and fake signups, while useful crawlers keep their access. Work in stages. Each stage is cheaper than the next, and what you learn in one tells you whether you need the next. ## Stage 1: find out what bots are doing on your site Use server logs or CDN logs, not only your analytics. Analytics tools count visitors that run their JavaScript tag, and Google Analytics already drops known bots, so the bots that hit your login form or API often never show up there. Our guide to [bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) covers what analytics can and cannot see. In the logs, look for these patterns: - One path getting far more POST requests than page views, such as `/login` or `/checkout`. - A high ratio of failed to successful logins, or many password reset requests. - Signups that never confirm their email, and failed card payments in small amounts. - Traffic from hosting providers. Every IP address belongs to a network with an ASN (autonomous system number), and real shoppers rarely browse from cloud servers. - User agents that claim to be Googlebot but come from networks Google does not use. A quick first check on an nginx server with the default log format lists the top addresses posting to your login page: ```bash awk '$6 ~ /POST/ && $7 ~ /^\/login/ {print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head -20 ``` The [guide to detecting bot traffic](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) goes through more signals. By the end of this stage you should know which pages are attacked, by what kind of traffic, and what it costs you. ## Stage 2: turn on the free controls These take an afternoon and cut much of the noise from scripts and scanners. - Put a CDN in front of the site and turn on its free bot setting. On Cloudflare that is Bot Fight Mode; the [Cloudflare guide](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) explains the plan differences and the API side effects. - Add rate limits to login, signup, password reset, OTP and search endpoints. The [rate limiting guide](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) explains where they work and where they fail. - Block what you never want at the server: empty user agents on form posts, known scraper tools, and xmlrpc.php if you run WordPress. The [nginx and Apache guide](https://stopbots.io/learn/implementation/block-bots-with-nginx-and-apache.md) has the config. - Allow search engines by checking their identity with a reverse DNS lookup, since anyone can copy a crawler's user agent. See [how to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md). - Use robots.txt to tell well behaved crawlers, including AI crawlers, what to skip. It is a request, and scrapers ignore it. If you run a hosted platform, start with the platform guide instead: [WordPress](https://stopbots.io/learn/implementation/stop-bots-on-wordpress.md) or [Shopify](https://stopbots.io/learn/implementation/stop-bots-on-shopify.md). ## Stage 3: protect each endpoint bots target Generic site-wide rules miss attacks that send a few valid-looking requests to one page. Give each sensitive endpoint its own control. | Endpoint | Typical bot attack | Where to start | |---|---|---| | Login | Credential stuffing | Limits per IP and per username, breached password checks, step-up checks on risk | | Signup | Fake accounts | Email and phone checks, linking devices across accounts | | Checkout and payment | Card testing | Limits per session, card and BIN, your payment provider's fraud rules | | Contact and lead forms | Spam | Honeypot fields and server-side validation | | Product, price and search pages | Scraping | Limits per client, challenges on suspicious sessions | | SMS and OTP | SMS pumping | Limits per phone prefix and per session | Each row has a full guide: [preventing credential stuffing](https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing.md), [stopping card testing](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md) and [stopping form spam](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md). Mobile apps and public APIs need different tools, because browser challenges cannot run there; see [how to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md). When you add a challenge, prefer an invisible check over a puzzle on every visit. Puzzles cost conversions and paid solving services get through them. [CAPTCHA alternatives](https://stopbots.io/learn/captcha/captcha-alternatives.md) compares the options. ## Stage 4: add dedicated bot management Move to a bot management product when you see these signs: - Attacks continue from residential IP addresses at low rates, so IP rules and rate limits no longer catch them. - Your blunt rules start blocking real customers. - Losses from account takeover, card testing or scalping are higher than the cost of a tool. - Staff spend hours each week writing and removing block rules. Bot management adds signals your server does not have: browser and device fingerprints, TLS fingerprints, behaviour, and links between sessions that share a device. Roll it out in monitor mode first, measure how many real users it would block (see [false positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md)), then enforce one endpoint at a time. [How to choose bot protection](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md) lists the questions to ask vendors. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare](https://developers.cloudflare.com/bots/) offers Bot Fight Mode and Turnstile on its free plan, which is enough for many small sites, with more bot controls on paid plans. - [CrowdSec](https://www.crowdsec.net/) is open source and free to self-host; it reads your logs, bans abusive IP addresses and shares a community blocklist. - [fail2ban](https://github.com/fail2ban/fail2ban) is a free, open source tool that bans IP addresses that trip rules in your server logs, a good fit for a single server. - [Kairal](https://www.kairal.io/product/bot-protection/) connects device, network and behavioural signals across first visit, login, signup and checkout, with protection set per endpoint and a preview mode that shows decisions before it blocks anything. - [AWS WAF Bot Control](https://aws.amazon.com/waf/features/bot-control/) adds managed bot rules to AWS WAF, which suits sites already behind CloudFront or an AWS load balancer. ## Common questions ### What causes bot traffic on a website? Any public site gets visits from search crawlers, SEO tools, uptime monitors, AI crawlers and scanners looking for known weaknesses. Targeted bot traffic starts when a site holds something worth taking, such as accounts, limited stock, prices, content or a payment form that can check stolen cards. ### Is bot traffic bad? Some of it is useful. Search engine crawlers and monitoring services do work you want done. Bots become a problem when they take something from you: account access, inventory, content, ad budget, SMS credit or server capacity. ### How do I block bot traffic for free? A free CDN plan with its bot setting on, rate limits on login and form endpoints, a honeypot field on forms and a free challenge such as Cloudflare Turnstile cover the common attacks on a small site. Open source tools like fail2ban or CrowdSec can ban abusive IP addresses based on your own server logs. ## Related - [What is bot management?](https://stopbots.io/learn/bots/what-is-bot-management.md) - [How to detect bot traffic on your website](https://stopbots.io/learn/detection/how-to-detect-bot-traffic.md) - [How to choose bot protection software](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md) - [How to block bots with Cloudflare](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) # Rate limiting for bots: what it stops and what it misses > Rate limits stop floods from a single source and simple scripts that send requests as fast as they can. They miss distributed attacks that spread requests across thousands of residential IP addresses and stay under any per-IP threshold. Key limits on more than the IP address, such as the account, session, device fingerprint, card BIN or endpoint, and pair them with bot detection. Category: Blocking bots in practice. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots/ A rate limit counts requests for a key over a time window and refuses the excess. The key decides what the limit can catch. Most default setups key on the client IP address, which is the identifier an attacker finds cheapest to change. ## What does rate limiting stop? Rate limits work well against traffic that is fast and concentrated: - Floods from one server or a small group of servers, including scrapers that fetch pages as fast as the network allows. - Simple scripts that retry a login or a coupon code in a tight loop. - Vulnerability scanners and hidden-file searches that send hundreds of requests a minute. - Your own bugs, such as a mobile app release that retries forever. They are also cheap. A limit at the CDN or reverse proxy rejects traffic before your application or database does any work. ## What does rate limiting miss? Attackers who expect rate limits spread their traffic out. A credential stuffing run through [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) can send one or two login attempts from each of thousands of home IP addresses. Each address looks like a person who mistyped a password. No per-IP threshold low enough to catch that is safe for real users. Other gaps: - [Card testing](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md) often runs at a few attempts per minute, well inside normal checkout volume. - Scrapers pace themselves to stay under limits they have measured. - Shared addresses work against you. Carrier-grade NAT (many mobile users sharing one public IP), corporate proxies and university networks put hundreds of real people behind one address, so a strict per-IP limit blocks them first. - With IPv6, one user can control a whole /64 range of addresses. Limit on the /64 prefix if your tool supports it. ## What should you rate limit on besides IP? Pick keys that the attacker has to spend money or effort to rotate: - Failed logins per username, across all IPs, catch attacks on one account. For stuffing across many accounts, watch the site-wide failure rate, as described in [how to detect credential stuffing](https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing.md). - A session or cookie counter works once sensitive actions require a valid session. A bot that drops cookies to reset its counter then fails the session check. - Device, browser and TLS fingerprints such as [JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) survive IP rotation. Thousands of IPs sharing one fingerprint is a strong sign of one operator. - The card BIN (the first six to eight digits, which identify the issuing bank) and a hash of the card number expose card testing. Many declines on one BIN in minutes is the classic pattern. - A global limit per endpoint, across all clients, works as a circuit breaker. Cap signups or OTP messages per minute for the whole site, so the attack stalls even when every other key rotates. - API keys and user tokens are the natural key for authenticated APIs. - Failures say more than raw volume. Count declined payments, 401 responses and invalid coupon codes separately from total requests. Most of these keys live in your application, not in the web server. Use the server or CDN for IP and path limits, and the application for account, card and failure counts. ## How do you rate limit bots in nginx? This config limits login attempts to 10 per minute per IP address, allows a short burst of 5, and answers the excess with 429 Too Many Requests, the status defined in [RFC 6585](https://www.rfc-editor.org/rfc/rfc6585): ```nginx http { limit_req_zone $binary_remote_addr zone=login_ip:10m rate=10r/m; limit_req_status 429; server { server_name example.com; location = /login { limit_req zone=login_ip burst=5 nodelay; proxy_pass http://127.0.0.1:8080; } } } ``` `rate=10r/m` allows one request every six seconds on average. `burst=5` lets a client go five requests over that rate before nginx rejects anything, and `nodelay` serves those burst requests at once instead of spacing them out. The [nginx limit_req docs](https://nginx.org/en/docs/http/ngx_http_limit_req_module.html) put one megabyte of zone at about 8,000 states on 64-bit platforms, so 10m tracks roughly 80,000 addresses at once. If nginx sits behind a CDN or load balancer, every request appears to come from the proxy. Use the [realip module](https://nginx.org/en/docs/http/ngx_http_realip_module.html) so `$binary_remote_addr` is the visitor's address: ```nginx set_real_ip_from 192.0.2.0/24; real_ip_header X-Forwarded-For; real_ip_recursive on; ``` Replace the range with your proxy's published ranges. You can stack a second limit on another key, such as an API key header: ```nginx limit_req_zone $http_x_api_key zone=per_key:10m rate=60r/m; ``` Then add `limit_req zone=per_key burst=20;` in the same location as the IP limit. nginx does not count requests with an empty key, so keep the IP limit for clients that send no key. Also reject unknown keys in your application, or an attacker can send a new random key with each request. ## Rate limits at the CDN CDN rate limiting runs before traffic reaches you and scales with the CDN. Plans differ. On Cloudflare, lower plans count by IP only, while counting by header, cookie, ASN or JA4 fingerprint needs the Enterprise Advanced Rate Limiting option. Check the [Cloudflare rate limiting rules docs](https://developers.cloudflare.com/waf/rate-limiting-rules/) for your plan. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [nginx limit_req](https://nginx.org/en/docs/http/ngx_http_limit_req_module.html) is built into nginx and free, and it is enough for per-IP and per-path limits on a single site. - [Cloudflare rate limiting rules](https://developers.cloudflare.com/waf/rate-limiting-rules/) apply limits at the edge, with more counting options on higher plans. - [fail2ban](https://github.com/fail2ban/fail2ban) is open source and bans addresses that keep hitting your nginx or Apache limits, which turns a short rejection into a longer block. - [CrowdSec](https://www.crowdsec.net/) is open source, detects abusive patterns in logs and shares a community blocklist of addresses seen attacking other sites. - [Kairal](https://www.kairal.io/product/bot-protection/) links device, network and behavioural signals across sessions, so a distributed attack from many IP addresses shows up as one actor, with protection set per endpoint. ## Common questions ### Does rate limiting stop bots? It stops bots that are fast and come from a few addresses. Bots that rotate through proxy pools and send a handful of requests per address pass any per-IP limit, so against a distributed attack a rate limit slows the attacker down at best. ### What status code should a rate limit return? 429 Too Many Requests, defined in RFC 6585, is the standard choice, optionally with a Retry-After header that tells well behaved clients when to come back. nginx returns 503 by default, so set limit_req_status 429. ### What is a good rate limit for a login page? There is no universal number. As a starting point, try about 10 login attempts per minute per IP address and 5 failed attempts per username in 15 minutes, then adjust from your logs by checking how many tries real users need before they succeed or reset their password. ## Related - [How to block bots with nginx and Apache](https://stopbots.io/learn/implementation/block-bots-with-nginx-and-apache.md) - [What are residential proxies and why do bots use them?](https://stopbots.io/learn/bots/what-are-residential-proxies.md) - [How to prevent credential stuffing attacks](https://stopbots.io/learn/account-attacks/how-to-prevent-credential-stuffing.md) - [How to protect APIs from bots](https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots.md) # WAF vs bot management: what is the difference? > A web application firewall (WAF) inspects each request for malicious content, such as SQL injection, cross-site scripting or known exploit patterns, and blocks what matches. Bot management judges whether a request that looks valid was sent by a person or by automation. Credential stuffing, scraping and card testing send valid requests, so a WAF on its own rarely stops them. Category: Blocking bots in practice. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/waf-vs-bot-management/ Both sit in front of your application, and both can block, challenge or rate limit a request. Vendors often sell them together and configure them in the same dashboard. They answer different questions about each request, and that difference decides which attacks each one can stop. ## What does a WAF do? A web application firewall reads the contents of a request (URL, query string, headers and body) and compares them against rules. A typical rule set looks for SQL injection, cross-site scripting, path traversal, remote file inclusion, protocol violations and exploit patterns for known vulnerabilities in common software. The [OWASP Top 10](https://owasp.org/www-project-top-ten/) lists the classes of flaws a WAF is meant to shield, and the open source [OWASP Core Rule Set](https://coreruleset.org/) is a free set of WAF rules that covers them. The evidence is in the payload. A request like this one is malicious no matter who sends it: ```http GET /products?id=1%27%20OR%20%271%27=%271 HTTP/1.1 Host: shop.example.com ``` A WAF also handles IP allow and deny lists, country rules and basic rate limits. When a new vulnerability is published, WAF vendors ship a rule for it, which buys you time to patch. ## What does bot management do? Bot management looks at requests that are valid. This login request has nothing wrong in it: ```http POST /login HTTP/1.1 Host: shop.example.com Content-Type: application/x-www-form-urlencoded email=anna%40example.com&password=s3cret-Pa55 ``` If a person typed it, it is normal. If a script sent it as one of a million username and password pairs from a breach, it is [credential stuffing](https://stopbots.io/learn/account-attacks/what-is-credential-stuffing.md). The payload cannot tell you which. Bot management answers the question with signals about the sender: the TLS fingerprint of the connection, browser and device fingerprints collected by JavaScript, behaviour such as typing and pointer movement, IP reputation and network type, and how this client's requests relate to others. [How bot detection works](https://stopbots.io/learn/detection/how-bot-detection-works.md) explains each signal. The output is usually a score or a label per request. You then set a policy per endpoint: allow, challenge, block, rate limit or log. The attacks it targets are business logic abuse, listed in the [OWASP Automated Threats](https://owasp.org/www-project-automated-threats-to-web-applications/) project: credential stuffing, [web scraping](https://stopbots.io/learn/scraping/what-is-web-scraping.md), card testing, scalping, fake account creation and inventory hoarding. ## How do a WAF and bot management compare? | | WAF | Bot management | |---|---|---| | Question asked | Is this request content malicious? | Is a person or a program sending this? | | Main evidence | URL, headers, body | TLS and browser fingerprints, behaviour, network, history | | Typical threats | Injection, XSS, exploits, protocol abuse | Credential stuffing, scraping, card testing, scalping, fake accounts | | Common false positives | Unusual but valid input, such as code in a support form | Privacy browsers, shared networks, accessibility tools | | How rules stay current | Vendor rules for new vulnerabilities | Models and signals updated as bot tools change | ## Where do they overlap? The overlap covers simple automation. Most WAFs can match user agents, block known bad IP addresses and hosting networks, apply rate limits, and serve a challenge instead of a block. Many also ship a managed list of known bots. That stops scripts that announce themselves and floods from a few servers. Vendors also package bot features into WAF products. AWS WAF Bot Control is a managed rule group inside AWS WAF. Cloudflare's Super Bot Fight Mode sits next to its WAF custom rules, and Bot Management adds a score field you can use inside WAF rules. The [Cloudflare guide](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) shows how those combine. Watch the order of evaluation. In Cloudflare, WAF custom rules run before Super Bot Fight Mode, and a Skip rule written to let a partner through can also let bots through. Review allow and skip rules whenever you add bot controls. ## Which one do you need first? Use the source of your losses as the decision rule: - If you run software with known vulnerabilities, plugins you cannot patch quickly, or custom code that takes free-form input, start with a WAF. - If your losses come from logins, signups, checkout, limited stock, prices or content, start with bot controls on those endpoints. A WAF will not see the problem. - If you have both, keep the WAF on all traffic and add bot controls per endpoint, starting with the one that costs the most. Bot management is also distinct from payment fraud tools, which score orders after checkout; [bot protection vs fraud prevention tools](https://stopbots.io/learn/ecommerce-fraud/bot-protection-vs-fraud-prevention-tools.md) covers that split. For vendor selection, see [how to choose bot protection](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [OWASP Core Rule Set](https://coreruleset.org/) is a free, open source WAF rule set for ModSecurity-compatible engines, enough for a small site that runs its own reverse proxy. - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) adds per-request bot scores to Cloudflare's WAF on Enterprise plans, with simpler bot settings on lower plans. - [AWS WAF Bot Control](https://aws.amazon.com/waf/features/bot-control/) is a managed rule group for AWS WAF that labels and acts on bot traffic, a fit for sites on CloudFront or AWS load balancers. - [Akamai Bot Manager](https://www.akamai.com/products/bot-manager) is bot management for sites already on Akamai's edge. - [Kairal](https://www.kairal.io/product/bot-protection/) is bot protection that works alongside Cloudflare, Akamai or CloudFront and applies managed rules per endpoint, such as login, signup and checkout. ## Common questions ### What is WAF bot protection? It usually means bot features sold inside a WAF product: user agent rules, IP reputation lists, rate limits and a managed list of known bots. These catch simple automation. Per-request bot scores built from fingerprints and behaviour are usually a separate, higher tier. ### Do I need both a WAF and bot management? Sites with logins, payments or limited stock usually need both, because each stops attacks the other misses. A small content site may get by with a WAF, rate limits and the free bot setting of its CDN. ### Can a WAF stop credential stuffing? Partly. WAF rate limits and IP reputation slow attacks that come from few sources. Attacks spread across residential proxies send correct-looking login requests at low rates, and no signature can tell those apart from a real user typing a password. ## Related - [What is bot management?](https://stopbots.io/learn/bots/what-is-bot-management.md) - [How to choose bot protection software](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md) - [How to block bots with Cloudflare](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) - [Bot protection vs fraud prevention tools: which do you need?](https://stopbots.io/learn/ecommerce-fraud/bot-protection-vs-fraud-prevention-tools.md) # How to block bots with Cloudflare > Cloudflare has bot controls on every plan. Free plans get Bot Fight Mode, Pro, Business and Enterprise get Super Bot Fight Mode, and Enterprise customers can add Bot Management, which gives every request a bot score. WAF custom rules, rate limiting rules and Turnstile protect specific pages. You still have to tune the rules and decide what each score means on each endpoint. Category: Blocking bots in practice. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/block-bots-with-cloudflare/ Cloudflare's bot features depend on your plan, and Cloudflare renames and moves them often. Check the [Cloudflare bots documentation](https://developers.cloudflare.com/bots/) for your plan before you rely on a specific feature. ## What do Bot Fight Mode and Super Bot Fight Mode do? [Bot Fight Mode](https://developers.cloudflare.com/bots/get-started/bot-fight-mode/) is the free option. It spots requests that match known bot patterns and answers them with computationally expensive challenges. Know its limits before you turn it on: it covers the whole domain, WAF custom rules cannot skip it, and Cloudflare warns that it may challenge API and mobile app traffic. [Super Bot Fight Mode](https://developers.cloudflare.com/bots/get-started/super-bot-fight-mode/) is for Pro, Business and Enterprise plans (Enterprise accounts without the Bot Management add-on get the Business feature set). You set one action per group: definitely automated traffic (bot score 1) on Pro and above, likely automated traffic (scores 2 to 29) on Business and above, and verified bots such as search engine crawlers. It adds static resource protection and JavaScript detections, and you can exclude paths with a custom rule that uses the Skip action. Cloudflare suggests starting login protection with Managed Challenge for definitely automated and (on Business) likely automated traffic, and Allow for verified bots. Review Security Events for a few days, then switch definitely automated traffic to Block if no real users show up there. ## How do bot scores work in Cloudflare Bot Management? Bot Management is an add-on for Enterprise plans. It gives every request a [bot score](https://developers.cloudflare.com/bots/concepts/bot-score/) from 1 to 99: 1 means Cloudflare is confident the request is automated, 2 to 29 is likely automated, and 30 to 99 is likely human. A score of 0 means no score was computed, which does not make the request safe. Bot Management blocks nothing by itself. You write custom rules that use the score, along with fields such as JA3 and JA4 TLS fingerprints, detection IDs and the verified bot flag. A starting policy to adapt: - Login, signup and checkout: Managed Challenge below 30, Block at 1. - Product and content pages: log low scores first, then rate limit them. - APIs used by your mobile app: no challenge; use rate limits and app attestation. Scores can shift when Cloudflare retrains its model, so review score-based rules on a schedule. ## Which WAF custom rules block bots? [WAF custom rules](https://developers.cloudflare.com/waf/custom-rules/) take expressions in the Cloudflare Rules language. The fields that matter most for bots are `http.user_agent`, `http.request.uri.path`, `http.request.method`, `ip.src.asnum` (the client's network; older rules use the deprecated name `ip.geoip.asnum`), `cf.client.bot` (true for verified good bots, the same value as `cf.bot_management.verified_bot`) and, with Bot Management only, `cf.bot_management.score`. The [fields reference](https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/) lists the rest. Challenge login and signup posts that are not from verified bots (action: Managed Challenge): ```txt (http.request.uri.path in {"/login" "/signup"} and http.request.method eq "POST" and not cf.client.bot) ``` Block form posts with an empty user agent or a common scripting library (action: Block). It only stops bots that admit what they are: ```txt (http.request.method eq "POST" and (http.user_agent eq "" or lower(http.user_agent) contains "python-requests")) ``` Challenge sensitive paths from hosting networks you see in your logs (action: Managed Challenge), replacing the placeholder ASNs with the networks attacking you: ```txt (ip.src.asnum in {64496 64497} and http.request.uri.path in {"/login" "/checkout"} and not cf.client.bot) ``` With Bot Management, one score rule can replace many hand-made lists: ```txt (cf.bot_management.score lt 30 and not cf.bot_management.verified_bot and not cf.bot_management.static_resource) ``` With the Managed Challenge action, Cloudflare picks the kind of check per visitor, from non-interactive to interactive. Challenge pages are full HTML pages, so they fail on `fetch` or XHR requests, such as a login form in a single-page app. For those, Cloudflare recommends Turnstile pre-clearance, described in its [challenge pages docs](https://developers.cloudflare.com/cloudflare-challenges/challenge-types/challenge-pages/). ## Rate limiting rules, Turnstile and AI crawler controls [Rate limiting rules](https://developers.cloudflare.com/waf/rate-limiting-rules/) cap requests per client on a path. Free and Pro plans count by IP address only. Business and above can count failed logins alone by matching the response code, and the Enterprise Advanced Rate Limiting option counts by header, cookie, ASN or JA4 fingerprint. The [rate limiting guide](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) explains what IP-based limits miss. [Turnstile](https://developers.cloudflare.com/turnstile/) is Cloudflare's CAPTCHA alternative for forms, and it works on sites not proxied through Cloudflare too. The widget issues a token that your server must validate with the Siteverify API, or it protects nothing. [reCAPTCHA vs hCaptcha vs Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md) compares the options. For AI crawlers, every plan has a managed setting that blocks known AI bots, grouped by what they do (search, agent or training) with an action per group. See the [AI crawler and agent access docs](https://developers.cloudflare.com/bots/additional-configurations/block-ai-bots/) and our guide on [how to block AI crawlers](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md). ## What does Cloudflare not do for you? Rule tuning is your job. Start new rules with Managed Challenge and measure how many real users you catch before you block; [false positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md) covers how. The same applies to scores: a score that is fine on a blog post can be too risky on a gift card checkout, and only you can set that policy. Logged-in abuse is mostly outside its view. Multi-accounting, promo abuse and fake account farms often pass bot checks because a person or a real browser does the work. Stopping them needs account-level signals such as devices shared between accounts, account age, payment details and addresses. Cloudflare offers some account abuse detections to Enterprise Bot Management customers, but most of the data that links accounts sits in your own systems; see [how to detect multi-accounting](https://stopbots.io/learn/fake-accounts/how-to-detect-multi-accounting.md). Bots that reach your origin directly skip Cloudflare entirely. If your server's IP address is known, configure the origin to accept traffic only from Cloudflare. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) gives per-request bot scores on Enterprise plans; the free and Pro bot settings are enough for many small sites. - [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/) is a free challenge for forms that works with or without the Cloudflare proxy. - [CrowdSec](https://www.crowdsec.net/) is open source and can push its blocklist decisions to Cloudflare, adding community IP reputation to a free plan. - [Kairal](https://www.kairal.io/integrations/) works alongside Cloudflare and links device, network and behavioural signals across login, signup and checkout, which helps with account-level abuse that edge rules miss. ## Common questions ### Can Cloudflare stop bots? It stops many automated requests at the edge, especially from simple scripts, hosting networks and known bad bots. Bots that drive real browsers through residential proxies, and people abusing accounts with light automation, need tuned rules and signals from your own application. ### Is Cloudflare bot protection free? Bot Fight Mode, the AI crawler controls, Turnstile and a basic rate limiting rule are available on the Free plan. Super Bot Fight Mode needs Pro or a higher plan, and per-request bot scores need the Bot Management add-on for Enterprise plans. ### Why is Cloudflare bot protection blocking my API or mobile app? Bot Fight Mode applies to the whole domain and cannot be skipped with custom rules, so it can challenge API clients and mobile apps that cannot run a challenge. Super Bot Fight Mode on Pro and above lets you exclude paths with a custom rule that uses the Skip action. ### What is the difference between Cloudflare Bot Management and Turnstile? Bot Management scores every request at the edge without the visitor doing anything. Turnstile is a widget you place on a page, usually on a form, that issues a token your server must check. Many sites use Turnstile on forms and bot settings or scores everywhere else. ## Related - [How to block AI crawlers: robots.txt, Cloudflare and nginx](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) - [WAF vs bot management: what is the difference?](https://stopbots.io/learn/implementation/waf-vs-bot-management.md) - [reCAPTCHA vs hCaptcha vs Cloudflare Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md) - [How to stop bots on your website](https://stopbots.io/learn/implementation/how-to-stop-bots-on-your-website.md) # How to block bots with nginx and Apache > In nginx, match unwanted user agents with a map and return 403, cap request rates with limit_req, and block networks with deny or the geo module. In Apache, use mod_rewrite conditions on HTTP_USER_AGENT and Require not ip inside RequireAll. These rules stop bots that announce themselves or come from a few networks. Bots that copy a browser's user agent and rotate IP addresses need other signals. Category: Blocking bots in practice. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/block-bots-with-nginx-and-apache/ Server rules are free and fast, and they run before your application spends any work on a request. They only see what the request declares about itself. A bot that sends a current Chrome user agent from a fresh residential IP address passes every rule on this page. Use these rules to remove the bots that announce themselves or hammer you from a few networks, so your logs and any detection you add later can focus on the rest. ## How do you block bots by user agent in nginx? Use a `map` to turn the User-Agent header into a flag, then return 403 when the flag is set. The `map` block goes in the `http` context, for example in a file under `/etc/nginx/conf.d/`: ```nginx map $http_user_agent $block_ua { default 0; "" 1; ~*(python-requests|scrapy|go-http-client|curl/|wget/) 1; } server { server_name example.com; if ($block_ua) { return 403; } } ``` `~*` makes the match case-insensitive. Test with `nginx -t` before you reload. A rule like this only stops bots that tell the truth about what they are; anything sending a browser's user agent walks past it. Check the list against your own traffic first: uptime monitors, payment webhooks and partner integrations often use curl or a Go client. If they do, apply the rule only to form posts or to the paths bots attack. Never allow a search engine by user agent alone, because anyone can claim to be Googlebot. Check with a reverse DNS lookup, as shown in [how to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md). For AI crawlers that do identify themselves, our guide on [how to block AI crawlers](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) covers the user agents to match. ## How do you rate limit bots in nginx? `limit_req_zone` defines a counter and `limit_req` applies it. Both zone definitions and `limit_req_status` go in the `http` context: ```nginx limit_req_zone $binary_remote_addr zone=per_ip:10m rate=10r/s; limit_req_zone $binary_remote_addr zone=login:10m rate=10r/m; limit_req_status 429; server { server_name example.com; location / { limit_req zone=per_ip burst=40 nodelay; proxy_pass http://127.0.0.1:8080; } location = /login { limit_req zone=login burst=5 nodelay; proxy_pass http://127.0.0.1:8080; } } ``` The numbers are starting points. If nginx also serves your images and scripts, a page view can fire dozens of requests, so raise the general limit or leave static locations out of it. The [rate limiting guide](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) covers what to key on besides IP. ## How do you block IP ranges in nginx? For a few ranges, use `deny` from the [access module](https://nginx.org/en/docs/http/ngx_http_access_module.html). Rules are checked in order and the first match wins: ```nginx location / { deny 192.0.2.0/24; deny 2001:db8::/32; allow all; proxy_pass http://127.0.0.1:8080; } ``` For longer lists, the [geo module](https://nginx.org/en/docs/http/ngx_http_geo_module.html) scales better and keeps the ranges in their own file: ```nginx geo $blocked_net { default 0; include /etc/nginx/blocked-networks.conf; } server { if ($blocked_net) { return 403; } } ``` Each line in `blocked-networks.conf` is a range and a value, such as `198.51.100.0/24 1;`. The `geo` block goes in the `http` context. If nginx sits behind a CDN or load balancer, it sees the proxy's address. Configure the [realip module](https://nginx.org/en/docs/http/ngx_http_realip_module.html) with `set_real_ip_from` and `real_ip_header` first, so `deny` and `geo` act on the visitor's address. IP lists also go stale fast. Bots on [residential proxies](https://stopbots.io/learn/bots/what-are-residential-proxies.md) use home addresses that real customers will hold tomorrow, so prefer short bans on observed behaviour over permanent lists. ## How do you block bots in Apache .htaccess? With [mod_rewrite](https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html), match the user agent and return 403 with the `F` flag: ```apache RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^$ [OR] RewriteCond %{HTTP_USER_AGENT} (python-requests|scrapy|go-http-client|curl/|wget/) [NC] RewriteRule ^ - [F] ``` `[NC]` makes the match case-insensitive and `[OR]` joins the two conditions. In `.htaccess` this needs `AllowOverride FileInfo` on the directory. To block IP ranges in Apache 2.4, use `Require not ip` from [mod_authz_core](https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html). A negative `Require` cannot stand alone, so wrap it in `RequireAll` with a positive rule: ```apache Require all granted Require not ip 192.0.2.0/24 198.51.100.0/24 Require not ip 2001:db8::/32 ``` In `.htaccess` this needs `AllowOverride AuthConfig`. Do not mix it with the Apache 2.2 `Order`, `Allow` and `Deny` directives, which behave differently when combined. [mod_ratelimit](https://httpd.apache.org/docs/2.4/mod/mod_ratelimit.html) is often mistaken for a request limiter. It limits response bandwidth per client. For request counts, use a third-party module such as mod_evasive or mod_qos, put nginx or a CDN in front, or let fail2ban ban addresses from the logs. ## How do fail2ban and CrowdSec help? Both read your logs and ban addresses that misbehave. [fail2ban](https://github.com/fail2ban/fail2ban) adds a firewall rule for a set time. It ships filters for common cases, including `nginx-limit-req`, which reads the "limiting requests" errors nginx writes when `limit_req` rejects a client, and `apache-badbots`. A jail in `/etc/fail2ban/jail.local`: ```txt [nginx-limit-req] enabled = true port = http,https logpath = /var/log/nginx/error.log findtime = 600 maxretry = 10 bantime = 3600 ``` [CrowdSec](https://www.crowdsec.net/) works the same way with more detection scenarios, and it shares a community blocklist built from attacks seen on other servers. Its remediation components enforce bans in nginx, in the host firewall or at Cloudflare. Keep bans short. One address can be a mobile carrier's NAT gateway with thousands of customers behind it. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [fail2ban](https://github.com/fail2ban/fail2ban) is free and open source, and it is enough to turn nginx and Apache rejections into firewall bans on a single server. - [CrowdSec](https://www.crowdsec.net/) is open source, adds behaviour scenarios and a shared blocklist, and runs across many servers. - [Cloudflare](https://developers.cloudflare.com/bots/) on its free plan filters known bot patterns before they reach your server; see our [Cloudflare guide](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md). - [Kairal](https://www.kairal.io/integrations/) integrates at a reverse proxy or the CDN and adds device and behavioural signals that server rules cannot see, with protection set per endpoint. ## Common questions ### Can nginx detect bots? nginx can match what a request declares: the user agent, the IP address, the path and the request rate. Without extra modules it does not run JavaScript in the browser or read TLS fingerprints, so it cannot tell a real browser from a well disguised bot. ### Should I block bots by user agent? Block user agents you never want, such as scraping libraries and empty values on form posts, because it costs nothing. Do not count it as protection against a determined attacker, since any script can send a current Chrome user agent string. ### Does mod_ratelimit limit requests in Apache? No. mod_ratelimit limits the bandwidth of each response sent to a client. To limit request counts in Apache, use a third-party module such as mod_evasive or mod_qos, a rate-limiting proxy in front, or fail2ban reading the access log. ## Related - [Rate limiting for bots: what it stops and what it misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) - [How to block AI crawlers: robots.txt, Cloudflare and nginx](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) - [How to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md) - [How to block bots with Cloudflare](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) # How to stop bots on WordPress > Block xmlrpc.php if nothing uses it, rate limit wp-login.php and turn on two-factor login for admins, filter comment and form spam with Akismet or a honeypot, and add a firewall plugin such as Wordfence. Put a CDN or WAF in front so bots are stopped before they reach PHP. On WooCommerce stores, protect checkout and the Store API against card testing. Category: Blocking bots in practice. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/stop-bots-on-wordpress/ Bots know the default paths of a WordPress site and try them on every site they find: `/wp-login.php`, `/xmlrpc.php`, comment forms, plugin files with known vulnerabilities and, on shops, the WooCommerce checkout. Because the targets are the same on every install, the fixes are well known too. ## How do you stop brute-force attacks on wp-login.php? Limit login attempts. A plugin such as Wordfence or Limit Login Attempts Reloaded does it inside WordPress. A server rule does it before PHP starts, which is cheaper. On nginx, this counts only POST requests to the login page, so visitors who load the form are not counted: ```nginx map $request_method $wp_login_key { POST $binary_remote_addr; default ""; } limit_req_zone $wp_login_key zone=wplogin:10m rate=6r/m; server { location = /wp-login.php { limit_req zone=wplogin burst=3 nodelay; limit_req_status 429; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/run/php/php-fpm.sock; } } ``` The `map` and `limit_req_zone` lines go in the `http` context. nginx skips requests whose key is empty, which is how GET requests escape the limit. An exact `location =` match takes priority over your general PHP location, so copy the FastCGI lines from your existing PHP block; the socket path differs between systems. Then reduce what a successful guess is worth. Turn on two-factor login for every administrator and editor, and do not use `admin` as a username. WordPress exposes author slugs, which often match usernames, at `/?author=1` and through the REST API at `/wp-json/wp/v2/users`, so assume attackers know them. The difference between guessing one account and testing leaked passwords across many is covered in [credential stuffing vs brute force vs password spraying](https://stopbots.io/learn/account-attacks/credential-stuffing-vs-brute-force-vs-password-spraying.md). ## Should you block xmlrpc.php? XML-RPC is an older remote API. Its `system.multicall` method lets one request carry many login attempts, which gets around per-request login limits, and its pingback feature has been abused to send traffic at other sites. If nothing on your site needs it, block it at the server. nginx: ```nginx location = /xmlrpc.php { deny all; } ``` Apache 2.4, in `.htaccess` or the virtual host: ```apache Require all denied ``` Jetpack and some remote publishing apps use XML-RPC. If you rely on them, keep the file and rate limit it like `wp-login.php` instead. ## How do you stop comment and form spam? [Akismet](https://wordpress.org/plugins/akismet/) checks comments against a shared spam service, and many contact form plugins can send submissions through it as well. Add a hidden honeypot field to forms, which real visitors never fill in; see [honeypots for bot detection](https://stopbots.io/learn/detection/honeypots-for-bot-detection.md). If spam still gets through, add an invisible challenge such as Cloudflare Turnstile through a plugin. [How to stop bots from submitting forms](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md) covers server-side checks that work with any form plugin. If you do not need comments, turn them off under Settings, Discussion. The same screen can close comments on posts older than a set number of days, which shrinks the target on an old blog. ## Add a firewall plugin and a CDN in front [Wordfence](https://www.wordfence.com/) is a common choice. It adds a firewall inside WordPress, login security with two-factor authentication, rate limiting and a malware scanner. The free version receives new firewall rules later than the paid one. Because it runs in PHP, each blocked request still costs some server work. A CDN or WAF in front stops bots before they reach the server at all. Cloudflare's free plan with Bot Fight Mode is a common starting point, and on Pro and Business, Super Bot Fight Mode has a setting that keeps WordPress loopback requests working. The [Cloudflare guide](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) has rule examples, and the [nginx and Apache guide](https://stopbots.io/learn/implementation/block-bots-with-nginx-and-apache.md) covers server-level blocks. Page caching also matters. Bots hitting cached pages cost little. Uncached endpoints cost the most: search (`/?s=`), the cart, `admin-ajax.php` and `wp-json`. Put your rate limits on those. ## How do you protect WooCommerce checkout from bots? The bot attack that costs WooCommerce stores most directly is card testing: scripts placing many small orders to find out which stolen cards work. They often skip the checkout page and post straight to the Store API at `/wp-json/wc/store/v1/checkout`. WooCommerce includes [rate limiting for the Store API](https://developer.woocommerce.com/docs/apis/store-api/rate-limiting/), and the setting "Rate limiting Checkout block and Store API" under WooCommerce, Settings, Advanced, Features turns it on for checkout. A limit keyed on IP address slows card testing, but attackers who rotate addresses get through. Pair it with your payment provider's fraud rules, and watch for clusters of failed payments, guest orders with random email addresses and many cards sharing one BIN. [How to stop card testing](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md) has the full checklist, and Kairal's guide to [card testing on WooCommerce](https://www.kairal.io/blog/card-testing-woocommerce/) covers the store side in more detail. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Wordfence](https://www.wordfence.com/) adds a firewall, login limits and two-factor login inside WordPress; the free version is enough for many small sites. - [Akismet](https://wordpress.org/plugins/akismet/) filters comment and form spam through a hosted service and suits any site that accepts comments. - [Limit Login Attempts Reloaded](https://wordpress.org/plugins/limit-login-attempts-reloaded/) is a free plugin that locks out addresses after repeated failed logins, for sites that want only that one feature. - [Cloudflare](https://developers.cloudflare.com/bots/) puts bot settings and a WAF in front of the site, with a free plan that covers basic bot blocking. - [Kairal for WooCommerce](https://www.kairal.io/protection/woocommerce/) protects login, signup and checkout with device, network and behavioural signals, aimed at card testing and account abuse on stores. ## Common questions ### Should I disable xmlrpc.php in WordPress? Disable it if you do not use Jetpack, remote publishing tools or an app that posts through XML-RPC, since those are its main users. After blocking it, test any plugin that connects your site to an outside service. ### Does Wordfence stop bots? Wordfence blocks known attack patterns, limits login attempts and can block addresses that break its rate limits. It runs inside WordPress, so every bot request still reaches PHP first. A CDN or server rule stops large volumes earlier and saves server resources. ### How do I block bot traffic on WordPress for free? Block xmlrpc.php, add a login limit through a plugin or your server, keep Akismet or a honeypot on forms, and put the site behind a free CDN plan with its bot setting on. Free versions of the main security plugins are often enough for small blogs and brochure sites. ## Related - [How to stop bots from submitting forms](https://stopbots.io/learn/ad-fraud/how-to-stop-form-spam.md) - [How to stop card testing attacks](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md) - [How to block bots with Cloudflare](https://stopbots.io/learn/implementation/block-bots-with-cloudflare.md) - [How to stop bots on your website](https://stopbots.io/learn/implementation/how-to-stop-bots-on-your-website.md) # How to stop bots on Shopify > On Shopify you cannot change servers or firewalls, so you work with store settings, apps and order handling. Keep spam protection on for forms, set purchase limits with an app or Shopify Functions, review risky orders with fraud analysis and Shopify Flow, cancel and restock bot orders, and keep products unpublished until launch. Shopify Plus stores can also schedule checkout bot protection for drops. Category: Blocking bots in practice. Level: Basic. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/stop-bots-on-shopify/ Shopify runs the servers, the CDN and the checkout for every store. You never patch a server, and you also lose the controls developers use elsewhere: no nginx rules, no WAF of your own, no code running on the checkout server. What you control is store settings, apps, how and when products are published, and what you do with orders after they arrive. Shopify changes features and plan limits, so confirm each setting in the [Shopify Help Center](https://help.shopify.com/en/manual/checkout-settings/bot-protection) before a big launch. ## What does Shopify do about bots for you? Several protections run without any setup: - Spam protection adds hCaptcha to contact, newsletter and comment forms, and, on stores that use legacy customer accounts, to the login, create account and password recovery pages. It is on by default, and you can check it under Online Store, Preferences, in the spam protection section. Leave it on unless you have a reason not to. - Shopify Payments assesses risk each time a customer submits checkout, and can block some high-risk attempts before an order exists. Fraud analysis can also block an IP address for a while when many orders or failed payments come from it in a short time, according to Shopify's [fraud analysis help page](https://help.shopify.com/en/manual/orders/fraud-analysis). - Infrastructure protection, such as absorbing traffic floods, is Shopify's job and is not something you configure. On Shopify Plus, you can also request [checkout bot protection](https://help.shopify.com/en/manual/checkout-settings/bot-protection) from Plus Support. Once it is active, you schedule a protection event of up to 60 minutes, choose up to 500 products or all products, and pick a reCAPTCHA or hCaptcha checkpoint that buyers pass before checkout. It works only on the Online Store sales channel, and Shopify describes it as a tool against auto-checkout bots, not against fraud. ## How do you stop bots from buying limited products? Set purchase limits. Apps in the Shopify App Store can cap quantity per order or per customer. Developers can write a cart and checkout validation function with [Shopify Functions](https://shopify.dev/docs/api/functions/latest/cart-and-checkout-validation); Shopify's own example caps how many units of a product a customer can buy. A per-order cap does not stop one bot placing many orders, so pair it with order review. Keep products hidden until launch. Leave the product as a draft or unpublished from the Online Store channel until release time. Once a product is published, bots can read its variant IDs from the storefront and add it to a cart directly, without loading the product page. For high-demand drops, a raffle removes the advantage of speed, so the work moves to spotting duplicate entries. [Do raffles stop bots?](https://stopbots.io/learn/scalping/do-raffles-stop-bots.md) covers when that works, and [how to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) covers the wider playbook. Bots that hold stock in carts without paying are described in [inventory hoarding bots](https://stopbots.io/learn/scalping/inventory-hoarding-bots.md). ## How do you handle bot orders after they arrive? Review before you fulfil. Fraud analysis gives eligible orders a low, medium or high risk recommendation. Shopify advises basing the decision on the recommendation, not on single indicators, and waiting for analysis to finish before fulfilment. Automate the obvious cases with [Shopify Flow](https://help.shopify.com/en/manual/orders/flow). Its templates include "Cancel and restock high risk orders", which cancels, restocks, tags the order and customer and sends a notification. Shopify recommends the "Order risk analyzed" trigger for these workflows instead of "Order created", because analysis takes time. If you capture payments manually, the "Capture payment if order is not high fraud risk" template holds back high-risk orders before money moves. For drops, check orders by hand as well. Signs of checkout bots: - Many orders within seconds of release. - Shipping addresses that differ only by spelling, such as "Apt 4" and "Apartment #4". - One card BIN, email pattern or phone number across many orders. - New customer accounts created minutes before the drop. When you cancel, choose to restock the items and refund the payment, so the stock goes back on sale. A flood of small orders with declined payments is a different problem; see [what card testing is](https://stopbots.io/learn/ecommerce-fraud/what-is-card-testing.md) and how to respond to it. ## What about bot visits in your analytics? Bots that only browse cost you clean data, because analytics tools count some bot sessions as visitors. [How to identify and filter bot traffic in GA4](https://stopbots.io/learn/ad-fraud/bot-traffic-in-ga4.md) shows how to spot them. Fake customer accounts with random names usually come from signup bots; keep hCaptcha on the account pages, and delete the fake accounts from the customer list when a wave arrives. Kairal also has a guide to [bot orders on Shopify](https://www.kairal.io/blog/bot-orders-shopify/). ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Shopify bot protection](https://help.shopify.com/en/manual/checkout-settings/bot-protection) adds a scheduled checkout checkpoint for Shopify Plus stores during launches. - [Shopify Flow](https://help.shopify.com/en/manual/orders/flow) automates cancelling, restocking and tagging high-risk orders, with ready-made risk templates. - [Signifyd](https://www.signifyd.com/) reviews orders for fraud and offers chargeback protection, a fit for stores with enough order volume to justify a paid fraud service. - [Riskified](https://www.riskified.com/) provides order fraud screening with a chargeback guarantee for larger stores. ## Common questions ### How do I stop bot traffic on Shopify? Bot visits that buy nothing mostly distort your analytics, because Shopify serves and pays for the traffic. Filter them out of reports, and spend your effort on bots that create accounts, submit forms, test cards or buy limited stock. ### What is the best bot protection app for Shopify? It depends on the problem. Purchase limit and launch apps help with drops, fraud apps help with card testing and risky orders, and spam apps help with fake signups. Apps run inside Shopify's limits and cannot filter traffic before it reaches your store, so check what an app can see and block. ### Why am I getting fake orders on Shopify? Many small orders with failed or mixed payment results usually point to card testing. Orders for limited items placed seconds after release, often with slight variations of one address, usually point to checkout bots. Card testing needs payment controls, and checkout bots need purchase limits and order review. ## Related - [How to stop bots from buying your products](https://stopbots.io/learn/scalping/how-to-stop-bots-from-buying-products.md) - [How to stop card testing attacks](https://stopbots.io/learn/ecommerce-fraud/how-to-stop-card-testing.md) - [What are scalper bots?](https://stopbots.io/learn/scalping/what-are-scalper-bots.md) - [How to stop bots on your website](https://stopbots.io/learn/implementation/how-to-stop-bots-on-your-website.md) # How to protect APIs from bots > APIs need controls that do not depend on a browser. Authenticate every client, set quotas per key, account and endpoint, attest mobile apps with Apple App Attest or Google Play Integrity, and watch TLS fingerprints and behaviour per token. Validate request schemas and the order of calls, so a client that skips the steps your real app takes stands out. Category: Blocking bots in practice. Level: Advanced. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/how-to-protect-apis-from-bots/ Bots often go straight to the API behind a website or mobile app. An API returns structured data, skips page rendering and often has weaker checks than the pages that call it. Mobile APIs are public by design: anyone can install the app on a phone they control and read every request it makes. ## What is OWASP API6:2023? The OWASP API Security Top 10 calls this risk [Unrestricted Access to Sensitive Business Flows](https://api-security.owasp.org/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/). Each request is valid and authorised, and the harm comes from doing it at machine scale: buying all the stock of a limited product, creating thousands of accounts, sending OTP messages to premium numbers, redeeming every referral bonus, or pulling a whole price catalogue. OWASP's advice is to identify those flows and add protections suited to each. For each endpoint, ask what happens if a script calls it a million times with valid inputs. Purchase, signup, login, password reset, OTP send, coupon redemption, booking, review posting, search and pricing endpoints usually make the list. The OWASP automated threats catalogue, explained in [OWASP automated threats in plain English](https://stopbots.io/learn/bots/owasp-automated-threats.md), helps you name each attack. Volume and cost limits belong to a separate item, API4:2023 Unrestricted Resource Consumption. ## Why don't browser challenges work for APIs? JavaScript challenges and CAPTCHAs need a browser that renders a page and runs a script. A mobile app's network layer, a partner's server or a command-line client gets an HTML challenge page where it expected JSON, and the call fails. That is why CDN bot settings that apply to a whole domain often break mobile apps. Split your API traffic by client type: - Calls from your own web pages can carry a token from a check that ran on the page, such as a Turnstile pre-clearance cookie or a bot vendor's session token, and the API checks that token. - Calls from your mobile apps need app attestation and an SDK, covered below. - Server-to-server calls from partners need strong authentication and per-key quotas, with no challenge at all. ## Authentication and per-key quotas Give every client an identity: API keys for partners, OAuth or session tokens for users. Keep anonymous clients off expensive or sensitive endpoints. Set quotas on several keys at once: per API key, per user account, per endpoint, and a global cap per endpoint that protects you when every other key rotates. Separate short burst limits from daily totals. Count failures as well as requests: 401 responses, declined payments and invalid coupon codes. The [rate limiting guide](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) explains why IP-only limits fail against proxy pools. Return a clear response when a limit trips: ```http HTTP/1.1 429 Too Many Requests Retry-After: 60 Content-Type: application/json {"error": "rate_limited", "retry_after": 60} ``` Treat a key shipped inside a mobile app or a web bundle as public. Anyone can extract it, so it identifies an app version, not a trusted caller. ## How does mobile app attestation help? Both mobile platforms let your server check that a request comes from your unmodified app on a genuine device. [Apple App Attest](https://developer.apple.com/documentation/devicecheck), part of the DeviceCheck framework, has the app create a key pair in the device's Secure Enclave and ask Apple to attest it. Your server verifies the attestation once, stores the public key, and then checks a signed assertion on sensitive requests. The private key never leaves the hardware, so it cannot be copied into a script. [Google Play Integrity](https://developer.android.com/google/play/integrity) returns a signed verdict about the app (is it the build you published), the device (does it pass Android integrity checks) and the Play licence. Your server requests the verdict with a nonce or request hash tied to the call, then verifies it with Google, which stops an attacker replaying an old verdict. Rules for both: - Attest at session start or on sensitive actions instead of on every call, since both services limit request volume and add latency. - Bind the attestation to the request through a server nonce or a hash of the request body. - Roll out in log-only mode first. Rooted phones, custom ROMs and old devices fail checks for reasons unrelated to fraud, and a hard block on day one will hit real users. - Attestation shows that the device and app are genuine. A farm of real phones running your real app passes it, so keep behaviour checks. ## What can request signing do? Many apps sign requests with an HMAC (a keyed hash) using a secret stored in the app. Signing with a timestamp and nonce stops simple replay and blocks clients built from captured traffic alone. It does not hold up against someone who reverse engineers the app, because the secret is in the binary. Rotate signing secrets with each app release, reject old app versions after a grace period, and where you can, sign with an attested hardware key instead of a shared secret. ## TLS fingerprinting and behaviour per token Every HTTP client library opens a TLS connection in its own way: the cipher suites, extensions and their order. A TLS fingerprint such as [JA4](https://github.com/FoxIO-LLC/ja4) summarises that handshake. Your iOS app built on the system networking stack produces a small, stable set of fingerprints. A Python script that copies your app's headers produces a different one. List the fingerprints your real app versions produce and alert on traffic that claims to be the app but does not match. OS updates change fingerprints, so refresh the list with each release. [TLS fingerprinting with JA3 and JA4](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) explains how these fingerprints are built. Then track behaviour per token and per device: - Requests per session and per minute, compared with what your app's screens can produce. - How many accounts log in from one device, and how many devices use one account. - How many IP addresses and countries one token appears from. A session token seen from dozens of networks in an hour has been shared or stolen. - The time between calls. Real users pause on screens; scripts call at fixed or minimal intervals. For login endpoints, [how to detect credential stuffing](https://stopbots.io/learn/account-attacks/how-to-detect-credential-stuffing.md) lists the signals. ## Validate schemas and call sequences Validate each request against a schema, for example an [OpenAPI](https://spec.openapis.org/oas/latest.html) definition. Reject unknown fields, wrong types and missing headers your app always sends. Bots built from captured traffic often send fields from an older app version or forget a header the current app adds. Then check the order of calls. Your real app follows a path: it fetches configuration, loads a product, creates a cart, then checks out. A bot often jumps straight to the last call. Making every client walk the full sequence forces an attacker to run your real app end to end, which costs far more than replaying one request. Enforce the steps on the server: - Issue a token at each step that the next step requires, such as a cart ID created in the same session before checkout accepts it. - Reject OTP send requests that do not follow the call that opens the login or signup screen in the same session; [SMS pumping fraud](https://stopbots.io/learn/account-attacks/sms-pumping-fraud.md) shows why this endpoint needs it. - Flag sessions that call search or price endpoints thousands of times without ever viewing a product. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Apple App Attest](https://developer.apple.com/documentation/devicecheck) lets your server check that requests come from your genuine iOS app on a real Apple device, and it is free to use. - [Google Play Integrity](https://developer.android.com/google/play/integrity) gives your server a signed verdict on the Android app and device, free to use within a daily request quota. - [Cloudflare API Shield](https://developers.cloudflare.com/api-shield/) adds schema validation and API discovery at the edge for APIs already behind Cloudflare. - [Kairal](https://www.kairal.io/industries/saas-ai-apis/) evaluates API traffic through an API integration or at the edge, linking device, network and behavioural signals per endpoint for SaaS and AI APIs. ## Common questions ### Can you use a CAPTCHA on an API? Not directly, because an API client has no page to show it on. Your own app can handle a challenge-required response by showing a challenge in its interface and sending the token back, but solving services can still produce tokens, so treat it as added cost for the attacker. ### What is OWASP API6:2023? It is Unrestricted Access to Sensitive Business Flows in the OWASP API Security Top 10. It covers APIs that let automation buy stock, create accounts, post content or redeem offers at a scale the business never intended, even when every single call is valid. ### How do you detect bots in a mobile app? Use platform attestation to check that requests come from your genuine app on a real device, then add rate and behaviour signals per device and per account. Attestation shows the app and device are genuine; it does not show a person is using them, so farms of real phones still need behaviour checks. ## Related - [TLS fingerprinting for bot detection: JA3 and JA4 explained](https://stopbots.io/learn/detection/tls-fingerprinting-ja3-ja4.md) - [Rate limiting for bots: what it stops and what it misses](https://stopbots.io/learn/implementation/are-rate-limits-enough-to-stop-bots.md) - [SMS pumping fraud: when bots attack your OTP endpoint](https://stopbots.io/learn/account-attacks/sms-pumping-fraud.md) - [OWASP automated threats: the 21 bot attacks in plain English](https://stopbots.io/learn/bots/owasp-automated-threats.md) # How to choose bot protection software > Start from the attacks you need to stop and the endpoints they hit. Then compare tools on where they deploy, which clients they cover, the friction their challenges add, the evidence behind each decision, false-positive handling, data residency and pricing. Run a proof of concept in monitor mode on your own traffic before you sign. Small sites often need only their CDN's built-in features or open source tools. Category: Blocking bots in practice. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/how-to-choose-bot-protection/ Bot protection products describe themselves in nearly the same words, so feature lists will not separate them. The differences show up in how they deploy, what they do with mobile and API traffic, and what happens when they block a real customer. ## Start with the problem and the endpoints Write down four things before you contact a vendor: - The attacks you see, such as credential stuffing, scraping, card testing or fake accounts. - The endpoints they hit, such as login, signup, checkout, search or a public API. - The clients that use those endpoints: browsers, your mobile apps, partner integrations. - What the attacks cost in chargebacks, support time, SMS bills, infrastructure or lost stock. If most of the loss comes after checkout, such as chargebacks from stolen cards used by people, you may need a payment fraud tool first. [Bot protection vs fraud prevention tools](https://stopbots.io/learn/ecommerce-fraud/bot-protection-vs-fraud-prevention-tools.md) explains the split, and [WAF vs bot management](https://stopbots.io/learn/implementation/waf-vs-bot-management.md) explains where a firewall fits. ## What criteria matter when choosing bot protection? - Deployment point. A product can sit at the CDN or edge, at a reverse proxy, inside your application through an API, in a JavaScript tag or in a mobile SDK. Each adds latency in a different place, and each needs a rule for what happens when the service is slow. - Coverage of endpoints and clients. Some products work only where their JavaScript runs, which leaves mobile apps, single-page apps and server-to-server APIs exposed. - Challenge type and friction. Invisible checks cost fewer conversions than puzzles; see [are CAPTCHAs bad for conversion and accessibility?](https://stopbots.io/learn/captcha/captcha-conversion-and-accessibility.md) and [how invisible JavaScript challenges work](https://stopbots.io/learn/captcha/javascript-challenges-explained.md). Ask what a blind user or a visitor on an old phone sees. - Evidence and explainability. For any blocked request you should see which signals triggered the decision, and you should be able to export events to your own logging. - False-positive handling. You need a monitor mode that shows decisions without enforcing them, enforcement per endpoint and allow lists. [False positives in bot detection](https://stopbots.io/learn/detection/bot-detection-false-positives.md) covers how to measure them. - Data residency and privacy. Ask what data is collected, where it is processed and stored, for how long, and which sub-processors are involved. In the EU this ties into ePrivacy and GDPR rules; see [bot protection and GDPR](https://stopbots.io/learn/implementation/bot-protection-and-gdpr.md). - Pricing model. Vendors charge per request, per domain, per endpoint or a flat fee. During an attack, blocked bot traffic can be most of your volume, so the billing unit matters. - Support and rule tuning. Some vendors run a managed service with analysts; others give you a console and leave tuning to you. ## How should you run a proof of concept? 1. Pick two or three endpoints with known bot activity, such as login and checkout. 2. Record a baseline over at least two weeks, a starting point that covers weekly cycles: failed login ratio, signups that never verify, payment declines, scraping volume. 3. Deploy each candidate in monitor mode on the same traffic, at the same time if you can. 4. Build a small labelled set. Known bad: requests from attacks you have already confirmed. Known good: logged-in customers with a purchase history, and your own staff. 5. Compare what each tool flags in both sets, plus added latency and the engineering time it took to integrate. 6. Enforce on one endpoint and watch conversion rate and support tickets for a week before you widen it. Also ask each vendor to explain a sample of its decisions on your traffic. A tool that cannot show why it blocked a request is hard to tune. ## Questions to ask bot protection vendors - If your service times out or goes down, does our traffic fail open (pass through) or closed? - How do you protect our mobile apps and APIs? - How do you treat verified search crawlers and AI agents, and can we set our own policy for them? - Does blocked traffic count toward our bill? - How long can we stay in monitor mode on each endpoint? - Who tunes rules during an attack, and what response time do you commit to? - How does a customer who is wrongly blocked get through? ## What types of bot protection vendors are there? - CDN and cloud platforms with bot features: Cloudflare, Akamai, Fastly, AWS WAF Bot Control. Easiest when you already use the platform. - Dedicated bot management vendors: DataDome, HUMAN Security, Kasada, Imperva, F5, Netacea, Kairal. Built for bot detection specifically, and often usable across several CDNs. - Account and device intelligence for login and signup risk: Castle, Fingerprint, Verisoul, SEON. Focused on linking accounts and devices. - Challenge and CAPTCHA providers: Cloudflare Turnstile, Google reCAPTCHA, hCaptcha, Friendly Captcha. A single check on a form, not full traffic coverage. - Open source: CrowdSec, fail2ban, Anubis. ## When are free tools or your CDN enough? For a site without accounts worth taking over, payments or limited stock, where attacks come from a few sources at high volume, a CDN's free bot setting, rate limits on forms, a free challenge such as Turnstile, and fail2ban or CrowdSec on the server are usually enough. Move to a paid product when attacks continue through residential IP addresses at low rates, when blunt rules start blocking customers, or when losses exceed the cost of a tool. ## Tools that help _StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._ - [Cloudflare Bot Management](https://www.cloudflare.com/application-services/products/bot-management/) adds bot scores to Cloudflare's edge on Enterprise plans, with simpler free and Pro settings that suit small sites. - [DataDome](https://datadome.co/) is a dedicated bot and fraud protection service that integrates with several CDNs and servers. - [AWS WAF Bot Control](https://aws.amazon.com/waf/features/bot-control/) is a managed rule group for sites that already run on AWS. - [Kairal](https://www.kairal.io/product/bot-protection/) is a European bot protection and fraud prevention platform with per-endpoint protection, a preview mode that shows decisions before enforcement, and a 90 day free Design Partner programme. - [CrowdSec](https://www.crowdsec.net/) is open source and free to self-host, a first step for small sites on their own servers. ## Common questions ### What is the best bot protection? The one that stops the attacks you have, on the endpoints you care about, at a false-positive rate you can accept. That depends on your stack and traffic, so test two or three candidates on your own traffic instead of relying on rankings. ### How much does bot protection cost? Pricing models vary: per request, per protected domain or endpoint, or a flat annual contract, and many enterprise vendors publish no prices. Work out your monthly request volume on the paths you want protected before asking for quotes, because vendors will ask for it. ### Is there open source bot protection? Yes. CrowdSec and fail2ban ban abusive IP addresses based on your logs, Anubis puts a proof-of-work check in front of a site, and the open source FingerprintJS library collects browser signals. You run and tune them yourself, and apart from CrowdSec's community blocklist they do not share attack data across sites. ## Related - [WAF vs bot management: what is the difference?](https://stopbots.io/learn/implementation/waf-vs-bot-management.md) - [Bot protection vs fraud prevention tools: which do you need?](https://stopbots.io/learn/ecommerce-fraud/bot-protection-vs-fraud-prevention-tools.md) - [False positives in bot detection: how to measure and reduce them](https://stopbots.io/learn/detection/bot-detection-false-positives.md) - [How to stop bots on your website](https://stopbots.io/learn/implementation/how-to-stop-bots-on-your-website.md) # Bot protection and GDPR: is fingerprinting legal? > Fingerprinting for bot protection can be lawful in the EU, but two sets of rules apply. The GDPR needs a lawful basis, and fraud prevention and security are recognised legitimate interests. The ePrivacy Directive separately requires consent for reading information from a device unless it is strictly necessary for a service the user asked for. Whether a security check meets that exemption depends on the case and the country. Category: Blocking bots in practice. Level: Intermediate. Updated: 2026-11-24. Canonical page: https://stopbots.io/learn/implementation/bot-protection-and-gdpr/ This page describes the EU rules in general terms. It is not legal advice. The answer for a specific site depends on the countries it serves, what it collects and why, so involve your data protection officer or a lawyer before you deploy fingerprinting. ## Which laws apply to bot detection in the EU? Two sets of rules overlap. The [General Data Protection Regulation](https://eur-lex.europa.eu/eli/reg/2016/679/oj) (GDPR) covers any processing of personal data. Recital 30 names online identifiers, such as IP addresses and cookie identifiers, as data that can identify a person. In Breyer (C-582/14), the Court of Justice of the EU held that a dynamic IP address can be personal data for a website operator that has legal means to identify the person behind it. Device and browser fingerprints, which exist to recognise a device again, usually fall in the same category. The [ePrivacy Directive](https://eur-lex.europa.eu/eli/dir/2002/58/oj) (2002/58/EC, amended in 2009) adds Article 5(3). Storing information on a user's device, or gaining access to information already stored there, needs the user's consent. There are two exemptions: when it is needed only to transmit a communication, or when it is strictly necessary to provide a service the user explicitly requested. In Planet49 (C-673/17), the Court held that this rule applies whether or not the information is personal data, and that a pre-ticked box is not valid consent. The directive works through national laws, such as Article 82 of the French data protection act or Germany's TDDDG, and national regulators enforce them. The UK has its own versions in the UK GDPR and PECR. ## Does browser fingerprinting fall under the ePrivacy consent rule? In most setups, yes. Article 5(3) is written to be technology neutral. The Article 29 Working Party, the body that preceded the European Data Protection Board (EDPB), said in Opinion 9/2014 that device fingerprinting falls under it. The EDPB's [Guidelines 2/2023 on the technical scope of Article 5(3)](https://www.edpb.europa.eu/our-work-tools/our-documents/guidelines/guidelines-22023-technical-scope-art-53-eprivacy-directive_en), in their final 2024 version, take a broad view: a script that makes the browser report information about the device counts as gaining access to it. A JavaScript collector that reads screen, GPU, font or audio properties is likely in scope. See [what browser fingerprinting is](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) for what such scripts read. So the practical question for bot protection is usually whether the strictly necessary exemption applies. Arguments that support it: - The check protects a service the user is actively using, such as logging in, creating an account, submitting a form or paying. - It is used only for security and fraud prevention. - It collects only what that purpose needs. The Working Party's Opinion 04/2012 on cookie consent exemptions treated user-centric security cookies, such as those used to detect repeated failed login attempts, as exempt. The French regulator CNIL lists trackers that secure an authentication mechanism among those that can be exempt from consent. The case is weaker for fingerprinting on every page view, for any use beyond security, or for sharing results with third parties for other purposes. Regulators do not all read the exemption the same way, and some read it narrowly. ## Where does legitimate interest fit? Under the GDPR, every processing of personal data needs a lawful basis in Article 6. For bot protection, the usual basis is legitimate interests, Article 6(1)(f). Recital 47 says processing strictly necessary for preventing fraud is a legitimate interest of the controller, and Recital 49 says the same for network and information security. You still have to run and document a balancing test: the interest, why the processing is necessary for it, and why it does not override the user's rights. Legitimate interest answers the GDPR question only. It does not settle Article 5(3), which has its own consent rule and its own, narrower exemptions. The EDPB's [Opinion 5/2019 on the interplay between the ePrivacy Directive and the GDPR](https://www.edpb.europa.eu/our-work-tools/our-documents/opinion-board-art-64/opinion-52019-interplay-between-eprivacy_en) says that where ePrivacy requires consent, a GDPR basis such as legitimate interest cannot replace it. Treat them as two separate checks, and document each. ## Practical steps for privacy-friendly bot protection - Limit the purpose. Use device and behaviour signals for security and fraud prevention only, write that limit into your vendor contract, and never reuse the data for advertising or analytics. - Minimise the data. Collect the signals the detection needs and no more. Run the heavier checks on sensitive endpoints such as login, signup and checkout instead of every page. Hash or truncate identifiers where the detection still works. - Set retention limits. Keep raw signals for a short period, and keep decisions and the evidence behind them only as long as you need for disputes and model updates. Write the periods down. - Assess the risk. Article 35 requires a data protection impact assessment (DPIA) when processing is likely to result in a high risk. The DPIA guidelines endorsed by the EDPB list criteria such as systematic monitoring, scoring, large-scale processing and automated decisions; meeting two or more usually means a DPIA is needed. If an automated decision can block someone from a service, also check whether Article 22 on automated decision-making applies. - Be transparent. Your privacy notice should name the security purpose, the categories of data, the provider, the retention period and the lawful basis. Your cookie or tracker notice should list the security check and the exemption you rely on. - Get the vendor terms right. Sign processor terms under Article 28, check where data is processed, prefer EU data residency or a valid transfer mechanism under Chapter V, and review the sub-processor list. - Give people a way out. A customer wrongly blocked should be able to reach a human, which also cuts the cost of [false positives](https://stopbots.io/learn/detection/bot-detection-false-positives.md). Raise data residency, retention and sub-processors with vendors early; [how to choose bot protection](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md) has a full list of questions. The difference between fingerprinting a browser and recognising a device, which affects what you collect, is covered in [device fingerprinting vs browser fingerprinting](https://stopbots.io/learn/detection/device-fingerprinting-vs-browser-fingerprinting.md). ## Common questions ### Is browser fingerprinting legal? In the EU it is regulated rather than banned. Reading device information falls under the ePrivacy rules and, when the data relates to a person, the GDPR, so you need consent or a clear fit with an exemption, plus a lawful basis for the processing. Laws outside the EU differ, and this is general information, not legal advice. ### Do I need cookie consent for bot detection? It depends on whether the check is strictly necessary for the service the visitor asked for. A check that protects a login or checkout the user is actively using has a stronger case than one that runs on every page or feeds analytics. National regulators read the exemption differently, so check the guidance in each country where you operate. ### Is a device fingerprint personal data? Often, yes. The GDPR treats online identifiers as personal data when they can be used to single out a person, alone or combined with other data such as an IP address or an account. A fingerprint built to recognise a returning device is designed to do that. ## Related - [What is browser fingerprinting and how does it work?](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) - [Device fingerprinting vs browser fingerprinting](https://stopbots.io/learn/detection/device-fingerprinting-vs-browser-fingerprinting.md) - [How to choose bot protection software](https://stopbots.io/learn/implementation/how-to-choose-bot-protection.md)