Title: Stop redirect
Last modified: August 21, 2016

---

# Stop redirect

 *  Resolved [3measures](https://wordpress.org/support/users/3measures/)
 * (@3measures)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/stop-redirect/)
 * Hello, great plugin, just wondering if there is anything I can do to stop the
   redirect on my own computer. I’m using it to redirect users in Namibia to another
   site, but I myself am in Namibia.
 * Thanks
 * [https://wordpress.org/plugins/ip2location-country-blocker/](https://wordpress.org/plugins/ip2location-country-blocker/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/stop-redirect/#post-4809727)
 * You may access your website using a vpn from other country and make the changes.
 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/stop-redirect/#post-4809749)
 * To simplify the bypass, i have added one secret code for this purpose. Please
   download the v1.5.0 version.
 *  [jsobell](https://wordpress.org/support/users/jsobell/)
 * (@jsobell)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/stop-redirect/#post-4809792)
 * 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
 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/stop-redirect/#post-4809793)
 * 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.
 *  [jsobell](https://wordpress.org/support/users/jsobell/)
 * (@jsobell)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/stop-redirect/#post-4809810)
 * 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

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Stop redirect’ is closed to new replies.

 * ![](https://ps.w.org/ip2location-country-blocker/assets/icon-128x128.png?rev=
   2121917)
 * [IP2Location Country Blocker](https://wordpress.org/plugins/ip2location-country-blocker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ip2location-country-blocker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ip2location-country-blocker/)
 * [Active Topics](https://wordpress.org/support/plugin/ip2location-country-blocker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip2location-country-blocker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip2location-country-blocker/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [jsobell](https://wordpress.org/support/users/jsobell/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/stop-redirect/#post-4809810)
 * Status: resolved