Documentation
ScraperBlock Pro
Honeypot Traps

Honeypot Traps

This is a Pro feature. Honeypot traps are invisible links placed in your site's HTML. Real users never see or click them; automated crawlers follow all links including hidden ones.

Setup

  1. Enable Honeypot Traps in Settings → ScraperBlock → Protection.
  2. ScraperBlock automatically injects a hidden <a> tag into your pages via wp_footer.
  3. The link points to a special WordPress URL (?scraperblock_trap=1).
  4. When a bot visits this URL, its IP is logged and blocked.

Manual Placement (Optional)

You can also place the honeypot shortcode anywhere in your theme:

<?php echo do_shortcode('[scraperblock_honeypot]'); ?>

Or call the method directly:

ScraperBlock_Pro_Rules::render_honeypot_link();

Hidden links must not be visible to users. ScraperBlock injects display:none; visibility:hidden CSS inline. The plugin also adds aria-hidden="true" by default for accessibility-conscious sites.