Advanced IP Blocker
A complete WordPress security firewall: blocks IPs, bots, countries & ASN.
Install in
Advanced IP Blocker is your all-in-one security solution to safeguard your WordPress website from a wide range of threats. This plugin provides a comprehensive suite of tools to automatically detect and block malicious activity, including brute-force attacks, vulnerability scanning, and spam bots. With its intuitive interface, you can easily manage whitelists, blocklists, and view detailed security logs to understand exactly how your site is being protected.
Important Note on PHP Version:
To ensure maximum security and access to all features, we strongly recommend using PHP 8.1 or higher. Some advanced features (like the local MaxMind database or full 2FA management via WP-CLI) require PHP 8.1.
Key Features:
* Critical Admin & Privilege Escalation Alerts: Receive immediate Email and/or Push notifications (with an optional dedicated agency security email) whenever a new Administrator is created, a user is promoted to Administrator, public registration or default admin role settings are modified, or an Administrator logs in from a new country.
* Push Notifications (Slack, Discord, Teams & Native Telegram Bot API): Get real-time security alerts delivered to your team channels, including native Telegram Bot API support with HTML formatting and forum topic (message_thread_id) routing.
* Advanced Rules Engine with Dry-Run (Log Only) Mode: Create powerful, custom security rules with multiple conditions (IP, Country, ASN, URI, User-Agent, Request Method, Referer, Username) and actions (Block, Challenge, Rate Limit, Threat Score, or Log Only simulation to safely test rules in production without blocking legitimate traffic).
* Firewall & Proxy Diagnostics + Anonymized Support Report: Run instant local checks for Proxy/Whitelist misconfigurations, active security/WAF plugin conflicts, and internal DB/FIM/OPcache health, and copy a 100% anonymized technical report in one click.
* File Integrity Monitor & Malware Scanner: Automatically scans WordPress core files, active plugins/themes, and the uploads directory for malware, hidden PHP shells, and unauthorized modifications. Safely neutralize threats in an encrypted Quarantine Vault, with built-in graceful degradation if server antivirus software quarantines the scanner engine.
* Admin Access Control: Granular control over which administrators can access the plugin’s configuration dashboard. Restrict plugin management while keeping firewall rules intact for all editors and admins.
* Hardening & Core Protection: Powerful tools to disable WordPress application passwords, turn off the built-in file editor, block PHP execution in the uploads folder, protect REST API user endpoints from enumeration, and hide the WordPress version from attackers.
* Intelligent Zero-Day WAF Sync: Automatically download and apply critical WAF signatures from the AIB Central Server. Stay protected against zero-day vulnerabilities without needing to update the plugin manually, running completely independent of your custom WAF configuration.
* Block Ghost IPs: Automatically block IPs without ASN and Reverse DNS to stop anonymous traffic (Warning: Could cause false positives if rDNS is misconfigured by ISPs).
* Captcha Integrations (Turnstile & hCaptcha): Seamlessly integrate modern verification challenges like Cloudflare Turnstile and hCaptcha, with granular control per module and a smart fallback to our invisible JS Challenge to prevent accidental lockouts.
* Rate Limiting Advanced Rules: Create highly specific rate limits for different endpoints. Set a strict limit with a Turnstile challenge for /login, while keeping a more generous limit with a temporary block for your main API, all without affecting the rest of the site.
* Distributed Attack Protection (Auto-Panic): Automatically shields your entire site with a global JS challenge during massive traffic spikes, keeping your server online while intelligently bypassing trusted bots and excluded routes.
* IP & ASN Diagnostics Tool: A complete Inspector tool integrated directly into the admin bar. Quickly audit any IP or ASN against your Geolocation database, Threat Scoring system, Spamhaus drops, and manual blocking rules in real-time.
* Advanced Rules Import/Export: Seamlessly migrate or backup your custom security rules across multiple WordPress websites with full JSON validation, structural deduplication, and client-side file generation.
* Granular JS Challenge Modes: Choose between “Managed” (human interaction checkbox) and “Automatic” (invisible Proof-of-Work execution) per security module.
* Country Selector Copy/Paste: Instantly copy and paste a raw list of 2-letter country codes directly into Geoblocking, Geo-Challenge, and Whitelist Login fields.
* AIB Cloud Network V3: Next-generation distributed threat intelligence network with individual API Keys per site, fast indexed database lookups (wp_advaipbl_community_ips), and optimized background synchronization.
* Whitelist Login Countries (with Threat Scoring Integration): Restrict your WordPress login page and XML-RPC to only allow connections from specific, whitelisted countries, accumulating Threat Score points for persistent bots while keeping access open for legitimate travelers.
* Bulk Import/Export & Bulk Actions: Import massive lists of IPs via CSV or manual entry with strict duration inheritance and conflict resolution, plus full bulk-action management for Whitelist and Blocked IPs.
* Internal Security & Forensics (Activity Audit Log): Track every sensitive WordPress event (plugin installs, settings changes, role changes, user logins) with timestamped, immutable records.
* Deep Scan & Vulnerability Scanner: Audit your WordPress environment instantly against a database of 30,000+ known vulnerabilities, with optional scheduled email security summaries.
* Server IP Reputation Check: Instantly audit your web server’s IP address against major blacklists (Spamhaus, AbuseIPDB) to diagnose SEO and email delivery issues.
* HTTP Security Headers: Easily configure HSTS, X-Frame-Options, X-Content-Type-Options, CSP (including Report-Only mode), and Permissions-Policy.
* Cloud Edge Defense (Cloudflare): Connect your site directly to Cloudflare’s global network and automatically sync your blocklists to stop attackers at the edge with zero server load.
* Server-Level Firewall (.htaccess) & File Hardening: Write blocking rules and protect sensitive files (wp-config.php, readme.html, .git) directly at the Apache/LiteSpeed level before PHP or WordPress loads.
* Auto-Cleaning Logic: Smart expiration handling automatically removes stale IPs from both the local database and external firewalls (Cloudflare / .htaccess).
* AbuseIPDB Integration: Proactively check unknown visitor IPs against AbuseIPDB’s real-time crowdsourced database and block high-risk actors on their very first request.
* Edge Firewall Mode: Protect any standalone PHP file or non-WordPress folder on your server using auto_prepend_file.
* Smart & Known Bot Verification: Uses reverse DNS lookups to verify legitimate crawlers (Googlebot, Bingbot), supports official uptime monitoring bot IP lists (UptimeRobot, Pingdom), and recognizes legitimate iOS iCloud Private Relay and social preview traffic.
* Advanced IP Spoofing Protection (Trusted Proxies): Zero-trust Trusted Proxies system with one-click Quick Add presets for Cloudflare, Fastly, and QUIC.cloud CIDRs so the plugin always resolves the true visitor IP.
* Geo-Challenge & Endpoint Lockdown Mode: Present a quick JavaScript challenge to high-risk countries or automatically shield wp-login.php and xmlrpc.php during sustained distributed attacks.
* Two-Factor Authentication (2FA) & Active User Session Management: Secure accounts with TOTP authentication, backup codes, role enforcement, and per-device session monitoring/termination.
* IP Trust & Threat Scoring System: Assigns contextual “threat points” to suspicious IPs and blocks them only when they reach your configured threshold.
* Attack Signature Engine: Proactively stops distributed botnets by identifying and challenging the attacker’s fingerprint rather than just individual IPs.
* Web Application Firewall (WAF): Block SQLi, XSS, path traversal, and RCE attempts with customizable rulesets and exclusions.
* And much more: Onboarding Setup Wizard, Rate Limiting, Country & ASN Blocking (with Spamhaus support), ASN Whitelisting, Google reCAPTCHA, Honeypots, White-Label filter (advaipbl_show_branding), and Full WP-CLI Support.
Written by Joobi from the project's own listing. See the source page
8.13.29
- NEW FEATURE (Critical Admin & Privilege Escalation Alerts): Added immediate security notifications (Email, Push Webhooks, or Both, with an optional dedicated agency security email) under Settings -> Internal Security & Forensics. Triggers instantly when a new Administrator is created, a user is promoted to Administrator, public registration (
users_can_register) is enabled,default_roleis set to Administrator, or an Administrator logs in from a new country. - NEW FEATURE & SECURITY (Native Telegram Bot API & Webhook Hardening): Added built-in support for official Telegram Bot API URLs (
api.telegram.org/bot.../sendMessage?chat_id=..., including optionalmessage_thread_idfor forum topics) in Push Notifications with native HTML formatting (parse_mode: HTML) alongside Slack, Discord, and Microsoft Teams. Hardened outbound webhook delivery against SSRF by enforcing stricthttps://URLs, switching towp_safe_remote_post()withredirection => 0,sslverify => true, andtimeout => 5, and masking secret webhook tokens before logging errors. - NEW FEATURE (Advanced Rules Dry-Run / Simulation Mode): Added a
Log Only (Simulate / Dry-Run)action to the Advanced Rules Engine so administrators can test complex rules in production—recording matches in Security Logs and rule hit counters—without blocking or challenging legitimate traffic. - NEW FEATURE (Firewall & Proxy Diagnostics + Support Report): Expanded Local Site Scan with three instant diagnostic checks (Proxy & Whitelist health, active security/WAF plugin conflict detection, and internal DB/FIM/OPcache verification) plus a one-click Copy Anonymized Support Report button that excludes domains, IPs, emails, and tokens.
- PERFORMANCE & API OPTIMIZATION (WP-Cron Frequencies): Rescheduled queued Community Threat Reports (
advaipbl_community_report_event_v2) from 6 hours to hourly (with randomized jitter) for faster global threat intelligence updates, while reducing passive version-check polling for Zero-Day WAF rules to every 2 hours (advaipbl_2_hours) and FIM signatures to every 6 hours (advaipbl_6_hours). - COMPATIBILITY & RESILIENCE (Legacy Database & Cooldown): Changed
advaipbl_activity_log.timestamptoTIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMPfor full compatibility with older MySQL 5.5 / MariaDB servers, and added a 15-minute transient cooldown (advaipbl_db_check_cooldown) tocheck_database_update()to prevent repeateddbDelta()retries on every admin request. - ENHANCEMENT (Documentation & Cleanup): Added direct contextual help links to the new Push Notifications and FIM documentation guides on
advaipbl.com, and extendeduninstall.phpto clean up alladvaipbl_%user meta keys on plugin removal.
8.13.28
- RESILIENCE & COMPATIBILITY (FIM Graceful Degradation): Moved
includes/class-advaipbl-fim-engine.phpfrom mandatory core initialization to conditional loading. If a server-side antivirus or malware scanner (such as Imunify360, cPGuard, BitNinja, or ClamAV) quarantines that file as a false positive, Advanced IP Blocker now continues operating normally (WAF, Rate Limiting, Geo-blocking, Login Protection, 2FA, and basic file checksum verification remain active) instead of halting with a initialization failure. - UI & UX (Plugin-Scoped Notice & Persistent Dismiss): Added a clear warning notice shown exclusively inside Advanced IP Blocker admin pages when
class-advaipbl-fim-engine.phpis missing—respecting third-party notice suppression while including a nonce-protected Dismiss permanently option stored per user. Also added dedicated inline status notices in the File Integrity Monitor dashboard and under Settings -> Internal Security & Forensics. - PERFORMANCE (Cron & Sync Guard): Automatically pauses and unschedules background malware signature synchronization (
advaipbl_fim_signatures_sync_eventandadvaipbl_fim_signatures_version_check_event) wheneverADVAIPBL_FIM_Engineis unavailable.
8.13.27
- BUGFIX & SECURITY (Active User Sessions / Proxy IP Resolution): Added
sync_real_ip_on_auth_cookie()hooked toset_auth_cookieto update newly created WordPress session tokens with the resolved real client IP (get_client_ip()via Trusted Proxies) usingWP_Session_Tokenspublic APIs, preventing Cloudflare or reverse-proxy IPs from appearing in Active User Sessions even on servers without Nginxreal_ipconfigured. - NEW FEATURE (Active User Sessions Control): Added individual session termination (Close Session) alongside Close All for multi-device users, plus a Current badge to clearly identify the administrator’s active session and prevent accidental self-logout.
- ENHANCEMENT (Device Detection): Upgraded
parse_user_agent()to accurately identify modern Chromium browsers (Edge,Opera,Samsung Internet), iOS browsers (CriOS,FxiOS), andChromeOS, and added a tooltip displaying the fullUser-Agentstring on hover. - ENHANCEMENT (Trusted Proxies & CDN Manager): Switched default Trusted Proxies and the Cloudflare Quick Add preset from ASNs to official Cloudflare IPv4/IPv6 CIDRs (shared via
ADVAIPBL_CDN_Manager::get_cloudflare_cidrs()), removed the discontinued StackPath preset, added line-by-line deduplication in Quick Add, and implementedfetch_provider_ips()for Cloudflare, Fastly, and QUIC.cloud. - ENHANCEMENT (Audit Log & 2FA): Successful 2FA step-2 logins in
handle_login_action()now recorduser_loginevents in the Activity Audit Log cleanly without triggering duplicate third-partywp_loginside effects.
8.13.26
- NEW FEATURE (Developer Filter / White-Label): Introduced the
advaipbl_show_brandingWordPress filter (trueby default) and centralized branding rendering viaADVAIPBL_Main::get_branding_html(). Administrators and agencies can now cleanly disable the footer attribution (Performance & security by Advanced IP Blocker) globally or selectively by context (block_page,login_whitelist,login_geo,js_challenge,captcha) without modifying core plugin files. - PERFORMANCE & OPTIMIZATION (Database Size): Reduced the default
Log Retention (days)value from 30 days to 15 days across core defaults, settings UI, audit log cleanup, and challenge metrics retention to prevent excessive database growth on shared hosting environments while keeping existing user-configured retention values intact.
8.13.25
- SECURITY (REST API User Protection): Migrated user endpoint protection to
rest_pre_dispatchwith strict 403 Forbidden responses for anonymous requests to/wp/v2/users, integrated with Threat Score scoring when Strict Author Scan Block is active, and enforced aggressive anti-cache HTTP headers (Cache-Control: private, no-cache, no-store, must-revalidate,X-Accel-Expires: 0) to prevent intermediate proxies (Varnish, Fastly, Cloudflare, Nginx) from caching and exposing unauthenticated user lists. - SECURITY (Data Leak Prevention): Implemented automated sanitization on all public REST API post types (
rest_prepare_{post_type}) to strip embedded author links and objects (_embedded.author) from post queries, neutralizing username discovery through?_embed. - SECURITY (Author Scan Protection): Enhanced author enumeration detection to intercept both numeric ID queries (
?author=X) and author slug queries (?author_name=X), accompanied by anti-cache headers. - SECURITY (Whitelist & Proxy Isolation): Hardened the IP whitelist to reject loopback addresses (
127.0.0.1,::1) from being manually added as general whitelisted IPs, preventing reverse-proxy header spoofing and unintended authorization bypasses in multi-tier server architectures (Cloudflare, Varnish, Nginx). Includes automatic migration (auto_migrate_8_13_25) to clean legacy loopback entries from the whitelist while keeping them safely in Trusted Proxies. - PERFORMANCE & RESILIENCE (Community Sync & Diagnostics): Implemented client-side concurrency mutex locks and a 2-hour minimum cooldown between automatic scheduled synchronizations to prevent broken or aggressive visitor-triggered WP-Cron loops from overwhelming the central API. Added
If-None-Match/ ETag support to accept304 Not Modifiedresponses without re-downloading identical feeds, and gracefully handled HTTP 429 rate-limiting responses with clear diagnostic warnings in the General Log and automatic cooldown backoff. - ENHANCEMENT (Telemetry & Diagnostic Logging): Enriched Central API HTTP 429 rate-limiting events in General Log across Community Blocklist and WAF/FIM version check endpoints. Log entries now capture the exact request endpoint path, server error response body, and
Retry-Afterheader interval for streamlined auditing and support troubleshooting, fully backed by internationalization (.pot). - ENHANCEMENT (Remote Notices UI): Redesigned the remote security advisories layout with an automatic 2-column container, official local dashboard icon (
assets/img/icon-256x256.png), and backward-compatible support for dual aligned action buttons (primary and secondary). - SECURITY (Cloud WAF Signatures): Deployed 4 new cloud-synced Zero-Day WAF rules and signatures to defend against critical RCE and arbitrary file upload vulnerabilities in The Grid (CVE-2026-94169) and YOOtheme Pro (CVE-2026-102785).
8.13.24
- SECURITY (WAF & Advanced Rules Engine): Hardened request URI and query string normalization, path exclusion parsing, and challenge session evaluation to ensure consistent enforcement of blocking, scoring, and rate-limiting rules across all request contexts.
- SECURITY (Access Control): Strengthened capability verification (
advaipbl_manage_settings) across WordPress Settings API groups, admin actions, File Integrity Monitor operations, and background task runners for strict role-based isolation. - SECURITY (Network & Proxy Handling): Improved multi-hop proxy header parsing (
X-Forwarded-For) and enforced strict TLS certificate verification on outbound remote advisory connections. - PERFORMANCE & STABILITY: Capped raw HTTP body inspection (
php://input) to 128 KB in the WAF and Advanced Rules engines to prevent excessive memory consumption during oversized POST requests, improved regex pattern preservation when saving custom rules in the admin UI, and implemented safe PCRE2 batch compilation in the File Integrity Monitor (FIM) regex scanner. - SECURITY (Whitelist & Anti-Lockout): Added multi-layer whitelist and active administrator session verification before dispatching IP blocks to Cloudflare Edge or queueing reports for the AIB Community Network, and ensured automatic Cloudflare rule removal when an IP is whitelisted.
8.13.23
- SECURITY (.htaccess & Anti-Lockout): Enforced strict whitelist filtering in Apache
.htaccessrule generation, guaranteeing that whitelisted IPs (administrator sessions, search engine bots, loopback) are never written into server-level deny directives. Fixed uninstallation and deactivation routines to cleanly and unconditionally remove# BEGIN Advanced IP Blockerdirectives, and hardened unblock routines to purge stale records even if an IP was already listed in the whitelist. - SECURITY (Import / Export): Hardened Settings Import/Export against accidental lockouts. Excluded whitelisted and active administrator IPs from exported blocked IP tables, rejected whitelisted IPs during table restoration, enforced automatic admin unblocking and whitelist validation post-import, sanitized API keys (Turnstile/hCaptcha) from templates, isolated site-specific secrets, enforced strict upload validation (
is_uploaded_file()) with a 10MB limit, and added UTF-8 BOM tolerance. - ENHANCEMENT (Cloud Edge Defense): Hardened Cloudflare edge rule uninstallation in
uninstall.php. Added PHP execution time extension (set_time_limit(300)), streamlined request timeouts, and implemented rate-limiting delays (usleep(30000)) to ensure clean, uninterrupted edge firewall rule deletion without timing out during complete plugin removal. - SECURITY (Advisories): Expanded the Remote Notices system (
ADVAIPBL_Remote_Notices) with WordPress Core version rule matching (target_wp_rule) to dynamically alert administrators about critical core vulnerabilities affecting specific release branches (e.g., WP 7.1.3 RCE upgrade vulnerability), and added automatic BOM stripping to ensure reliable JSON parsing. - BUGFIX (Uninstaller): Ensured 100% clean data deletion in
uninstall.phpwhen “Delete Data on Uninstall” is enabled. Added missing File Integrity Monitor baseline version (advaipbl_fim_baseline_version) and live feed token to the purge routine, and added a wildcard database sweep (advaipbl_%andadvanced-ip-blocker_%) to guarantee no orphaned options remain inwp_options. - BUGFIX (UI/UX): Resolved duplicate admin notices on fresh installations and settings pages by removing redundant template invocations, eliminating duplicate hook registrations, and adding static execution guards to ensure every admin notice and telemetry banner renders strictly once per request.
- NEW FEATURE (WP-CLI): Added dedicated
wp advaipbl panic <status|on|off|mode>subcommand, allowing system administrators to inspect, manually engage (emergency DDoS JS challenge), or cancel Distributed Attack Protection (Auto-Panic) directly from the terminal. - NEW FEATURE (WP-CLI): Added dedicated
wp advaipbl hardening <status|enable|disable> [feature]subcommand to audit and toggle WordPress Core Hardening protections (PHP in Uploads, File Editor, Application Passwords, WP Version, ImageMagick) via CLI. - NEW FEATURE (WP-CLI): Added dedicated
wp advaipbl cache <purge|flush|status>subcommand to safely inspect and purge temporary block transients, rate-limiting counters, and security metrics buffers without affecting permanent rule lists. - ENHANCEMENT (WP-CLI): Redesigned
wp advaipbl statusinto a comprehensive categorized report covering all modules (Emergency Defense, Firewall & WAF, Threat Feeds & Geo, Access & Auth, Hardening, and Forensics) with real-time attack alerts. - ENHANCEMENT (WP-CLI): Enhanced
wp advaipbl config getto seamlessly merge database options with core plugin default settings, ensuring accurate runtime configuration inspection even on fresh installations, and added--searchand format support. - ENHANCEMENT (WP-CLI): Improved
wp advaipbl config setwith natural boolean toggle recognition (on/off/true/false) and robust array parsing for geoblocking and role restrictions. - UI/UX: Updated the “WP-CLI Interface” documentation modal in the Credits / About tab with the complete and categorized command reference.
8.13.22
- NEW FEATURE: Added dedicated WP-CLI administrator management subcommand (
wp advaipbl admin <list|allow|remove|reset>) allowing administrators to view, authorize, remove, or reset access to the plugin dashboard directly via terminal. - ENHANCEMENT: Added automatic fail-safe recovery and
deleted_userhook cleanup for Authorized Administrators (allowed_admin_users). If all authorized administrator accounts are deleted from WordPress, the plugin automatically restores access to active administrators withmanage_options, preventing permanent orphaned lockouts while strictly maintaining access restrictions when authorized admins exist. - ENHANCEMENT: Improved WP-CLI
config setparsing for array-based options (allowed_admin_users,tfa_force_roles), adding support for comma-separated values, JSON arrays, and clearing restrictions usingnoneoremptywithout triggering PHP array-to-string notices. - SECURITY: Updated Site Health & Security Scanner PHP version classification to match official PHP lifecycle policies (<8.2 flagged as Critical/EOL with no security support, 8.2 as Warning, 8.3/8.4/8.5+ as Good/Active).
- ENHANCEMENT: Fixed child theme handling in Vulnerability Audit. When child themes are installed, the scanner now inspects the parent theme’s actual version rather than sending the child theme’s local version, preventing false positive vulnerability alerts and clearly displaying child-to-parent relationships in the UI.
- UI/UX: Enhanced Dashboard “Challenges Overview” chart breakdown. Out of total challenges served, the chart now accurately depicts the challenge outcomes: Verified Humans (Passed), Failed Attempts, and Unsolved/Dropped Bots (automated threats stopped before executing JavaScript), eliminating redundant slices.
- ENHANCEMENT: Improved “Advanced Rules Hits” widget with real-time metrics buffer aggregation and graceful empty-state messaging when no rules have been triggered.
8.13.21
- NEW FEATURE: Enhanced Remote Security Advisories (
ADVAIPBL_Remote_Notices) with intelligent local environment filtering, allowing security alerts to target specific vulnerable PHP branches (including EOL branches) or specific installed/active plugins and themes by slug and version threshold. - ENHANCEMENT: Linked File Integrity Monitor (FIM) critical file modification email alerts to the maste
Follow this listing's changes (Atom feed)