WhoKnew Shield™ | Honeypot & Alerts

Skip to main content
Table of Contents
Print

Scraper Trap™ adds invisible links that look tempting to bots. When a bot follows one, it’s logged and blocked. This article covers how those honeypots are built, how the action name and robots.txt work, and how to get email alerts when a scraper is caught.

How Honeypots Are Generated

When Enable Scraper Trap is on, the plugin outputs a hidden link on the frontend. The link points to a WordPress AJAX URL that uses a dynamic action name (see below). The link text is whatever you set in Link Text in Scraper Trap™ Settings (default: Administrator Login). The idea is to make it look valuable to scrapers—e.g. “Admin Panel”, “Login”—while keeping it invisible to normal visitors.

The honeypot is hidden with CSS. You choose the method in Honeypot Stealth Settings → Hiding Method:

OptionEffect
Combination (Recommended)Off-screen, invisible, and tiny so bots still see the link in the HTML.
Off-screen onlyPositioned far left (e.g. left: -9999px).
Invisible onlyOpacity 0, no pointer events.
Display: noneElement not rendered visibly.
Tiny size (1px)1×1 pixel, clipped; screen-reader friendly.

Output Location controls where the honeypot is injected: Footer (wp_footer) (recommended), Header (wp_head), or Body Start (wp_body_open). The plugin does not show the honeypot to logged-in admins or whitelisted IPs.

Action Names

The trap URL uses a WordPress AJAX action name that is unique to your site. By default it’s randomly generated in the form word1_word2_word3_hash (e.g. wp_plugin_verify_a8f3d2c1) from large word pools and a short hash, so the number of possible combinations is very high. That makes it hard for bots to guess or blacklist a single pattern.

In Scraper Trap™ Settings, under Robots.txt Integration, you can open Advanced: Manage Honeypot Action Name. There you can:

  • Generate New Random Name — Creates a new random action and updates robots.txt (if the plugin can modify it) so the Disallow line stays in sync.
  • Set Custom Name — Use your own action name (e.g. for debugging or a specific security setup).
  • Revert to Auto — Clear the custom name and use the auto-generated one again.

When you change the action name, the plugin attempts to update robots.txt and clear caches automatically. If you have a physical robots.txt file, you may need to use Auto-Fix Robots.txt or Verify Robots.txt Entry manually.

Robots.txt Integration

The plugin can add a Disallow line to robots.txt for the honeypot trap URL (e.g. Disallow: /wp-admin/admin-ajax.php?action=your_action_name). Legitimate crawlers (Google, Bing) that respect robots.txt will not request that URL. Bots that ignore robots.txt often treat “forbidden” URLs as high-value targets, so they’re more likely to follow the trap.

If WordPress serves a virtual robots.txt (no physical file in the root), the integration is Auto-Enabled. If a physical robots.txt file exists, the tab shows Manual Setup Required or Physical robots.txt File Detected and offers Auto-Fix Robots.txt (Add Entry Now) or instructions to add the line yourself. You can also Verify Robots.txt Entry or View Full Robots.txt from the tab. A Disable robots.txt integration checkbox is available when the plugin can modify robots.txt (not recommended to disable).

Tip: If a security plugin (e.g. Wordfence) flags the honeypot HTML or request, it’s safe to whitelist it—the honeypot is intentional. The UI mentions this in Honeypot Stealth Settings.

Email Alerts When a Scraper Is Caught

In Scraper Trap™ Settings, turn on Email Alerts and set the alert email address (default: the site’s admin email). When a bot triggers the honeypot, the plugin sends one email to that address with:

  • Subject: [WhoKnew Shield] Scraper Caught: IP
  • IP address, honeypot triggered (action/honeypot ID), time, and user-agent
  • A note that the IP has been blocked according to your settings and a link to view blocked IPs in the Scraper Trap tab

Email alerts are optional. If you leave them off, you can still see all activity in the Scraper Trap tab (Active IP Blocks, Scrapers Caught Today, and the blocked IP lists).

Recovery Emails: Always On

Recovery Emails are separate from the optional scraper alerts. If you (or an admin) accidentally trigger the honeypot and get blocked, the plugin automatically sends recovery instructions to all admin emails so you can unblock and whitelist your IP. This cannot be disabled. You can use Send Test Recovery Email in the Scraper Trap tab to confirm the recovery flow works.

Need Help?

For enabling and first-time setup: Getting Started with Scraper Trap. For the blocked list and stats: Blocked IPs Dashboard. For IP blocking and unblocking: IP Blocking. For whitelisting: IP Whitelist.

Share