plugin-icon

CountryLock

제작자: topsyde·
Block/allow countries with one toggle. Lightweight, no upsells. Includes admin bypass, IP allowlist, and block stats.
등급
5/5
버전
1.0.8
활성화된 설치 항목
20
최근 업데이트일
Nov 17, 2025

CountryLock provides a simple, lightweight way to allow or block countries from accessing your WordPress site.

It’s designed to be “set it and forget it” with no upsells, ads, or complex configurations.

✨ Key Features

  • Master Toggle: Enable or disable the firewall with a single click.
  • Allowed Countries List: Specify which two-letter country codes (e.g., US, CA) are allowed. Everyone else is blocked.
  • Admin Bypass: Logged-in administrators can always bypass the block (toggleable).
  • IP Allowlist: A simple list of IPs or CIDR ranges (like 123.45.67.89 or 10.0.0.0/8) that are always allowed.
  • Block Logging: See which countries and IPs are being blocked (toggleable).
  • Zero-Lookup Detection: Automatically uses Cloudflare (HTTP_CF_IPCOUNTRY) and other common server-level GEO headers for instant decisions with zero performance impact.
  • Remote Lookup: As a fallback, it can query an external service (ipapi.co) if no headers are found.

External Services

This plugin uses one external service as a fallback to determine a visitor’s country if no local GEO headers (like those from Cloudflare or a server-level GeoIP module) are present.

  • Service: ipapi.co
  • What it’s used for: To look up the country of origin for a visitor’s IP address.
  • Data Sent: The visitor’s IP address is sent to the service. This happens only if the “Use remote lookup if no geo headers” setting is enabled AND no local GeoIP headers are detected.
  • Service Policies:
무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.8.3
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.