Advanced Country Blocker Wordpress Plugin - Rating, Reviews, Demo & Download

Advanced Country Blocker Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Advanced Country Blocker helps you secure your WordPress site by restricting access based on the visitor’s geolocation (country) or IP address. Upon activation, the plugin detects the activating admin’s country and automatically sets that as the only allowed country. All other visitors from different countries are blocked, unless they use a secret key parameter to temporarily whitelist their IP.

Key Features:

  • Automatically allows the admin’s country on plugin activation.
  • Temporary access via a customizable secret URL parameter (e.g., ?MySecretKey=1).
  • Manual blacklisting of specific countries or IP addresses for added security.
  • Optional email alerts when new visitors are blocked.
  • Admin bypass so logged-in admins can always access the site (toggleable in the code).
  • Detailed logging of blocked attempts in a custom database table, displayed in the WP admin.
  • Custom “Blocked” page functionality—show a custom message or redirect to a specific page instead of the default 403.

Use the plugin settings page (Country Blocker menu in WP admin) to configure the list of allowed countries, blacklisted countries, blacklisted IPs, and whether email alerts are enabled.

License

This plugin is open-sourced software licensed under the GPLv3 or later.

External Services

This plugin uses the free IP geolocation service provided by IP-API to determine the visitor’s country.
Data sent to IP-API includes:
– Visitor’s IP address (to determine the country of origin).

Learn more about their:
Terms of Service
Privacy Policy

Screenshots

  1. <strong>Settings Page</strong> – Configure allowed/blacklisted countries, IPs, and email alerts.

    Settings Page – Configure allowed/blacklisted countries, IPs, and email alerts.

  2. <strong>Blocked Attempts Log</strong> – View a list of recently blocked visitors.

    Blocked Attempts Log – View a list of recently blocked visitors.


Reviews & Comments