Hi @kamoe,
I do not recommend to edit database directly. Instead of it, I’ll introduce some temporary method. I assume that you can edit PHP a file and upload it onto your server using FTP or some file manager like cPanel.
Please refer to the followings:
For example, you can add the following snippet into your functions.php or drop-in.php:
function my_whitelist( $validate, $settings ) {
// the whitelist of candidate IP addresses
$whitelist = array(
'123.456.789.123',
);
foreach ( $blacklist as $ip ) {
if ( strpos( $ip, $validate['ip'] ) === 0 ) {
$validate['result'] = 'passed';
break;
}
}
return $validate;
}
add_filter( 'ip-geo-block-login', 'my_whitelist', 1, 2 );
add_filter( 'ip-geo-block-admin', 'my_whitelist', 1, 2 );
You can copy drop-in-sample.php in the directory of Geolocation API library to drop-in.php.
More permanently, I recommend to put IP address with CIDR notation or AS Number of your ISP into the whitelist to specify your dynamically changeable IPs.
Thread Starter
kamoe
(@kamoe)
Hi sure I can do this.. great.. I just need some sort of “insurance” in case I can’t get in.
Really helpfull answer.. how can I support this plugin? Is there a paid version?
Hi @kamoe,
Thank you for your offering, but please never mind. I’d love to support my users!