🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Injection Guard icon
Actively maintained Tested with WP 7.1 #1 in anti-hacking

Injection Guard

Blocks malicious and unknown query-string requests, detects injection attempts, and audits user capabilities and sessions.

Active installs1K+1K+ tier
Downloads · 30d1.5K▲ +39.3% vs prev. 30d
Rating5/55 reviews
Health score78/100Good
All-time downloads39.4KSince Feb 2014
Support resolved—No recent threads
RequiresWP 5.3PHP 7.2+
Downloads · 7d335▼ -4% week over week
Our verdict

Solid choice

Injection Guard is a solid plugin choice in 2026, with a few things worth checking first. It runs on 1K+ sites, is rated 5/5 and was last updated 1 month ago, and scores 78/100 on our health check.

  • Tested with the latest WordPress (7.1)
  • Momentum — downloads up 39.3% vs the previous 30 days

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

107215322Sep 3Oct 17Dec 1
Yesterday42
Daily average (1y)21
Peak day430Nov 1, 2026
Last 12 months7.7K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Injection Guard stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
anti-hacking #2 19 Best anti-hacking plugins →
firewall #88 1,486 Best firewall plugins →
security >100 10,000 Best security plugins →
sql-injection #1 859 Best sql-injection plugins →
wordpress security >100 10,000 Best wordpress security plugins →

Version adoption

Share of active sites per release.

  • 1.446.9%
  • 1.224.8%
  • 1.323.1%
  • 1.15.3%

Rating breakdown

★★★★★★★★★★ 5 from 5 reviews

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

About Injection Guard

From the official readme · v1.4.0

Description

Author: Fahad Mahmood
Project URI: https://www.androidbubbles.com/extends/wordpress/plugins/injection-guard
License: GPL v2 or later

Injection Guard is a WordPress plugin designed to block malicious query string attacks and suspicious URL parameters. It logs all incoming attempts, blocks harmful parameters, and adds extra security intelligence to your WordPress admin—like user session tracking and capability audit.

The plugin uses the ig_ prefix for database keys and functions, follows WordPress coding standards, and supports multiple languages. It’s compatible with pretty permalinks and helps in securing your site from automated bots and manual attacks.

How it works: Injection Guard learns which query-string parameters your visitors use (only the names, never the values). You mark each one as good or bad from the Log tab; bad parameters are blocked on that URL from then on. New in 1.4: an optional attack-signature scan, a global blacklist, safe-parameter patterns, a blocked-requests list with CSV export, and a dashboard that shows what is happening at a glance.

Pro version

Automatic IP ban for repeat offenders, email alerts, a new-administrator watch (also catches accounts created straight in the database), an extended signature set with scanner user-agent blocking, an IP allowlist and a capability-audit CSV export.

Method A (Admin Panel)

  1. Login to WordPress Admin > Plugins > Add New > Upload Plugin
  2. Upload the ZIP file and activate the plugin
  3. Go to Settings > Injection Guard, review the Settings tab and click “Save Settings”

Method B (Manual Upload)

  1. Download and unzip the plugin package
  2. Upload the folder to /wp-content/plugins/injection-guard/
  3. Activate the plugin from the WordPress Dashboard
  4. Visit Settings > Injection Guard to configure

Features

  • Logs all unique query strings attempting to penetrate your website
  • Blocks malicious or unknown query parameters (per URL or on every URL)
  • Safe-parameter list with prefix patterns such as utm_*
  • Optional attack-signature scan (SQL injection, script injection, path traversal, PHP execution) in “record” or “block” mode
  • Blocked-requests list with anonymised IPs, plus CSV export of the log and the blocked list
  • Search and filter the log, clear it, or let it forget old entries automatically
  • Dashboard with 24-hour counters and the latest blocked requests
  • Tracks login, logout, session start and duration per user
  • Capability audit report for all WordPress users, with search and a flagged-only filter
  • Multi-language support (FR, DE, ES)
  • Bootstrap-based admin UI and dashboard

License

This plugin is free software licensed under the GNU GPL v2 or later.

You should have received a copy of the GNU General Public License along with this plugin. If not, see http://www.gnu.org/licenses/gpl-2.0.html.

Installation

To install Injection Guard, you will need:
– WordPress 5.3 or later (tested up to 7.1)
– PHP 7.2 or later
– FTP/SFTP or hosting control panel access

Changelog

Fixes request logging for visitors, hardens input handling and the log size, removes an unsafe debug export, and adds a signature scan, blocked-requests list and new settings. Tested up to WordPress 7.1.

1.4.0

  • Tested up to WordPress 7.1.
  • New: attack-signature scan of query strings (off / record / block).
  • New: Blocked tab and blocked-requests list (anonymised IPs, rate-limited writes) with CSV export; log CSV export.
  • New: Settings tab: safe parameters (prefix patterns), global blacklist, 404 or 403 response, log limits and retention, proxy / CDN IP header choice, administrator exemption.
  • New: dashboard counters, log search and filters, clear-log button, capability audit search with flagged-only filter and last-login column.
  • New (Pro): automatic IP ban, email alerts, new-administrator watch, extended signatures and scanner user agents, IP allowlist, capability audit CSV.
  • Fix: the request log was overwritten by every visit of a non-administrator, so logging only worked while an administrator was browsing. Logging now works for all visitors.
  • Fix: bulk whitelist / blacklist saved the wrong URL for paths containing a slash; single actions and bulk actions now share the same normalisation.
  • Fix: the capability audit table never filled because its rows were parsed outside a table; the endpoint now returns JSON. A stray global table {} style was removed from the admin.
  • Fix: block check and log compared different spellings of a parameter (for example Foo and foo); both are now normalised, as are encoded and dot-segment paths, so such variations no longer slip past a blacklist.
  • Fix: block page no longer renders blank on block themes or themes without a 404 template.
  • Security: bounded the log (parameters per request, per URL, name length) so a flood of random query strings cannot bloat the database; the log is no longer autoloaded and is written only when something changes.
  • Security: visitor IP now uses REMOTE_ADDR unless a trusted proxy header is selected (forwarded headers can be forged); the IP history per user is capped.
  • Security: removed the dashboard ?hash debug export that wrote customer email hashes and password hashes to a file in the plugin folder; any leftover ab-hash.dat is deleted on update.
  • Security: AJAX handlers answer with JSON errors, validate every input, and settings are saved through a nonce-protected admin-post handler; CSV exports neutralise spreadsheet formulas; the debug helper pree() is restricted to administrators and escapes its output.
  • Fix: WooCommerce customer table no longer needs WooCommerce to be installed, works with HPOS orders, and escapes all output; external geolocation lookups are cached, time-limited and validated.
  • Improvement: no plugin file parsing on public page views; script versions use the plugin version instead of the current time so browsers can cache them.
  • Improvement: text domain is now loaded, remaining strings are translatable, an uninstall.php removes the plugin’s data, and privacy-policy text is provided.

1.3.0

  • Security: Fixed Stored XSS vulnerability by sanitizing query parameter keys, escaping admin output, improving query handling, and adding a log size limit. [Thanks to Wordfence / 15/03/2026 / Aramsri (Boeing777)].

1.2.9

  • Security Fix: Added depth-limited recursive sanitization for all POST/array inputs to prevent possible injection or malformed data attacks. [Thanks to Wordfence / 28/02/2026].
  • Security Fix: Enforced stricter nonce and super-admin checks on bulk whitelist/blacklist updates. [Thanks to Wordfence / 28/02/2026].
  • Security Fix: Standardized all AJAX JSON responses to use wp_send_json_success() / wp_send_json_error() for safer output. [Thanks to Wordfence / 28/02/2026].

1.2.8

  • Security Fix: Escaped $_SERVER['REQUEST_URI'] output to prevent Reflected Cross-Site Scripting (XSS) vulnerability in the admin logs tab. [Thanks to WPScan / 22/07/2025].

1.2.7

  • Enhanced security for capability audit with proper nonce validation and admin-only access.

1.2.6

  • Added user session tracking, logout history, and capability audit with proper prefixing (ig_) and textdomain usage. [Thanks to Hila / 10/04/2025]

Full changelog on WordPress.org →

Screenshots

Dashboard with 24-hour counters and the latest blocked requests
Dashboard with 24-hour counters and the latest blocked requests
Log tab: search, filter and whitelist / blacklist parameters
Log tab: search, filter and whitelist / blacklist parameters

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Injection Guard alternatives

All anti-hacking plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
2 Kratos Anti Spam Kratos Anti Spam Stop SPAM! Stop HAKING! No annoying CAPTCHA for your users! As simple as that! by softpill.eu 10+ ★★★★★★★★★★ No reviews 11 years ago 23

FAQ

Injection Guard: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Injection Guard free?

Yes. Injection Guard is free to download and use from the official WordPress.org plugin directory.

Is Injection Guard safe to use in 2026?

Injection Guard is a solid plugin choice in 2026, with a few things worth checking first. It runs on 1K+ sites, is rated 5/5 and was last updated 1 month ago, and scores 78/100 on our health check.

How many websites use Injection Guard?

Injection Guard is active on 1K+ WordPress websites and has been downloaded 39,422 times since it launched in February 2014. It was downloaded 1,548 times in the last 30 days.

Does Injection Guard work with WordPress 7.1?

Yes. The developer has tested Injection Guard up to WordPress 7.1.5, the latest release. It requires WordPress 5.3 or newer.

What PHP version does Injection Guard need?

Injection Guard requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Injection Guard last updated?

The latest version, 1.4.0, was released on October 31, 2026 (1 month ago).

Who makes Injection Guard?

Injection Guard is developed and maintained by Fahad Mahmood.

What are the best alternatives to Injection Guard?

The most popular alternatives to Injection Guard are Kratos Anti Spam (10+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open