Block Website Access by Region — Lite

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

  1. Upload the plugin folder to /wp-content/plugins/ or install via Plugins Add New Upload.
  2. Activate Plug and Play Geoblocker Lite.
  3. Go to Settings Plug and Play Geoblocker Lite and select the countries you wish to block.
  4. 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_IP and other proxy headers before falling back to REMOTE_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á

2 Tháng 10, 2025 1 trả lời
Have wanted simple way to block bad actor countries without shelling out three figure annual fees for ages, and this looked like an answer for which I was very grateful, but the false positives are ridiculous. At least every other day am told there is no access for the United States when I try to log in to wordpress, or I get blocked out even after I am logged in–and of course I never blocked the U.S. I now face far more hassles with false positives blocking my admin login from my own home country than I ever will be with russiabots and such. There appears no way to troubleshoot this and a mere log is on the “pro” version. Sure, people should get paid for their work, but a log for a brand new plugin that does not work? Not paying for that bro. There are alternative options, of course and this thing is nowhere near ready for prime time.
Đọc tất cả 2 đá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óp