Title: Blocking localhost?
Last modified: May 24, 2017

---

# Blocking localhost?

 *  Resolved [stuartb3502](https://wordpress.org/support/users/stuartb3502/)
 * (@stuartb3502)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/blocking-localhost-2/)
 * This seems like a weird one. I am trying to run a shell script on my server and
   the script accesses a page (provided by a plugin – CFDB) to grab some data into
   a file.
 * When I look at the file, it instead contains my IQ Block Country message to blocked
   users.
 * – The server I am on is in a non-blocked country (checked with Tools).
    – I have
   tried adding the server to the whitelist of the front and backends – I have tried
   unchecking blocking of the front-end – If access the same URL as in the script
   from a different in country location (i.e. my PC) – it works fine. – When I deactivate
   the plugin my script works OK. – I don’t see any log entries for the blocks.
 * Any ideas?
 * Thanks
    Stuart

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

 *  Thread Starter [stuartb3502](https://wordpress.org/support/users/stuartb3502/)
 * (@stuartb3502)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/blocking-localhost-2/#post-9163831)
 * I found the answer – I think (at least a solution).
 * It was confusion over the IP address of my server at my host – the IP address
   for the server when the script runs is different to the IP address used for SSH
   access to the script.
 * Although some web sites list both as being in the UK, one is found in the maxmind
   database as being in the USA which I do not permit backend access.
 * I added a whitelist for the IP and it works now.
 * Regards
    Stuart
 *  Plugin Author [Pascal](https://wordpress.org/support/users/iqpascal/)
 * (@iqpascal)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/blocking-localhost-2/#post-9241213)
 * Super, which IP address is used on the webserver can indeed be tricky in some
   situations.

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

The topic ‘Blocking localhost?’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [Pascal](https://wordpress.org/support/users/iqpascal/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/blocking-localhost-2/#post-9241213)
 * Status: resolved