Login IP & Country Restriction

This plugin allows you to restrict the login on your website, based on the custom firewall rules you apply that include IPs, and the country code of the visitor. This helps tighten your website security and fights against dictionary bot attacks originating from other countries, by denying access.

Login IP & Country Restriction
Login IP & Country Restriction

Custom Firewall Rules

The login filter can be configured to work in a different way, depending on what type of rules to be assessed and in which order.
The current types of rules are:

  • Allow login only for allowed countries or allowed IPs
  • Block login only for blocked countries or blocked IPs
  • PRO Allow login only for allowed countries or allowed IPs, but not from blocked IPs
  • PRO Allow login only for allowed countries or allowed IPs, but not from blocked IPs or blocked countries
  • PRO Block login only for blocked countries or blocked IPs, but not for allowed IPs
  • PRO Block login only for blocked countries or blocked IPs, but not for allowed IPs or allowed countries
Login IP & Country Restriction 6.7.0 - rule type and filter XML-RPC authenticated methods
Login IP & Country Restriction 6.7.0 – rule type and filter XML-RPC authenticated methods

XML-RPC Rules

This new option controls whether XML-RPC methods requiring authentication (such as for publishing purposes) are enabled or not. This option does not interfere with pingbacks or other custom endpoints that don’t require authentication. There are 3 options:

  • Default – this will not change the current filter in your site
  • Disable all – this will disable these for everyone
  • Disable only when matching a restriction rule

Blocked IPs & Countries

Starting with this version, the plugin has new options for blocking specific IPs (or IP ranges) and countries.

Login IP & Country Restriction 6.7.0 - setup IP restriction
Login IP & Country Restriction 6.7.0 – setup IP restriction

New UI for Selecting Countries

The UI for selecting and blocking countries has been updated to allow to do this in a much easier way.

Login IP & Country Restriction 6.7.0 - allowed and blocked countries
Login IP & Country Restriction 6.7.0 – allowed and blocked countries

Current IP in the List of Allowed IPs

The current IP is added automatically to the list of allowed IPs if you are using IP restrictions. This decreases the chances you will block your own access.

JavaScript Updates

The code has been prepared for compatibility with future versions of WordPress core and it does not require the jQuery library anymore, it was changed to vanilla JavaScript.

Integration

Out of the box the plugin uses the PHP GeoIP extension when it is available on the server, otherwise the free ipapi.co lookup. Optionally, you can add API keys for the geolocated.io, ip2location.io or geoplugin.net services in the integration settings.

Login IP & Country Restriction
Login IP & Country Restriction integration options

Login IP & Country Restriction – PRO

The PRO version of the plugins allows for tightening, even more, your WordPress website security, as it introduces some new rules you can use to filter the users’ access on your website and online shops.
See all the details.

€ 10.00
Iulia Cazan
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.