A honeypot trap is a hidden link or form field on a webpage, invisible to real human visitors but detectable by automated scrapers that parse raw HTML, designed to identify and flag bot traffic. Normal visitors won't fill in a field they can't see, while a script that fills in forms might, so a filled-in honeypot points to automation.

Honeypots can be hidden with CSS, such as display: none, so they don't render in a browser but still exist in the page's HTML. Browser automation tools can check visibility first. Playwright, for example, waits for an element to be visible before clicking it.

Some honeypots go beyond a single hidden link. Cloudflare's AI Labyrinth, launched in March 2025, adds invisible nofollow links that only bots see. Crawlers that ignore no-crawl instructions follow them into decoy pages, while compliant bots can skip them. Cloudflare says no real human would go four links deep, so those visits are logged and used to identify bots.

Honeypots in Security

In cybersecurity, the term is broader. NIST defines a honeypot as a system, such as a web server, or a system resource, such as a file, designed to be attractive to potential intruders.