Title: Injection Guard
Author: Fahad Mahmood
Published: <strong>2014 年 2 月 21 日</strong>
Last modified: 2026 年 3 月 14 日

---

搜尋外掛

![](https://ps.w.org/injection-guard/assets/banner-772x250.png?rev=2538153)

![](https://ps.w.org/injection-guard/assets/icon-256x256.png?rev=1361282)

# Injection Guard

 由 [Fahad Mahmood](https://profiles.wordpress.org/fahadmahmood/) 開發

[下載](https://downloads.wordpress.org/plugin/injection-guard.1.3.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/injection-guard/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/injection-guard/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/injection-guard/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/injection-guard/#developers)

 [技術支援](https://wordpress.org/support/plugin/injection-guard/)

## 外掛說明

**Author:** [Fahad Mahmood](https://www.androidbubbles.com/contact)
 **Project URI:**
[https://www.androidbubbles.com/extends/wordpress/plugins/injection-guard](https://www.androidbubbles.com/extends/wordpress/plugins/injection-guard)**
License:** GPL v3

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.

### 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 > IG Settings 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 > IG Settings to configure

### Features

 * Logs all unique query strings attempting to penetrate your website
 * Blocks malicious or unknown query parameters
 * Tracks login, logout, session start and duration per user
 * Capability audit report for all WordPress users
 * 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](http://www.gnu.org/licenses/gpl-2.0.html).

## 螢幕擷圖

[⌊Settings panel with log and blocking tools⌉⌊Settings panel with log and blocking
tools⌉[

Settings panel with log and blocking tools

[⌊Capability audit screen with suspicious flagging⌉⌊Capability audit screen with
suspicious flagging⌉[

Capability audit screen with suspicious flagging

## 安裝方式

To install Injection Guard, you will need: – WordPress 3.0 or later – FTP/SFTP or
hosting control panel access

## 常見問題集

### Does this plugin help with SEO?

Yes. By preventing invalid URLs from being indexed, it supports clean crawl behavior.

### How does it work?

It monitors incoming query strings and blocks those that don’t match expected patterns.
You can log, block, or analyze attempts.

### What if I’m still getting suspicious traffic?

Update to the latest version, use pretty permalinks, and tighten your query parameter
policy.

### Can I get help with setup or troubleshooting?

Yes. Use the plugin support tab or contact the author via the provided link.

## 使用者評論

![](https://secure.gravatar.com/avatar/c8d8058afcb7e522cc256f8e77b4d33805f8dba2966d3ca7e203e3ab5b8d75b8?
s=60&d=retro&r=g)

### 󠀁[Removes Headaches to Beginners](https://wordpress.org/support/topic/removes-headaches-to-beginners/)󠁿

 [DoctorMason](https://profiles.wordpress.org/doctormason/) 2021 年 4 月 26 日

Injection Guard with Wordfence allows me to sleep and not worry. Don’t even have
to check all of the reported links. Along with articles about security in wp-config
this beginner is extremely satisfied with the Injection Guard plugin.

![](https://secure.gravatar.com/avatar/3a453cf9c6d08355ed8d6a44ef641771d7725023f61791dcd03ab1908513e273?
s=60&d=retro&r=g)

### 󠀁[A good tool to keep an eye on](https://wordpress.org/support/topic/a-good-tool-to-keep-an-eye-on/)󠁿

 [Fahad Mahmood](https://profiles.wordpress.org/fahadmahmood/) 2016 年 10 月 15 
日

Using this plugin, you can check the query variables which are incoming to your 
website for injection purpose.

![](https://secure.gravatar.com/avatar/29b07a74191062718cfa0d3713d424d58e7e6f469f7a1f47dab08640daa4e0df?
s=60&d=retro&r=g)

### 󠀁[i like it.](https://wordpress.org/support/topic/i-like-it-289/)󠁿

 [8761827639](https://profiles.wordpress.org/8761827639-1/) 2016 年 9 月 3 日

yeah it’s good – had been searching for a solution like this for quite a while, 
provides good security without breaking your site. would recommend. definitely worth
a $15 donation to make up for removal of stress and headaches.

 [ 閱讀全部 4 則使用者評論 ](https://wordpress.org/support/plugin/injection-guard/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Injection Guard〉的開發相關工作。

參與者

 *   [ Fahad Mahmood ](https://profiles.wordpress.org/fahadmahmood/)
 *   [ Invoicepress ](https://profiles.wordpress.org/invoicepress/)
 *   [ ALI ](https://profiles.wordpress.org/alianwaar91/)

[將〈Injection Guard〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/injection-guard)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/injection-guard/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/injection-guard/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/injection-guard/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/injection-guard/)。

## 變更記錄

#### 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]

#### 1.2.4

 * Updated version for WordPress. [05/06/2024]

#### 1.2.3

 * Updated version for pioneer. [Thanks to alianwaar91][11/05/2023]

#### 1.2.2

 * Updated version for vulnerable to Broken Access Control. [Thanks to Darius Sveikauskas
   | Patchstack Alliance overlord][10/05/2023]

#### 1.2.1

 * Updated version for WordPress. [07/09/2022]

#### 1.2.0

 * Bootstrap, FontAwesome and timestamp based log added. [Thanks to Team Ibulb Work]

#### 1.1.9

 * Updating jQuery functions.

#### 1.1.8

 * Updating FAQs.

#### 1.1.7

 * Languages added. [Thanks to Abu Usman]

#### 1.1.6

 * Dashboard refined with customers results.

#### 1.1.5

 * Dashboard introduced for registered users activity regarding orders and logins
   from different locations.

#### 1.1.4

 * Sanitized input and fixed direct file access issues.

#### 1.1.3

 * Updating a few Illegal string offset conditions. [Thanks to PapGeo]

#### 1.1.2

 * Updating a few Illegal string offset conditions.

#### 1.1.0

 * Releasing with WP Mechanic free help feature.

## 中繼資料

 *  版本 **1.3.0**
 *  最後更新 **4 個月前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 3.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/injection-guard/)
 * 標籤:
 * [anti-hacking](https://tw.wordpress.org/plugins/tags/anti-hacking/)[firewall](https://tw.wordpress.org/plugins/tags/firewall/)
   [security](https://tw.wordpress.org/plugins/tags/security/)[sql-injection](https://tw.wordpress.org/plugins/tags/sql-injection/)
   [wordpress security](https://tw.wordpress.org/plugins/tags/wordpress-security/)
 *  [進階檢視](https://tw.wordpress.org/plugins/injection-guard/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  4 個 5 星使用者評論     ](https://wordpress.org/support/plugin/injection-guard/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/injection-guard/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/injection-guard/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/injection-guard/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/injection-guard/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/injection-guard/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/injection-guard/reviews/)

## 參與者

 *   [ Fahad Mahmood ](https://profiles.wordpress.org/fahadmahmood/)
 *   [ Invoicepress ](https://profiles.wordpress.org/invoicepress/)
 *   [ ALI ](https://profiles.wordpress.org/alianwaar91/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/injection-guard/)