[WordPress] 外掛分享: Country Blocker and Geoblocker FREE

WordPress 外掛 Country Blocker and Geoblocker FREE 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Country Blocker and Geoblocker FREE」是 2025-08-19 上架。
  • 目前有 80 個安裝啟用數。
  • 上一次更新是 2026-02-19,距離現在已有 7 天。
  • 外掛最低要求 WordPress 5.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

jimmyredline80 |

外掛標籤

GDPR | security | vpn blocker | geo blocking | Country blocker |

內容簡介

總結:Block Website Access by Region — Lite 是一個能在網頁載入時停止來自不需要地區的流量而不會減慢您的網站速度的外掛程式。

1. 這個外掛程式有哪些功能?
- 遠端 IP 查找(ipwho.is → ipapi.co → ipinfo.io)並具有自動故障切換功能。
- 只有國家級規則,不會記錄日誌,也不會檢查美國州的狀態,也沒有 MaxMind DB。
- 可以通過常數(BSAS_DEFAULT_BODY、bsas_block_heading)自訂標題和正文文字。
- 輕量級:只有一個選項群組,沒有資料庫表格,最小限度的暫存。

2. 如果需要更詳細的日誌、州級阻擋、可視化消息編輯器或本地的 GeoLite2 資料庫,應該選擇哪個版本?
- 此外,這個外掛程式使用第三方 IP 地理位置API,以探測訪客的國家。對於每個請求,它會將訪客的 IP 地址發送到提供者並收到一個兩個字母的國家代碼和(如果可用)一個 ASN/組織字符串。Lite模式不存儲每個訪客的日誌,只保留一個短暫的暫存以減少 API 請求。
- 使用的提供者(按故障切換順序),條款和隱私:
1) IPWHOIS(端點:https://ipwho.is/)- 條款:https://ipwhois.io/terms - 隱私:https://ipwhois.io/privacy。
2) ipapi(端點:https://ipapi.co/)- 條款:https://ipapi.co/terms/ - 隱私:https://ipapi.co/privacy/。
3) IPinfo(端點:https://ipinfo.io/)- 條款:https://ipinfo.io/terms-of-service - 隱私:https://ipinfo.io/privacy-policy。

原文外掛簡介

Country Blocker is the easiest way to block website visitors by country, region, or IP address. No API keys required, no complicated setup – just activate, select countries to block, and protect your site instantly.
Perfect for compliance, security, and content licensing:

GDPR compliance – Block EU countries to avoid cookie consent requirements
CCPA compliance – Block California traffic if you can’t meet data privacy requirements
Gambling & gaming sites – Restrict access from prohibited jurisdictions
Streaming & licensed content – Enforce geographic licensing restrictions
Financial services – Block countries you’re not licensed to operate in
Reduce spam & attacks – Block high-risk countries and VPN traffic

Why Choose Country Blocker?
✅ One-click setup – No API keys or database downloads to start blocking
✅ Actually works – Automatic failover across 4 geolocation providers ensures reliability
✅ VPN & proxy detection – Optional blocking of VPNs, proxies, data centers, and hosting providers
✅ SEO friendly – Automatically allows Google, Bing, and other search engine crawlers
✅ Won’t lock you out – WordPress admin and login pages always remain accessible
✅ Privacy focused – Minimal data storage with IP hashing for security
Key Features
Blocking & Access Control:
* Block visitors from any country with a simple checkbox (250+ countries)
* Optional VPN, proxy, and datacenter detection and blocking
* Search engine crawler bypass (Google, Bing, DuckDuckGo, etc.)
* Choose to allow or block visitors when country cannot be determined
* Emergency bypass URL parameter for troubleshooting
* WordPress admin and login pages are never blocked
Geolocation & Accuracy:
* Works instantly without API keys
* Automatic failover across 4 free geolocation APIs
* Optional MaxMind GeoLite2 database support (requires free license key)
* Cloudflare IP detection support
* Supports proxy headers (X-Forwarded-For, X-Real-IP, CF-Connecting-IP)
Logging & Monitoring:
* Track all blocked and allowed access attempts
* View visitor country codes and decision reasons
* Automatic log cleanup (configurable retention period)
* Rate limiting to prevent log spam
Privacy & Security:
* IP addresses are hashed by default for privacy
* GDPR and CCPA friendly minimal data storage
* Configurable data retention policies
* No tracking scripts or external cookies
Pro Version
Need more granular control? Country Blocker Pro includes:
Region-Level Blocking:
* 🇺🇸 Block specific US states (all 50 states + DC, Puerto Rico, Guam, US Virgin Islands)
* 🇨🇦 Block Canadian provinces and territories
* 🇬🇧 Block UK regions (England, Scotland, Wales, Northern Ireland)
* 🇦🇺 Block Australian states and territories
* 🇩🇪 Block German states (Bundesländer)
* 🇮🇳 Block Indian states and union territories
* 🇨🇳 Block Chinese provinces and municipalities
* 🌍 Block entire continents with one click
Advanced Features:
* IP whitelist – Never block specific IPs (supports CIDR notation)
* IP blacklist – Always block specific IPs regardless of location
* Custom block page with full color customization
* Custom CSS editor for complete design control
* Redirect blocked visitors to any URL
* Advanced logging with CSV export
* Smart log retention and database optimization
* Priority email support
Get Country Blocker Pro →
External Services
This plugin connects to external services for geolocation functionality and optional feedback collection. By using this plugin, you acknowledge that data will be sent to these third-party services.
1. IP Geolocation Services
To determine a visitor’s country, the plugin sends the visitor’s IP address to one or more of the following geolocation providers (in failover order):
ipwhois.is
* Service: IP geolocation lookup
* Data sent: Visitor IP address
* When: On each unique visitor’s first page load (cached for 24 hours)
* Terms of Service: https://ipwhois.io/terms
* Privacy Policy: https://ipwhois.io/privacy
ip-api.com
* Service: IP geolocation lookup (fallback provider)
* Data sent: Visitor IP address
* When: If ipwhois.is fails
* Terms of Service: https://ip-api.com/docs/legal
* Privacy Policy: https://ip-api.com/privacy
ipapi.co
* Service: IP geolocation lookup (fallback provider)
* Data sent: Visitor IP address
* When: If previous providers fail
* Terms of Service: https://ipapi.co/terms/
* Privacy Policy: https://ipapi.co/privacy/
ipinfo.io
* Service: IP geolocation lookup (fallback provider)
* Data sent: Visitor IP address
* When: If previous providers fail
* Terms of Service: https://ipinfo.io/terms-of-service
* Privacy Policy: https://ipinfo.io/privacy-policy
2. Deactivation Feedback Service
When you deactivate the plugin, you have the option to submit feedback about why you’re deactivating. This is completely optional.
Simple tools for wp Feedback API
* Service: Plugin deactivation feedback collection
* Data sent (only if you submit feedback): Plugin slug, your site URL, deactivation reason, optional text feedback, WordPress version, PHP version, plugin version
* When: Only when you voluntarily submit the deactivation survey form
* Endpoint: https://plugins-for-wp.com/wp-json/ssp-feedback/v1/submit
* Privacy: No personal data or visitor information is collected. Only technical site information and your voluntary feedback are sent.
* Purpose: To help us improve the plugin based on user feedback
3. Optional: MaxMind GeoLite2 Database
If you provide a MaxMind license key in settings, the plugin will download the GeoLite2 database to your server for local geolocation lookups, reducing external API calls.
MaxMind GeoLite2
* Service: Geolocation database download
* Data sent: Your MaxMind license key
* When: Once per week when you configure a license key
* Downloaded to: wp-content/uploads/GeoLite2-City.mmdb
* Terms: https://www.maxmind.com/en/geolite2/eula
* Privacy: https://www.maxmind.com/en/privacy-policy
Data Retention:
The plugin stores minimal data on your WordPress database: hashed IP addresses (for rate limiting), country codes, access decisions (blocked/allowed), and timestamps. You can configure automatic log cleanup in settings. The plugin does not track individual visitors or create profiles.
Privacy & Data Usage
This plugin is designed with privacy in mind:

IP addresses are hashed by default before storage
Only country codes and access decisions are logged, not full visitor profiles
Logs can be automatically cleaned up after a configurable retention period
No cookies are set on the visitor’s browser
No tracking scripts are loaded
Geolocation lookups are cached to minimize external API calls
Deactivation feedback is completely optional and only submitted if you choose to provide it

For GDPR compliance, the plugin blocks visitors from specified countries, which may reduce your data collection obligations. However, you should still review your complete privacy obligations with a legal professional.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Country Blocker and Geoblocker FREE」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 |

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon