ProxyZen

Anti-bot protection: honeypots, headless detection and how scrapers get caught

5 December 2026 · 4 min read
Reviewed by the ProxyZen team

How websites catch scrapers — default User-Agents, missing headers, honeypot links, headless browser checks, rate limits — with real header tests of curl, Python and requests, and what to do with BeautifulSoup, Selenium and proxies.

Most scrapers are not blocked because of the IP alone. They give themselves away with headers, behavior and the browser they run in. Here is what anti-bot systems look at, with real tests, and how to make a scraper look like a normal visitor — for data you are allowed to collect.

1. Default headers

A script announces itself in the very first request. We sent requests to httpbin.org/headers on 2 December 2026:

curl:            User-Agent: curl/8.7.1            Accept: */*
Python urllib:   User-Agent: Python-urllib/3.9     Accept-Encoding: identity

The popular requests library does the same by default: its User-Agent is python-requests/ plus the version. A real browser sends a full set: User-Agent of Chrome or Firefox, Accept with text/html, Accept-Language, Accept-Encoding: gzip, br, Sec-Fetch-* and Sec-CH-UA headers. A request with curl or python-requests and three headers is the easiest catch there is.

What to do: send the headers of a real browser, including Accept-Language that matches the proxy's country. Compare what your client sends with our HTTP headers tool.

2. Honeypot traps

A honeypot is a link or a form field that people do not see but bots do:

  • links hidden with display:none, visibility:hidden or placed off-screen;
  • a form field hidden by CSS — a person leaves it empty, a bot fills it in;
  • URLs that appear only in the HTML source, never in the visible menu.

A crawler that follows every <a href> walks into the trap, and its IP or session gets flagged.

What to do:

  • in BeautifulSoup you only see the HTML, not the CSS — skip links with hidden, display:none, aria-hidden="true", zero size or rel="nofollow" and stay inside the URLs you really need;
  • in Selenium or Playwright check that an element is visible (is_displayed(), is_visible()) before clicking;
  • never fill hidden form fields.

3. Headless browser detection

A browser without a window (headless Chrome via Selenium, Puppeteer or Playwright) differs from a normal one in small details:

  • navigator.webdriver is true in an automated browser;
  • old headless versions had "HeadlessChrome" in the User-Agent;
  • no plugins, an unusual screen size, a software WebGL renderer;
  • a time zone and language that do not match the IP.

What to do: use the current "new headless" mode or a normal window, keep a realistic screen size, set the time zone and language to the proxy's country. For accounts and long sessions, an antidetect browser handles the fingerprint for you. More about fingerprints in “Browser fingerprint”.

4. Rate and behavior

Hundreds of requests per minute from one IP, perfectly even intervals, no images, CSS or JS loaded, the same path every time — rate limits fire with 429 or Cloudflare 1015. See “HTTP errors 403, 429, 502, 522” and “Cloudflare errors 520–525, 1005, 1015 and 1020”.

What to do: random pauses, a limit on parallel requests per IP, respect Retry-After, cache what you already downloaded.

5. IP reputation

Only now does the IP come in. Datacenter networks are checked harder, free proxies are already on block lists. See “How websites detect proxies”.

What to do:

A minimal checklist for a polite scraper

  1. Read robots.txt and the site's terms; collect only public data you are allowed to collect.
  2. Real browser headers + Accept-Language of the proxy's country.
  3. Skip invisible links and fields.
  4. Pauses and limits per IP; follow Retry-After.
  5. A browser engine only where the page needs JavaScript; otherwise plain HTTP is faster.
  6. Rotate IPs for volume, sticky sessions for logins.

Code examples with proxies are in “Proxies in Python and Node.js” and “Puppeteer, Playwright and curl with proxies”.

Try ProxyZen

Private IPv4 and IPv6 for 3 to 90 days, residential and mobile per GB. Instant delivery, HTTP(S), SOCKS5, UDP/QUIC.

Trustpilot Write a review