Book Sale! Code WP2025 takes 20% OFF our Pro Plugins & Books »
Web Dev + WordPress + Security

WordPress Plugin: Blackhole for Bad Bots

[ Blackhole for Bad Bots ]
Image Courtesy NASA/JPL-Caltech.
Update: Pro version now available! Check out Blackhole Pro »

Finally translated my Blackhole Spider Trap into a FREE WordPress plugin. It’s fun, fast, flexible, and works silently behind the scenes to protect your WordPress-powered site from malicious bots. Here are some of the features:

  • Easy to set up
  • Squeaky clean code
  • Built with the WordPress API
  • Easy to reset the list of bad bots
  • Easy to delete any bot from the list
  • Works silently behind the scenes to protect your site
  • Optionally receive an email alert with WHOIS lookup for blocked bots
  • All major search engine bots are whitelisted so they will never get blocked
  • Customize the message displayed to bad bots ;)

Here’s how it works: Blackhole for Bad Bots includes a hidden link to your pages. You then add a line to your robots.txt file that forbids bots from following the hidden link. Bots that ignore or disobey your robots rules will crawl the link and fall into the trap. Once trapped, bad bots are denied further access to your WordPress-powered website. The Blackhole only affects bad bots: human users never see the hidden link, and good bots obey the robots rules in the first place. Bad bots see this when they fall into the trap:

[ Blackhole Warning ]
Initial warning message for bad bots

By default, all major search engines are whitelisted and will never be blocked from your site. Even if they flagrantly disobey your explicit robots.txt rules, they always will have full access in all situations. More information about this available in the plugin documentation.

Blackhole is a super fun way of trapping bad bots and protecting your site against email harvesters, rogue spiders, and other disobedient automatons.

Download

You can learn more and download Blackhole for Bad Bots at the WordPress.org Plugin Directory:

About the Author
Jeff Starr = Web Developer. Book Author. Secretly Important.
BBQ Pro: The fastest firewall to protect your WordPress.
Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
BBQ Pro: The fastest firewall to protect your WordPress.
Thoughts
Replacing my elaborate 27in iMac desk setup with a 15in Macbook Air.
Launching my new plugin, Head Meta Pro 🚀 Complete meta tags for WordPress.
Migrating sites to a new server, so far so good. Please report any bugs, thank you.
Arc browser looked good but lost me at “account required”. No browsers do that.
Finishing up the pro version of Head Meta Data plugin, launch planned this month.
Finally finished my ultimate block list to stop AI bots :) Blocks over 400+ AI bots!
After 10 years working late at night, my schedule has changed. I am now a “morning person”, starting my day at 6am or earlier.
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.