[WordPress] 外掛分享: Advanced Country Blocker

首頁外掛目錄 › Advanced Country Blocker
WordPress 外掛 Advanced Country Blocker 的封面圖片
2,000+
安裝啟用
★★★★★
5/5 分(6 則評價)
40 天前
最後更新
0%
問題解決
WordPress 5.0+ PHP 7.2+ v2.3.2 上架:2025-01-17

內容簡介

總結:Advanced Country Blocker 外掛能夠透過依據訪客的地理位置(國家)或IP位址來限制存取,進而幫助您加強 WordPress 網站的安全性。提供多項功能,包括自動允許管理員所在的國家、臨時存取權限、手動列入黑名單、郵件警示、管理員例外設定、詳細的封鎖紀錄等。

問題與答案:
1. Advanced Country Blocker 外掛的主要功能是什麼?
- 透過依據訪客的地理位置(國家)或IP位址來限制存取,提升 WordPress 網站的安全性。

2. 啟用 Advanced Country Blocker 外掛後,如何標記唯一允許的國家?
- 當外掛啟動時,會偵測啟動管理員的國家並自動將其設定為唯一允許的國家。

3. 外掛如何處理來自不同國家的訪客?
- 除了已設定的唯一允許國家外,其他不同國家的訪客將被封鎖,除非他們使用秘密金鑰參數暫時將其IP列入白名單。

4. 如何自訂外掛的設定?
- 您可以在 WordPress 管理員中使用外掛設定頁面 (Country Blocker menu) 來設定允許的國家列表、黑名單國家、黑名單IP,以及啟用郵件警示。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.3.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Advanced Country Blocker」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Advanced Country Blocker helps you secure your WordPress site by restricting access based on the visitor’s geolocation (country) or IP address. Upon activation, the plugin detects the activating admin’s country and automatically sets that as the only allowed country. All other visitors from different countries are blocked, unless they use a secret key parameter to temporarily whitelist their IP. Country detection uses the privacy-friendly ip-api.com service by default but can be switched to a fully offline MaxMind GeoLite2 (or compatible) database file once you configure a local copy.
Key Features:

Automatically allows the admin’s country on plugin activation.
Flexible IP-to-country lookups – start with the built-in ip-api.com integration and optionally switch to an offline MaxMind GeoLite2 Country (or compatible) .mmdb database file.
Allowlist or blacklist mode – choose whether the country list acts as an allowlist or blocklist without re-entering countries.
Temporary access via a customizable secret URL parameter (e.g., ?MySecretKey=1).
CAPTCHA Challenge – allow blocked visitors to solve a CAPTCHA to gain temporary access (supports Google reCAPTCHA v2/v3, hCaptcha, Cloudflare Turnstile).
Real-Time Activity Monitor – live dashboard showing active visitors, recent blocks, and traffic statistics.
Analytics Dashboard – comprehensive charts and statistics about blocked attempts.
Manual blacklisting and safelisting of IPs for added security and to accommodate uptime monitors.
Optional email alerts when new visitors are blocked.
Admin bypass so logged-in admins can always access the site (toggleable in the code).
Detailed logging of blocked attempts in a custom database table, displayed in the WP admin.
Custom response controls – personalise the block page title/message, choose the HTTP status (403, 410, 451) or redirect to any URL.
Automatic log cleanup with configurable retention plus a one-click “Clear Logs” button.

Use the plugin settings page (Country Blocker menu in WP admin) to configure the list of allowed countries, blacklisted countries, blacklisted IPs, and whether email alerts are enabled.
License
This plugin is open-sourced software licensed under the GPLv3 or later.
External Services
By default this plugin contacts the ip-api.com geolocation service to detect visitor countries. You can disable all external lookups by switching the IP lookup method to the local MaxMind database in the settings.

延伸相關外掛

文章
Filter
Mastodon