EDH Bad Bots is an intelligent bot detection and blocking system that protects your WordPress site from unwanted crawlers and malicious bots. Unlike traditional blocking methods that rely on user agent strings (which can be easily spoofed), this plugin uses a honeypot technique to identify and block
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 6.2 and PHP 7.4.
SourceWordPress plugins · Dec 5, 2026
01 / Source details
Aboutthistool.
EDH Bad Bots is an intelligent bot detection and blocking system that protects your WordPress site from unwanted crawlers and malicious bots. Unlike traditional blocking methods that rely on user agent strings (which can be easily spoofed), this plugin uses a honeypot technique to identify and block bots that don’t respect your site’s robots.txt directives.
Key Features
Automatic Bot Detection : Identifies bad bots using a hidden trap URL technique
Smart Blocking System : Blocks misbehaving bots with configurable duration (default 30 days)
Advanced DNS Resolution : PTR record lookups with DNS over HTTPS (DoH) support for hostname identification
Dual-Level Blocking : Server-level .htaccess blocking AND PHP-level blocking for maximum effectiveness
Configurable Blocking Methods : Choose between .htaccess blocking (Apache) or PHP-only blocking (Nginx compatible)
IP Whitelist Management : Protect trusted IPs from ever being blocked
Enhanced Admin Interface : Clean dashboard with hostname display, manual hostname updates, and debug tools
Background Processing : Automated hostname resolution via WordPress cron jobs
Legitimate Crawler Protection : Synchronous FCrDNS verification prevents Googlebot and similar crawlers from being blocked, even if robots.txt is misconfigured
robots.txt Health Check : Daily cron monitors for a physical robots.txt missing the trap Disallow rule and alerts the admin
Database Optimization : Automatic cleanup of expired blocks to maintain performance
Security-First Design : All forms include proper nonce verification and user capability checks
How It Works
The plugin implements a sophisticated honeypot system:
01Trap URL Generation : Creates a unique, hidden URL specific to your domain
Robots.txt Integration : Automatically adds a Disallow rule for the trap URL
03Hidden Link Placement : Places an invisible link to the trap URL in your site’s footer
04Bot Detection : When bad bots ignore robots.txt and follow the hidden link, they’re identified
05Automatic Blocking : Detected bot IPs are blocked with configurable duration and immediate effect
06Hostname Resolution : PTR record lookups identify the hostname/organization behind blocked IPs
07Legitimate Crawler Guard : If a request to the trap URL carries a Googlebot, Bingbot, or similar User-Agent, FCrDNS is run synchronously before any block decision. Verified crawlers are whitelisted on the spot; spoofed UAs are blocked normally.
08robots.txt Health Check : A daily cron fetches and validates the site’s robots.txt. If a physical file is missing the Disallow rule, an admin notice is shown until the issue is resolved.
Configuration
Admin Dashboard
Access the plugin dashboard at Tools > Bad Bots in your WordPress admin:
Whitelisted IPs Tab
Add IP addresses that should never be blocked
Remove IPs from the whitelist
View all currently whitelisted addresses with timestamps
Blocked Bots Tab
View all currently blocked IP addresses with hostnames
See when each IP was blocked and when the block expires
Manually update missing hostnames for better identification
Force refresh all hostnames to clear cache and re-resolve
Debug hostname resolution issues (when WP_DEBUG is enabled)
Manually unblock IPs if needed
Options Tab
.htaccess Blocking : Enable/disable server-level IP blocking via .htaccess file
Block Duration : Configure how many days to block detected bots
Configure blocking method based on your server setup (Apache vs Nginx)
Server-level blocking bypasses caching for immediate effect
Help Tab
Detailed explanation of how the plugin works
Best practices for managing IPs
Information about .htaccess blocking options
Unique trap URL for caching plugin exclusion
Requirements
WordPress 6.2 or higher
PHP 7.4 or higher
MySQL 5.6 or higher
Apache server (for .htaccess blocking) or Nginx (PHP-only blocking)
Writable .htaccess file (if using Apache server-level blocking)
Technical Details
Database Tables
The plugin creates two custom database tables:
wp_edhbb_blocked_bots : Stores blocked IP addresses with expiration dates and hostnames
wp_edhbb_whitelisted_ips : Stores permanently whitelisted IP addresses
DNS Resolution System
The plugin includes an advanced DNS lookup system:
DNS over HTTPS (DoH) Support
Primary providers : Cloudflare DNS, Google DNS
Secure queries : HTTPS-encrypted DNS requests for enhanced privacy
Fallback system : Automatic fallback to traditional DNS methods
PTR Record Lookups
Reverse DNS : Converts IP addresses to hostnames for better identification
IPv4 and IPv6 support : Full support for both IP versions
Caching : Results cached for 1 hour to improve performance
Background processing : Automated hostname resolution via WordPress cron
Blocking Methods
The plugin offers two blocking approaches:
1. Server-Level Blocking ( .htaccess )
Default method for Apache servers
Blocks IPs at the server level before WordPress loads
Bypasses caching plugins for immediate effect
More efficient and faster blocking
Automatically manages .htaccess file with unique markers
Safe cleanup on plugin deactivation
2. PHP-Level Blocking
Alternative method for Nginx or when .htaccess is unavailable
Blocks IPs during WordPress initialization
Compatible with all web servers
May be affected by caching plugins
No server configuration files modified
Security Features
Nonce Verification : All forms use WordPress nonces for CSRF protection
Capability Checks : Only users with manage_options capability can access admin features
Input Sanitization : All user inputs are properly sanitized and validated
SQL Injection Protection : All database queries use prepared statements
Safe .htaccess Management : Uses unique markers and automatic cleanup
Performance Optimization
Automatic Cleanup : Expired blocks are automatically removed from the database
Efficient Queries : Database operations are optimized for minimal performance impact
Smart Loading : Admin assets only load on the plugin’s admin page
For support, please visit the support forum: https://wordpress.org/support/plugin/edh-bad-bots/
See it in action
Screenshots & previews.
Allow list managementBlock list management with hostname displayOptions Page with configurable settings
02 / Source details
Gettingstarted.
01Upload the edh-bad-bots folder to your /wp-content/plugins/ directory
02Activate the plugin through the ‘Plugins’ menu in WordPress
03The plugin works immediately – no configuration required!
04Optionally, visit Tools > Bad Bots to manage whitelisted IPs and view blocked bots
03 / Source details
Frequently asked questions.
Will this block legitimate search engines?
Extremely unlikely. In normal operation, legitimate crawlers like Googlebot respect the Disallow rule in robots.txt and never reach the trap URL. As a second layer of protection, if a crawler with a recognised User-Agent (Googlebot, Bingbot, etc.) does hit the trap — for example because of a misconfigured robots.txt — the plugin runs Forward-Confirmed Reverse DNS (FCrDNS) synchronously before making any block decision. If the IP is verified as a genuine crawler, it is whitelisted on the spot and the request is allowed through. Bots that merely spoof a crawler User-Agent but fail FCrDNS are still blocked normally.
What if my robots.txt file is wrong and doesn’t include the Disallow rule?
The plugin runs a daily cron job ( edhbb_check_robots_txt_cron ) that reads your site’s robots.txt and checks for the trap URL Disallow rule. If the rule is missing, an admin notice is displayed in your WordPress dashboard until the file is corrected. Even without the Disallow rule, the synchronous FCrDNS guard (see above) prevents verified legitimate crawlers from being blocked if they happen to reach the trap URL.
Can I add extra crawlers to the legitimate crawler check?
Yes. The User-Agent tokens used to trigger the synchronous FCrDNS pre-check are controlled by the edhbb_trusted_crawler_ua_patterns filter. By default the list covers googlebot , bingbot , slurp (Yahoo), duckduckbot , baiduspider , and yandexbot . You can extend it in your theme’s functions.php or a mu-plugin:
The hostname suffixes used in the FCrDNS verification step are similarly extensible via the edhbb_trusted_crawler_domains filter.
How long are bots blocked for?
Bots are blocked for a configurable duration (default 30 days) that you can adjust in the Options tab. You can manually unblock them earlier if needed.
Can I protect my own IP address?
Yes! Add your IP address to the whitelist in the admin panel to ensure you’re never blocked.
What’s the difference between .htaccess and PHP blocking?
.htaccess blocking (default) blocks bots at the server level before WordPress loads, making it faster and more effective. PHP blocking works during WordPress initialization and is compatible with Nginx servers.
What is hostname resolution and why is it useful?
The plugin performs PTR record lookups to identify the hostname/organization behind blocked IP addresses. This helps you understand what types of bots are being blocked (e.g., “crawl-66-249-66-1.googlebot.com” vs unknown IPs) for better analysis and decision-making.
How does the DNS over HTTPS feature work?
The plugin uses secure HTTPS-encrypted DNS queries via providers like Cloudflare and Google DNS for enhanced privacy and reliability when resolving hostnames. It automatically falls back to traditional DNS methods if DoH is unavailable.
Does this affect site performance?
The plugin is designed for minimal performance impact. Server-level .htaccess blocking actually improves performance by stopping blocked requests before they reach PHP. DNS lookups are cached and processed in the background to avoid delays.
Will this work with caching plugins?
Yes! Server-level .htaccess blocking bypasses caching entirely, ensuring blocked bots are stopped immediately. PHP-level blocking may be affected by some caching configurations. To ensure the bot trap works correctly, you should exclude the unique trap URL from your caching plugin. You can find this URL in the “Help” tab of the plugin’s settings.
What happens if I deactivate the plugin?
The blocking stops immediately and .htaccess rules are automatically cleaned up. Your data (blocked IPs and whitelist) is preserved in case you reactivate the plugin later.
Is it safe for my .htaccess file?
Yes! The plugin uses unique markers ( # BEGIN EDH Bad Bots Block / # END EDH Bad Bots Block ) to safely manage its rules without affecting other configurations. Rules are automatically removed on deactivation.
Can I manually update hostnames for blocked IPs?
Yes! In the “Blocked Bots” tab, you can use the “Update Missing Hostnames” button to resolve hostnames for IPs that don’t have them, or “Force Refresh All Hostnames” to clear the cache and re-resolve all hostnames.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati