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
- Enable Honeypot Traps in Settings → ScraperBlock → Protection.
- ScraperBlock automatically injects a hidden
<a>tag into your pages viawp_footer. - The link points to a special WordPress URL (
?scraperblock_trap=1). - 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.