• malkah

    (@malkah)


    I blocked everything except Il,US but managed to enter /wp-admin from Netherlands proxy.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    You can customize the basic behavior of this plugin. Put the following code into functions.php of your theme.

    function my_whitelist( $validate ) {
        $whitelist = array(
            'NL',
        );
    
        $validate['result'] = 'blocked';
    
        foreach ( $whitelist as $country ) {
            if ( $country === $validate['code'] ) {
                $validate['result'] = 'passed';
                break;
            }
        }
    
        return $validate;
    }
    add_filter( 'ip-geo-block-login', 'my_whitelist' );
    add_filter( 'ip-geo-block-admin', 'my_whitelist' );

    Try it or open your issue at forum. I’m glad to help you.

    Thanks for your commenting and rating!

    Thread Starter malkah

    (@malkah)

    ok thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘nice but not perfect’ is closed to new replies.