When you are locked out by misfortune, this feature inhibits the blocking behavior of this plugin.
This code block can be activated by replacing
/* (opening multi-line comment) at the top of the line to
// (single line comment), or
* at the end of the line to
*/ (closing multi-line comment).
After saving and uploading it into
ip-location-block in your plugins folder (typically
/wp-content/plugins/) via FTP or cPanel File Manager, you become to be able to login again as an admin.
Then you can re-configure “Maching rule” and “Country code for matching rule” at “Validation rule settings” properly. After that, do not forget to restore the
ip-location-block.php on your server to the original one.
If you have no confidence in editing PHP file, please download ZIP from here and use it that “Emergent Functionality” is already activated.
Deactivate by force
Although the above processes is strongly recommended at your emergency, some users are not familiar with this type of jobs.
In that case, you can rename
ip-location-block folder to
ip-location-block.bak using FTP or something. Then you cal login and see the following message on your plugin’s dashboard.
ip-location-block.bak to the original, you can activate this plugin again.
Another solution at emergency
You can also just forcibly remove
ip-location-block in your plugin’s folder. Then you’ll see the same message as the above picture on your plugin’s dashboard.
After that, you can reinstall through “Add New” button and reactivate again. But you’ll find soon you’re blocked again because your settings still remains in your database.
But don’t worry about that. A background process kicked by the activation will rescue you. After pausing for breath, you can visit your admin dashboard again!
ip-geo-api directory. If you do that, this solution becomes never to work.
For power users
If you’re familiar with the use of phpMyAdmin and know where the plugin’s options are saved, you can change the value of
-1 which means
Disable. Please do it at your own risk.