Scraper Trap™ uses a honeypot URL that only bots are supposed to hit. To make the trap more effective, WhoKnew Shield™ Pro can add that URL to your site’s robots.txt with a Disallow line. Legitimate crawlers (like Google and Bing) that respect robots.txt will skip it; many bad bots treat “forbidden” URLs as high-value targets, so they’re more likely to request it and get blocked. This article explains how the integration works, what you’ll see in the Scraper Trap™ tab, and how to fix or verify the entry so you can answer “why is robots.txt in Shield?” and “my robots.txt didn’t update” without opening a ticket.
Why Shield Adds a Disallow Line
Your robots.txt file tells crawlers which URLs they’re allowed to request. The plugin adds a line that says, in effect: “Do not request this honeypot URL.” Well-behaved bots (search engines, most monitoring tools) obey that and never hit the trap. Bots that ignore robots.txt—including many scrapers and harvesters—often treat Disallow as a signal that a URL is important, so they request it anyway. When they do, Scraper Trap™ blocks their IP. So adding the honeypot to robots.txt doesn’t hide the trap; it improves the trap by steering good bots away and attracting the kind of bots you want to block. The Scraper Trap™ tab calls this Robots.txt Integration and shows whether it’s Auto-Enabled or Manual Setup Required.
Auto-Enabled vs Manual Setup Required
In WhoKnew Shield → Scraper Trap™, scroll to the Robots.txt Integration section (blue box with a 🤖 icon). The heading will show one of two states:
- Robots.txt Integration (Auto-Enabled) — Your site does not have a physical
robots.txtfile in the root; WordPress serves a virtual one. The plugin adds the honeypot Disallow line automatically via WordPress’s robots.txt filter. You don’t need to create or edit a file. The trap URL is included every time robots.txt is requested. You can still click 🔍 Verify Robots.txt Entry to confirm, and 📄 View Full Robots.txt to see the result. If you want to turn integration off, a checkbox at the bottom says Disable robots.txt integration (not recommended). - Robots.txt Integration (Manual Setup Required) — A physical
robots.txtfile was found in your site root. WordPress cannot modify it, so the plugin can’t add the line automatically. The tab shows a red notice: Physical robots.txt File Detected, with the exact block of text to add (a comment line,User-agent: *, andDisallow: /wp-admin/admin-ajax.php?action=YOUR_ACTION_NAME). You can either copy that block and add it to your file yourself, or click 🔧 Auto-Fix Robots.txt (Add Entry Now) so the plugin writes the entry into the physical file for you (if the file is writable).
The Buttons: What They Do
🔧 Auto-Fix Robots.txt (Add Entry Now) — Shown only when a physical robots.txt is detected. Click it to insert (or update) the honeypot Disallow block in that file. The plugin also clears WordPress object cache and attempts to clear popular cache plugins (e.g. W3 Total Cache, WP Rocket, LiteSpeed) so the change is visible quickly. If your server or host uses a CDN (e.g. Cloudflare) or server-level cache, you may need to purge that separately; the tab notes that changes typically propagate within about 5–10 minutes.
🔍 Verify Robots.txt Entry — Available in both Auto-Enabled and Manual setups. It runs the same update logic: it ensures the current honeypot action name is in robots.txt (adding or updating the entry) and triggers the same cache clearing. Use it after you’ve changed the honeypot action name or if you’re not sure the entry is correct. A success message will indicate whether the physical file was updated or that the virtual robots.txt will be updated automatically.
📄 View Full Robots.txt — Opens your site’s robots.txt in a new tab (your site URL + /robots.txt). Use it to confirm the Disallow line is present. If you don’t see the updated action name, the tab reminds you to do a hard refresh (e.g. Ctrl+Shift+R on Windows/Linux or Cmd+Shift+R on Mac) or to check the file directly via file manager or FTP.
What the Entry Looks Like
The plugin adds a block that starts with a comment (e.g. # WhoKnew Shield™ – Scraper Trap™ honeypot (do not remove)), then User-agent: * and a Disallow: line pointing at the honeypot URL: /wp-admin/admin-ajax.php?action=YOUR_ACTION_NAME. The action name is the same one shown in the Scraper Trap tab under Manage Honeypot Action Name. If you regenerate or set a custom name, that Disallow line must match—Verify or Auto-Fix updates it so crawlers see the current trap URL.
When You Change the Honeypot Action Name
The honeypot URL includes a unique action name (visible under Advanced: Manage Honeypot Action Name in the same section). If you regenerate or set a custom action name, the plugin automatically updates robots.txt to use the new Disallow line and clears caches. If that auto-update can’t run (e.g. physical file not writable), you’ll see a note to click Auto-Fix Robots.txt or Verify Robots.txt Entry manually. So after changing the action name, you can click Verify to be sure robots.txt and caches are in sync.
Disable robots.txt Integration
When the tab shows Auto-Enabled, you’ll see a checkbox: Disable robots.txt integration (not recommended). If you check it and save Scraper Trap™ settings, the plugin will stop adding the honeypot line to robots.txt. The honeypot itself still works—bots can still hit the trap URL and get blocked—but the “forbidden URL” signal in robots.txt won’t be there, so you may get slightly fewer bots attracted to that specific URL. Most users should leave integration on. If you have a physical robots.txt and used Auto-Fix, disabling the integration in the plugin doesn’t remove the line from the file; you’d need to edit the file to remove the WhoKnew Shield™ block.
Heads up: “My robots.txt didn’t update” is usually cache or browser. After Auto-Fix or Verify, do a hard refresh when viewing robots.txt and purge CDN/server cache if you use one. For which caches Shield clears and what to clear yourself, see Caching and WhoKnew Shield.
Need Help?
For cache and propagation: Caching and WhoKnew Shield. For changing the honeypot action name: Managing the Honeypot Action Name (Pro) (or the Scraper Trap™ tab’s Advanced section). For first-time Scraper Trap™ setup: Getting Started with Scraper Trap and Honeypot and Alerts (Pro).