Linux 软件免费装
Banner图

SentraIP

开发者 moveforwardltd
更新时间 2026年9月11日 05:50
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security geolocation firewall ip blocking bot protection

下载

1.1.6

详情介绍:

SentraIP filters unwanted visitors before they reach your WordPress application layer. Blocking runs on the WordPress init hook, before your theme and most plugins load, and every lookup is performed locally against offline MMDB database files in your uploads directory — so no external request is made on normal page loads. The plugin is free and open source (GPLv2 or later), maintained by Move Forward Limited. It works out of the box and no account and no paid plan is ever required to use it. What it blocks Advanced datasets (optional add-on) Additional IP-reputation datasets — VPN, TOR, PROXY, THREAT and Datacenter blocking, per-provider VPN blocklists, and composed AND/OR rules — are available through a separate companion plugin, SentraIP PRO, which connects to a SentraIP account. This free plugin is fully functional on its own and never requires the add-on. See https://sentraip.com for details. How it works Choose a geolocation provider on the Geolocation page and download the country database (a monthly WordPress cron keeps it fresh). Configure your rules under Countries, Bots and Settings → Blocking Controls. Every request is then checked locally against the offline database files — there is no per-request external call.

安装:

  1. In your WordPress admin go to Plugins → Add New → Upload Plugin.
  2. Choose the sentraip.zip file and click Install Now, then Activate.
  3. Open SentraIP → Geolocation, choose a free IP-to-country provider (DB-IP needs no account) and download the database.
  4. Configure your blocking rules under Countries and Bots, and the master switches under Settings → Blocking Controls.
  5. (Optional) On SentraIP → Settings, enable the free SPAM reputation dataset.
Manual installation: extract the sentraip folder into /wp-content/plugins/ and activate it from the Plugins menu. Requirements: PHP 7.4+ and WordPress 6.8+. IP lookups use the MaxMind DB reader, which is bundled with the plugin.

屏幕截图:

  • Statistics — total blocked traffic over time and a breakdown by type.
  • Blockable Traffic — traffic that was allowed through but matches a dataset you could block, with per-category counters and top-10 tables.
  • Countries — block visitors by country, grouped by continent; your own country is always excluded.
  • Bots — block well-known crawlers, scanners and attack tools by User-Agent.
  • Geolocation database — choose a free IP-to-country provider (DB-IP, MaxMind or IP2Location) and download it locally.
  • Settings — master on/off switches per category, response code, proxy headers, IP whitelist and emergency recovery.

升级注意事项:

1.0.22 Maintenance and compliance release. Blocking still follows the datasets your token grants; reconnect your token from Settings if you have not done so since 1.0.21.

常见问题:

Is the plugin free? Do I need an account?

The plugin is free and open source (GPLv2 or later) and fully functional on its own. Country blocking, bot blocking (with a large built-in list), automatic spam-comment IP blocking, the IP whitelist and the opt-in free SPAM reputation dataset all work with no account at all. Additional IP-reputation datasets (VPN, TOR, PROXY, THREAT, Datacenter and composed rules) are available through the separate SentraIP PRO companion plugin, which connects to a SentraIP account — but this free plugin never requires it.

Will this block my own access?

No. The plugin auto-excludes your server's country and your saved admin country. The WordPress admin area, the login page (/wp-login.php) and the registration page are never blocked, and logged-in users are never blocked — so you can always sign in and fix a rule. As a last resort you can add define( 'WP_SENTRAIP_DISABLE_BLOCKING', true ); to wp-config.php to disable all blocking.

What happens if the database files are not downloaded yet?

The plugin gracefully skips any check whose database file is missing. Your site keeps working normally until the files are available.

Does the plugin make external requests on every page load?

No. All IP lookups run against local binary database files in your uploads directory. External connections are made only when downloading or refreshing a database file (on a monthly schedule, or when you trigger it manually) — the geolocation database, or the opt-in free SPAM dataset.

Where are the database files stored?

In wp-content/uploads/wp-sentraip/. The directory is protected by a .htaccess (Deny from all) and an index.php to prevent direct web access.

Does it support IPv6?

Yes. The plugin detects whether the visitor's IP is IPv4 or IPv6 and uses the matching database file, when that version is available for the dataset.

What is the spam comment IP blocking?

When a comment is marked as spam, the commenter's IP is recorded and blocked for 24 hours. This works entirely locally, with no external data or account.

How do I recover if a rule locks me out?

Open /wp-login.php and sign in — login and /wp-admin are never blocked. Then edit the rule that caught you and remove your country/datacenter/IP. If you cannot reach the admin at all, add define( 'WP_SENTRAIP_DISABLE_BLOCKING', true ); to wp-config.php.

更新日志:

1.1.6 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.9 1.0.2 1.0.0