You may access your website using a vpn from other country and make the changes.
To simplify the bypass, i have added one secret code for this purpose. Please download the v1.5.0 version.
Redirects fail on my installations because the check is performed after some header information has been sent.
I fixed it by changing index.php:
add_action('wp_head', array('IP2LocationCountryBlocker', 'check'), 1);
to
add_action('send_headers', array('IP2LocationCountryBlocker', 'check'), 1);
Cheers,
Jason
Hi Jason,
Thank you for sharing with us the solution to your problem. It’s great to know that send_headers event solved your issues. We will look into this.
Thanks.
Perhaps you should look at implementing this in the current version so we don’t have to reapply the fix every time we upgrade?
This isn’t a fix specific to us, as it’s going to be incorrect on every site with a theme or plugin that adds to headers.
Cheers,
Jason