🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
EDH Bad Bots icon
Maintenu Testé jusqu'à 7.0.9 #20 in bots

EDH Bad Bots

A smart WordPress plugin that automatically blocks malicious bots and crawlers that ignore your site's robots.txt file.

Installations actives50+10+ niveaux
Téléchargements · 30D169▲ +30% vs prév. 30j
Évaluation5/51 avis
Score de santé49/100Juste
Téléchargements de tous les temps1.5KDepuis septembre 2025
Support résolu0 / 10% au cours des 2 derniers mois
A besoin deWP 6.2PHP 7.4+
Téléchargements · 7j50▲ +38.9% week over week
Notre verdict

Utiliser avec prudence

EDH Bad Bots works, but test it on a staging site before relying on it in 2026. It runs on 50+ sites, is rated 5/5 and was last updated 6 months ago, and scores 49/100 on our health check.

  • Petite base d'utilisateurs (plus de 50 installations actives)
  • Très peu de critiques jusqu'à présent

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

369Sep 4Oct 18Dec 2
Hier13
Moyenne quotidienne (1 ans)4
Jour de pointe39May 29, 2026
12 Derniers mois1.4K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where EDH Bad Bots stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
bots #18 3,997 Best bots plugins →
dns #37 1,041 Best dns plugins →
hostname #17 704 Best hostname plugins →
PTR #2 16 Best PTR plugins →
la sécurité >100 10,000 Meilleurs plugins de sécurité →

Adoption de version

Part de sites actifs par version.

  • 1.7100.0%

Répartition des notes

★★★★★ ★★★★★ 5 sur 1 avis

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About EDH Bad Bots

From the official readme · v1.7.4

Description

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.

Principales caractéristiques

  • 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

Comment cela fonctionne

The plugin implements a sophisticated honeypot system:

  1. Trap URL Generation: Creates a unique, hidden URL specific to your domain
  2. Robots.txt Integration: Automatically adds a Disallow rule for the trap URL
  3. Hidden Link Placement: Places an invisible link to the trap URL in your site’s footer
  4. Bot Detection: When bad bots ignore robots.txt and follow the hidden link, they’re identified
  5. Automatic Blocking: Detected bot IPs are blocked with configurable duration and immediate effect
  6. Hostname Resolution: PTR record lookups identify the hostname/organization behind blocked IPs
  7. Legitimate 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.
  8. robots.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

Obligations

  • WordPress 6.2 or higher
  • PHP 7.4 ou supérieur
  • MySQL 5.6 or higher
  • Apache server (for .htaccess blocking) or Nginx (PHP-only blocking)
  • Writable .htaccess file (if using Apache server-level blocking)

Détails techniques

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

Fonctions de sécurité

  • 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
  • Server-Level Blocking: .htaccess blocking prevents blocked requests from reaching PHP
  • Whitelist Filtering: Whitelisted IPs are excluded from .htaccess rules automatically
  • DNS Caching: Hostname lookups cached to reduce DNS query overhead
  • Background Processing: Hostname resolution runs in background to avoid delays

API Hooks

Actes

  • plugins_loaded: Plugin initialization
  • init: Early request blocking check
  • template_redirect: Bot trap detection
  • wp_footer: Hidden link injection
  • admin_menu: Admin page registration
  • admin_notices: robots.txt misconfiguration warning
  • edhbb_update_hostnames_cron: Background hostname resolution (hourly)
  • edhbb_check_robots_txt_cron: robots.txt Disallow validation (daily)

Filtres

  • robots_txt: Adds disallow rule to robots.txt
  • edhbb_trusted_crawler_domains: Customise the FCrDNS hostname suffixes used to identify legitimate crawlers (e.g. .googlebot.com)
  • edhbb_trusted_crawler_ua_patterns: Customise the User-Agent tokens that trigger a synchronous FCrDNS check on trap hits (e.g. googlebot, bingbot)

File Structure

`

edh-bad-bots/
├── admin/
│ └── views/
│ └── admin-display.php # Admin interface HTML
├── assets/
│ ├── css/
│ │ └── admin-style.css # Admin page styling
│ └── js/
│ └── admin-script.js # Admin page JavaScript
├── includes/
│ ├── class-edhbb-admin.php # Admin functionality
│ ├── class-edhbb-blocker.php # Bot detection and blocking
│ ├── class-edhbb-database.php # Database operations
│ └── class-edhbb-dnslookup.php # DNS/PTR lookup system
├── edh-bad-bots.php # Main plugin file
├── LICENSE
└── readme.txt
`

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

  1. Clone the repository to your WordPress plugins directory
  2. Ensure you have a WordPress development environment running
  3. Activate the plugin and test your changes

Licence

This project is licensed under the GPL v3 or later.

Auteur

EncodeDotHost
– Website: https://encode.host
– GitHub: @EncodeDotHost

Soutien

For support, please visit the support forum: https://wordpress.org/support/plugin/edh-bad-bots/

Installation

  1. Upload the edh-bad-bots folder to your /wp-content/plugins/ directory
  2. Activez le plugin via le menu « Plugins » dans WordPress
  3. The plugin works immediately – no configuration required!
  4. Optionally, visit Tools > Bad Bots to manage whitelisted IPs and view blocked bots

Journal de modifications

Version 1.7.4

  • Enhancement: Synchronous FCrDNS guard on trap hits — when a request to the trap URL carries a Googlebot, Bingbot, or similar User-Agent, Forward-Confirmed Reverse DNS is run immediately before any block decision. Verified legitimate crawlers are whitelisted on the spot; spoofed UAs are blocked normally. Eliminates the previous up-to-one-hour window where a real crawler could be blocked while waiting for the background cron.
  • Enhancement: Daily edhbb_check_robots_txt_cron — checks whether a physical robots.txt file on the server is missing the trap URL Disallow rule. If so, an admin notice is displayed until the file is corrected. Has no effect when WordPress is serving robots.txt dynamically (the filter always includes the rule).
  • New filter: edhbb_trusted_crawler_ua_patterns — allows customising which User-Agent tokens trigger the synchronous FCrDNS pre-check (default: googlebot, bingbot, slurp, duckduckbot, baiduspider, yandexbot).

Version 1.7.3

  • Enhancement: Trap URL now sends X-Robots-Tag: noindex, nofollow HTTP header on every response, ensuring search engines cannot index the honeypot URL even if they reach it

Version 1.7.2

  • Fix: Replace wp_redirect() with wp_safe_redirect() across all admin form handlers
  • Fix: Replace is_writable() with wp_is_writable() for WP Filesystem API compliance
  • Fix: Escape block duration integer via absint() in help tab output to satisfy OutputNotEscaped sniff
  • Fix: Suppress PrefixAllGlobals sniff in admin view template (template-scoped variables, not true PHP globals)
  • Update: Tested up to WordPress 6.9

Version 1.7.1

  • Fix: Removed <Limit GET POST HEAD> wrapper from .htaccess block rules — bots using other HTTP methods (DELETE, PUT, PATCH, etc.) are now blocked at the server level too
  • Enhancement: Background cron hostname resolution batch size increased from 5 to 25 IPs per run, speeding up hostname population on sites with many blocked bots
  • Performance: EDHBB_Admin class is now only instantiated on admin requests (is_admin() guard), saving memory on every frontend page load
  • Cleanup: Plugin uninstall now removes all _transient_edhbb_* and _transient_timeout_edhbb_* entries from the options table for a fully clean uninstall

Version 1.7.0

  • Critical fix: Database migrations now run on plugin updates, not just on activation. A version-based check on plugins_loaded ensures schema changes (e.g. the hostname column) are applied even after automatic updates.
  • Critical fix: Removed synchronous gethostbyaddr()/gethostbyname() DNS calls from the frontend trap-hit path. These blocking OS calls could hang PHP workers under a botnet DoS. FCrDNS verification now runs exclusively in the background cron — verified legitimate crawlers are automatically unblocked and whitelisted by the cron job.
  • Fix: Replaced manual preg_replace()/put_contents() .htaccess rewrite with WordPress’s native insert_with_markers(), which uses LOCK_EX file locking to prevent .htaccess corruption under concurrent requests.
  • Fix: Added uninstall.php — custom database tables, plugin options, and column-exists cache entries are now fully removed when the plugin is deleted via WP Admin.
  • Fix: Unblocking an IP from a paginated admin list now returns the user to the same page instead of resetting to page 1.

Version 1.6.0

  • New: FCrDNS (Forward-Confirmed Reverse DNS) verification on trap hits — verified Googlebot, Bingbot, and other legitimate crawlers are protected from being accidentally blocked. Extensible via the edhbb_trusted_crawler_domains filter hook.
  • Fix: Plugin deactivation now correctly removes .htaccess block rules, matching the documented behaviour. Previously, blocks persisted at the server level after deactivation.
  • Fix: Cron scheduling moved into the activation hook — removed a redundant wp_next_scheduled() check that ran on every single page load.
  • Fix: Force-refresh hostname cache now uses delete_transient() per IP instead of a direct SQL DELETE query, ensuring compatibility with object caches (Redis, Memcached) used by managed WordPress hosts.
  • Enhancement: Blocked bots admin list is now paginated (50 per page) to prevent browser crashes and PHP out-of-memory errors on sites with large numbers of blocked IPs.

Version 1.5.0

  • Security: Fixed IP spoofing vulnerability — get_client_ip() now uses only REMOTE_ADDR, ignoring spoofable HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR headers
  • Security: Fixed trap detection false positives — URL path is now compared strictly rather than using loose strpos matching, preventing query strings from triggering blocks
  • Performance: Eliminated N+1 database queries during .htaccess generation — whitelist is now fetched once and checked with in_array() instead of a query per blocked IP
  • Performance: init_filesystem() no longer runs on every frontend page load — filesystem is only initialised when .htaccess write operations are actually needed
  • Performance: is_ip_whitelisted() and is_bot_blocked() now cache results in transients, with targeted cache invalidation on add/remove
  • Performance: column_exists() result is now cached in a WordPress option, eliminating repeated INFORMATION_SCHEMA queries
  • Performance: clean_old_blocked_bots() is now gated by an hourly transient, preventing a DELETE query on every page request
  • Performance: Removed synchronous DNS lookup on trap hit — bot is blocked immediately and hostname is resolved by the background cron job
  • Performance: Force-refresh-all-hostnames capped at 50 IPs per run to prevent PHP timeout and memory limit issues on large datasets
  • Fix: Removed [No PTR Record] from the cron retry query — IPs with no PTR record are no longer retried on every hourly run
  • Fix: Removed broken traditional_hostname_lookup() fallback which passed a raw IP to a PTR lookup (always returned empty)
  • Fix: Replaced all ReflectionClass usage with direct EDHBB_DNSLookup::get_hostname_for_blocked_ip() calls
  • Fix: .htaccess marker patterns now wrapped in preg_quote() for correctness
  • Fix: Reduced verbose DNS debug logging — routine start/end messages removed; only error and fallback messages remain
  • Accessibility: Added aria-hidden="true" to the hidden trap link so screen readers ignore it

Version 1.4.3

  • New: Advanced DNS lookup system with DNS over HTTPS (DoH) support
  • New: PTR record resolution for hostname identification of blocked IPs
  • New: Background hostname resolution via WordPress cron jobs
  • New: Manual hostname update buttons in admin interface
  • New: Force refresh all hostnames feature with cache clearing
  • New: Configurable block duration (days) in Options tab
  • New: Enhanced admin interface with hostname display in blocked bots table
  • New: Debug information panel for hostname resolution troubleshooting
  • New: Support for both IPv4 and IPv6 PTR lookups
  • Enhancement: Improved blocked bots table with hostname column
  • Enhancement: Better identification of blocked bots through hostname resolution
  • Enhancement: Automatic database migration system for hostname column
  • Enhancement: Fallback DNS resolution methods for better compatibility
  • Enhancement: DNS query caching for improved performance
  • Fix: Updated queries to gracefully handle missing columns during migration
  • Fix: Added backward compatibility for existing installations
  • Fix: Improved error handling and logging for database migrations

Version 1.4.2

  • Fixed Internal.LineEndings.Mixed in class-edhbb-blocker.php

Version 1.4.1

  • Fixed blank admin page

Version 1.4.0

  • Refactored all class names to use the EDHBB_ prefix to prevent conflicts.
  • Updated the “Tested up to” WordPress version to 6.8.
  • Corrected the “Requires PHP” version to 7.4 for consistency.

Version 1.3.0

  • Bringing up to WordPress coding standards

Version 1.2.3

  • Added instructions to the “Help” tab for excluding the unique trap URL from caching plugins.

Version 1.2.2

  • Fix: Block duration is now a configurable setting

Version 1.2.1

  • Fix: Fixing apache error doc

Version 1.2.0

  • New: Added custom error page

Version 1.1.2

  • Fix: Now adding htaccess rule at top of file

Version 1.1.1

  • Fix: Trigger htaccess rules to have higher priority

Version 1.1.0 – Major Feature Release

  • New: Server-level IP blocking via .htaccess file management
  • New: “Options” tab in admin interface for configurable blocking methods
  • Enhanced: Dual-level blocking system (server + PHP) for maximum effectiveness
  • Added: Automatic .htaccess file management with unique markers
  • Added: Smart whitelist filtering for .htaccess rules
  • Improved: Admin interface with enhanced tabbed navigation
  • Enhanced: Performance optimization with server-level blocking
  • Added: Nginx compatibility with PHP-only blocking fallback
  • Updated: Comprehensive documentation including .htaccess functionality
  • Added: Better error handling and logging for .htaccess operations
  • Added: Automatic cleanup of .htaccess rules on deactivation

Version 1.0.4

  • Adding min PHP + WordPress requirements, tested on WordPress 6.8.2

Version 1.0.3

  • Updated README and license

Version 1.0.2

  • Added plugin action links for easier access to settings

Version 1.0.1

  • Changed author name

Version 1.0.0

  • Initial plugin release
  • Core bot detection and blocking functionality
  • Admin interface for managing whitelisted IPs and blocked bots
  • Automatic robots.txt integration

Journal des modifications complet sur WordPress.org →

Captures d'écran

Allow list management
Allow list management
Block list management with hostname display
Block list management with hostname display
Options Page with configurable settings
Options Page with configurable settings

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best EDH Bad Bots alternatives

All bots plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 BBQ Firewall – Fast & Powerful Firewall Security BBQ Firewall – Fast & Powerful Firewall Security The fastest firewall plugin for WordPress. Protect against a wide range of threats with… de Jeff Starr 100K+ ★★★★★★★★★★ 4.9 (161) il y a 4 semaines 96
2 Login No Captcha reCAPTCHA Login No Captcha reCAPTCHA Adds a Google No Captcha ReCaptcha checkbox to your Wordpress and Woocommerce login, forgot… by Robert Peake 50K+ ★★★★★★★★★★ 4.5 (63) Il y a 6 mois 68
3 Shield Security – Blocage des bots intelligents, protection de la connexion par force brute et analyse des fichiers Sécurité du bouclier SMART WordPress Sécurité qui bloque automatiquement les robots, vous guide vers ce qui compte, et… par Paul 30K+ ★★★★★★★★★★ 4.8 (1K) il y a 1 semaine 94
4 Blackhole pour les mauvais bots Blackhole pour les mauvais bots Blackhole est un plugin de sécurité WordPress qui détecte et piège les mauvais bots dans un noir virtuel… de Jeff Starr 30K+ ★★★★★★★★★★ 4.7 (148) il y a 4 semaines 94
5 Spider Blocker Spider Blocker SpiderBlocker will block most common bots that consume bandwidth and slow down your blog. by Niteo 10K+ ★★★★★★★★★★ 4 (5) Il y a 3 ans 38
6 WP-Ban WP-Ban Ban users by IP, IP range, host name, user agent and referrer URL from visiting your… de Lester Chan 8K+ ★★★★★★★★★★ 3.7 (27) il y a 4 mois 68
7 Banhammer – Monitor Site Traffic, Block Bad Users and Bots Banhammer – Monitor Site Traffic, Block Bad Users and Bots Monitor traffic and ban unwanted visitors. Block any user or IP address so they can't… de Jeff Starr 1K+ ★★★★★★★★★★ 4.4 (19) il y a 4 semaines 84
8 Magic robots.txt Magic robots.txt This plugin automatically creates a robots.txt analyzing your site to improve your Google… by ABCdatos 1K+ ★★★★★★★★★★ 5 (1) Il y a 3 mois 67
9 Block Comment Spam Bots Block Comment Spam Bots A simple to use plugin that stops automated spam. Install and forget, and any automated… par Rick Hellewell 800+ ★★★★★★★★★★ 5 (4) Il y a 3 ans 34
10 GM Block Bots GM Block Bots This blocks semalt.com, buttons-for-website.com and others with a 403 Forbidden message so… by mickmel 800+ ★★★★★★★★★★ 4.4 (16) il y a 9 ans 37

FAQ

EDH Bad Bots: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is EDH Bad Bots free?

Yes. EDH Bad Bots is free to download and use from the official WordPress.org plugin directory.

Is EDH Bad Bots safe to use in 2026?

EDH Bad Bots works, but test it on a staging site before relying on it in 2026. It runs on 50+ sites, is rated 5/5 and was last updated 6 months ago, and scores 49/100 on our health check.

How many websites use EDH Bad Bots?

EDH Bad Bots is active on 50+ WordPress websites and has been downloaded 1,520 times since it launched in September 2025. It was downloaded 169 times in the last 30 days.

Does EDH Bad Bots work with WordPress 7.1?

EDH Bad Bots is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does EDH Bad Bots need?

EDH Bad Bots requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was EDH Bad Bots last updated?

The latest version, 1.7.4, was released on June 11, 2026 (6 months ago).

Who makes EDH Bad Bots?

EDH Bad Bots is developed and maintained by EncodeDotHost.

What are the best alternatives to EDH Bad Bots?

The most popular alternatives to EDH Bad Bots are BBQ Firewall (100K+ installs), Login No Captcha reCAPTCHA (50K+ installs) and Shield Security (30K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir