
前言介紹
- 這款 WordPress 外掛「Country Blocker and Geoblocker FREE」是 2025-08-19 上架。
- 目前有 80 個安裝啟用數。
- 上一次更新是 2026-02-19,距離現在已有 7 天。
- 外掛最低要求 WordPress 5.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
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 |
延伸相關外掛(你可能也想知道)
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice) 》CookieYes GDPR Cookie Consent WordPress 外掛是一款可將 cookie 座標貼至網站上,協助您遵守 GDPR(RGPD、DSVGO)政策的工具。此外,此外掛還支援巴西的LGP...。
Complianz – GDPR/CCPA Cookie Consent 》Complianz 是一款支援 GDPR、ePrivacy、DSGVO、TTDSG、LGPD、POPIA、APA、RGPD、CCPA/CPRA和PIPEDA 的插件,提供基於Cookie掃描結果的條件Cookie通知和自定義...。
Cookie Notice & Compliance for GDPR / CCPA 》Cookie Notice 提供簡單易定制的網站橫幅,以協助你的網站遵守歐盟 GDPR cookie 法律以及 CCPA 法規下的某些cookie同意要求,並與 Cookie Compliance 無縫集...。
CookieAdmin – Cookie Consent Banner 》以下是您要求的 HTML 編碼翻譯後的結果:, , ```html, <!DOCTYPE html>, <html>, <head>, <meta charset="UTF-8">, </...。
OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy. 》, 使用 Google 的字型服務,怎麼可能與 GDPR 不符呢?事實上,當使用者的瀏覽器要求字型時,他們的 IP 會被 Google 記錄並用於分析。, — Lifehacker, , OMG...。
GDPR Cookie Compliance – Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law 》使用這個強大且易於使用、廣受支持及完全免費的 WordPress 插件,讓你的網站符合與歐盟一般資料保護規範(GDPR)、加州消費者隱私法(CCPA)、德國數字化服務...。
iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more 》p>iubenda 外掛是一個全方位、極易使用、由專業律師撰寫文字的合規解決方案,可快速掃描您的網站並自動配置,以適合您的特定設置。它支援 GDPR(DSGVO、RGPD...。
WPConsent – Cookie Consent Banner for Privacy Compliance (GDPR / CCPA) 》總結:WPConsent 是將可自訂的cookie同意橫幅添加至您的WordPress網站的最簡單方式。您可以自訂橫幅以符合您的網站品牌,並配置外觀。它還具有自動腳本阻止功...。
Cookie Information | Free GDPR Consent Solution 》這個外掛可以幫助你在符合 GDPR 條例的旅程中,提供免費的 Cookie 彈出視窗、同意記錄等功能。, 您知道嗎?如果您擁有一個商業網站,為了避免巨額罰款和消除...。
Real Cookie Banner: GDPR & ePrivacy Cookie Consent 》這是一款專為 WordPress 網站設計的 Cookie 欄位和同意管理外掛程式,操作簡單且能依法合規。, 透過 Real Cookie Banner 的同意管理功能,您可以根據 GDPR 及...。
Local Google Fonts 》將使用的 Google 字體儲存在您的伺服器上,讓您的網站更符合 GDPR 條例 💯。, 約有 5,000 萬*個網站使用 Google Fonts,而在 2022 年一家德國法院裁定使...。
Disable and Remove Google Fonts | GDPR & DSGVO friendly 》透過停用佈景主題和外掛所載入的 Google 字型,提升前端表現。本外掛會儘可能地移除 Google 字型,但有些需要進行額外步驟,請參考這裡的詳細說明:從 WordPr...。Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 》Cookiebot Consent Management Platform (CMP) 是一個易於使用且全自動的 WordPress Cookie 橫幅。它可符合 GDPR、LGPD、CCPA 及其他隱私法規,並通過讓網站...。
Termly – GDPR/CCPA Cookie Consent Banner 》Termly 的 GDPR Cookie Consent Banner 是 WordPress 中最簡便、有效、且流行之 cookie 同意外掛之一。透過 Termly 所提供之自訂 cookie 同意橫幅及 cookie ...。
EU Cookie Law for GDPR/CCPA 》EU Cookie Law 是輕量、優雅且強大的解決方案,可遵循歐洲的 Cookie 法律、GDPR和CCPA,並提供彈出式選項以在接受前鎖定腳本。, 包括各種自定義選項,可完美...。
