Mô tả
Trying to comply with every law in every country or state can be overwhelming. For many websites, blocking traffic from specific regions is a faster and more reliable alternative to implementing dozens of complex legal requirements individually.
Examples of compliance areas where blocking can help include:
- Age verification rules for adult, gaming, or alcohol-related content
- Data privacy regulations such as GDPR (EU), LGPD (Brazil), or CCPA (California)
- Content restrictions for gambling, streaming, or licensed media
- Financial regulations affecting payments, crypto, or banking services
- Tax obligations that differ across borders
- Advertising and marketing restrictions unique to certain jurisdictions
Instead of building compliance systems for every region, simply block the ones you don’t serve.
Plug and Play Geoblocker Lite makes this simple, fast, and private. Activate, select countries to block, and it immediately restricts access with a clean 403 page — no complicated setup.
If you need more power, the Pro version adds state-level blocking (U.S. states), visual message customization, advanced logs and analytics, and support for a local MaxMind GeoLite2 database for full independence from remote APIs.
External services
This plugin uses third-party IP geolocation APIs to detect a visitor’s country. The visitor’s IP is sent to one or more providers to retrieve the country code and ASN. Lite mode stores no permanent logs — only basic entries in the admin “Logs” tab and short-term transient caching to reduce API requests.
Providers used (in failover order), with terms and privacy:
1) IPWHOIS — https://ipwhois.io/terms / https://ipwhois.io/privacy
2) ip-api — https://ip-api.com/docs/legal / https://ip-api.com/privacy
3) ipapi — https://ipapi.co/terms/ / https://ipapi.co/privacy/
4) IPinfo — https://ipinfo.io/terms-of-service / https://ipinfo.io/privacy-policy
Cài đặt
- Upload the plugin folder to
/wp-content/plugins/or install via Plugins Add New Upload. - Activate Plug and Play Geoblocker Lite.
- Go to Settings Plug and Play Geoblocker Lite and select the countries you wish to block.
- Visitors from blocked countries immediately receive a 403 page.
Hỏi đáp
-
Does it store visitor data?
-
Lite mode keeps minimal transient and log data for technical functionality, but does not permanently retain visitor IPs unless Pro features are enabled.
-
Will it work behind Cloudflare or other proxies?
-
Yes. It automatically prioritizes
HTTP_CF_CONNECTING_IPand other proxy headers before falling back toREMOTE_ADDR. -
How accurate is it?
-
Country-level accuracy is generally high. The Pro version adds the option to use a local MaxMind GeoLite2 database to improve reliability and reduce dependency on external APIs.
-
Can I customize the block message?
-
The Lite version uses a standard “Access Restricted” message. The Pro edition provides a visual message editor for full control over headings and body text.
Đánh giá
Người đóng góp & Lập trình viên
“Block Website Access by Region — Lite” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Block Website Access by Region — Lite” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
