A honeypot link is a URL that a human visitor never sees or clicks but a naive crawler follows. Request it, and the site flags your client as automated. The fix is not cleverer evasion. It is a crawler that only follows links a visitor could actually reach, respects robots.txt, and records every link it declines. That is also the cheapest approach: a crawler that follows everything burns credits on junk URLs and gets blocked anyway.
This guide covers how honeypot links are built, which signals are real and which are noise, and the routine we recommend for crawls where you need predictable cost and source-traceable data.
TL;DR
- A honeypot link is hidden from people (CSS, off-screen, zero size) or disallowed in robots.txt, so only a follow-everything crawler requests it.
- A hidden link or a disallowed path is a clue, not proof. Collapsed menus and accessibility controls look the same.
- Scope your crawl with an allowlist, honor robots.txt, and check visibility before you request a URL.
- Log the source page, destination, decision and triggering rule for every skipped link so you can review uncertain ones.
- Cap spend per crawl so a trap-laden site cannot run up your bill.
Table of Contents
- What a honeypot link is and why sites use one
- How honeypot links are hidden
- Detecting honeypot links without false positives
- Crawl so you never need to dodge a trap
- What to log when you skip a suspected honeypot
- If you build agents, the stakes are higher
- Perspective
- Where Gyrence fits
- FAQ
- Sources
What a honeypot link is and why sites use one
Websites deploy honeypots as one layer of bot management. The OWASP Bot Management and Anti-Automation Cheat Sheet frames the goal as raising the cost of abusive automation while leaving legitimate automated traffic, such as search engines and accessibility tools, alone.
The mechanism is simple. The site places a link that no ordinary visitor would follow. Any client that requests it has shown it parses HTML and follows every href without asking whether a person could see it. The site may then rate limit, serve altered content, or block the IP.
That matters to you even when your intentions are fine. A crawler built as "extract all anchors, queue all of them" is exactly what the trap is built to catch.

How honeypot links are hidden
There are two families.
Visual hiding. The link exists in the DOM (the page's parsed element tree) but is invisible. Typical techniques, as catalogued by proxy-industry write-ups, include display:none, visibility:hidden, zero width and height, opacity:0, positioning far off-screen such as left:-9999px, or text colored to match the background.
Protocol signaling. The path is listed under Disallow in robots.txt, and a link to it is planted in the page. The Robots Exclusion Protocol (RFC 9309) defines how a crawler should parse those rules and treat the paths a site marks off-limits. A well-behaved crawler never requests the path, so only a crawler that ignores the rules ever trips it. Our guide to robots.txt compliance for developers covers parsing edge cases, including how server errors on the robots.txt file itself change what you may crawl.

Detecting honeypot links without false positives
Detection is a comparison: what the HTML contains versus what a visitor could actually see and click. Run these checks before a URL enters the queue.
- Check robots.txt first. If the path is disallowed for your user agent, drop it. No further analysis needed.
- Inspect computed visibility. In a rendered page, look at the computed style of the anchor and its ancestors: display, visibility, opacity, dimensions, position. Raw HTML alone misses styles set in external stylesheets.
- Check the link's context. Is it inside the main content or navigation, or tucked in an otherwise empty container?
- Check the destination. Does it match the scope of your task (a domain, a path prefix, a content type)? Links to unrelated paths with generic names deserve suspicion.
Why hidden does not mean trap
A hidden link is not proof. Collapsed navigation menus, mobile-only elements, skip-to-content links and accessibility controls all use hiding techniques for ordinary reasons. Treat each signal as one input to a score, not a verdict. Skipping a legitimate collapsed menu can cost you real pages, and following a trap can cost you access. Neither error is free, which is why you want a record of the call you made.
If you read the page in a rendered browser, remember that a menu hidden until hover may be perfectly legitimate. A scoring approach beats a single rule: combine "disallowed in robots.txt", "zero-size or off-screen", "not in any navigation landmark" and "outside task scope". One signal means review. Several together mean skip.
Crawl so you never need to dodge a trap
Most honeypot trouble comes from crawl design, not detection gaps.
- Use a scoped allowlist. Define the hosts and path prefixes the task needs. A competitive-intelligence job on pricing pages has no reason to visit
/admin-old/or an unrelated subdomain. - Avoid follow-everything logic. Traversal should be bounded by depth, page count and path rules.
- Map before you crawl. Reading a domain's sitemap shows the URLs the site itself wants indexed, which is a far safer seed list than every anchor on a page.
- Throttle. Aggressive request rates make you look like the abusive automation the site is guarding against. See our notes on rate limits and backoff and polite crawling defaults.
- Read robots meta tags too. Page-level directives such as
noindexandnofollowcarry intent. We cover them in robots meta tags and scraping.
What to log when you skip a suspected honeypot
For each excluded link, record four things:
| Field | Example |
|---|---|
| Source page | https://example.com/products |
| Destination | https://example.com/trap-7f3a |
| Decision | skipped / skipped-uncertain |
| Triggering rule | robots_disallow, offscreen, out_of_scope |
Label uncertain candidates for review rather than treating every exclusion as a confirmed trap. Later you can sort by rule, find a rule that wrongly drops real navigation, and fix it. This is also what makes a dataset source-traceable: a compliance or financial-research reviewer can see not just what you collected but what you chose not to touch, and why. For reading how crawlers actually behave on your own servers, log file analysis shows the same record-keeping discipline from the site side. For broader controls, see our five audit-ready controls for compliance-friendly scraping.
If you build agents, the stakes are higher
An LLM agent with a browsing tool does not look at a page the way a person does. It reads text and links, and a hidden link can sit right in the content it ingests. Constrain the tool, not the prompt: allowlist domains, cap the number of fetches per task, and return typed results so the agent knows when a fetch was refused or failed instead of guessing. Our agent-safe web scraping guide goes through the tool-level limits.
Perspective
Web data is a storm, and a trap is just one more thing in it. Most developers meet honeypots as a surprise block, then a surprise bill from retries against a site that has stopped answering.
We built Gyrence around the idea that the failure cases deserve as much structure as the successes. Every call returns a typed, discriminated-union response, so a refused, blocked or failed request arrives as data your code or your agent can branch on, not as an empty string you have to interpret.
Spending caps do the other half of the work. Whatever a crawl runs into, the cost per call is predictable and the ceiling is yours. Map gives you a domain's URL graph from sitemaps before you traverse, so you start from the pages a site publishes, and Traverse lets you move outward from a starting URL on your terms.
Honest tooling will not promise that you never meet a trap. It will tell you what happened, what it cost and where the data came from.
Glen
Where Gyrence fits
Gyrence gives you Search, Traverse, Fetch, Extract and Map as separate primitives, plus a hosted MCP endpoint for agent clients. Structured extraction is bundled with no separate AI extraction charge, and spending caps keep a runaway crawl from becoming a surprise invoice. Standard is $75 per month, Growth is $299 per month and Scale is $549 per month, with Free, Founders and Pay-As-You-Go options also listed on the pricing page. If you need to know when a page changes rather than crawl it repeatedly, WebDoppler monitors pages and sends webhook alerts.
FAQ
Is following a honeypot link illegal?
Not by itself. Legality depends on factors such as authorization, terms of service and the data collected, and a trap hit mostly gets you blocked. Our breakdown of the four legal axes of web scraping explains what matters. For a specific project, ask a qualified attorney.
Is a robots.txt-disallowed link always a honeypot?
No. Many sites disallow paths such as search results, carts or admin areas for ordinary reasons. Respect the rule either way, but log it as robots_disallow instead of labeling it a trap.
Do honeypots only apply to links?
No. Forms use hidden fields that people leave empty and bots fill in. Those traps are checked on the server, since client-side checks can be skipped, but they work on the same logic as link traps: reward only what a real visitor would do.
How do I keep costs down on sites full of traps?
Scope the crawl with an allowlist, set page and depth limits, and cap spending per run. A bounded crawl that skips suspect links costs less than one that chases every anchor and then retries after blocks.
Sources
- OWASP Bot Management and Anti-Automation Cheat Sheet
- RFC 9309: Robots Exclusion Protocol
- What are Honeypots and How to Avoid Them in Web Scraping

