• Resolved drea72

    (@drea72)


    Hey there, I have been running IQ Block Country for a while now but a few weeks ago it seems to have stopped working. It thinks that all incoming traffic comes from the server that it is being hosted on (The server’s IP address is given). However when checking traffic using other applications it shows their correct IP address and country of origin. I thought it may had been the PHP verison, so I updated it to 7.1, but still seem to not be working. The database is up to date. How can I fix this?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 16 through 28 (of 28 total)
  • Where is the beta version location?

    @iqpascal Thank you for letting me know the problem is limited to HG accounts, but since I am hosting with HG it seems I can’t use this plugin for the moment. However, the IP2Location Country Blocker plugin works perfectly with my HG account. So I am using that plugin for now on all my sites and with no issues. Thanks again.

    I also lost all functionality of IQ Block Country about 3-4 weeks ago. I’d been running this plugin for almost 2 years. I’m on Bluehost (not Hostgator). Twice during last month a single country block occurred out of many that normally would have been blocke. I had updated the country database per instructions.

    Plugin Author Pascal

    (@iqpascal)

    v1.2.3 has been released today. I’ve tweaked the detection of IP’s a bit (aka it compares the detected ip address to your server ip address) if this does not work you can override it.

    You can check the tools tab, at the bottom of the page there are a couple of header names with either values or not. If your IP address is not properly detected check this tab for which header detects your IP address and set the override setting on the home tab to this header.

    Thank you for your hard work on updating your plugin. I now see the the options on the settings to override… with the information that you know – by chance do you have a suggestion of which of the options in the drop-down (I see there are 9) to start with if I am using Hostgator?

    Update: I see under the “Tools” tab the header information for which one fetches the IP. For me, this is “REMOTE_ADDR:” so perhaps anyone using Hostgator check that tab that Pascal created… very very helpful. I have selected that option to override and I also updated the database and it seems to be working again!
    Thank you for all your hard work and great attention and replies to help!

    Plugin Author Pascal

    (@iqpascal)

    Hi,

    Yes sorry for the late reply, Time difference and lots of work ?? On the tools tab there is indeed a section with the IP header information and if the detection does not work for you you should choose the header that has your own IP address.

    Which values were set in your case?

    Hi,
    REMOTE_ADDR is the selection that seems to be working for me – I have 4 different sites with a different combo of plugins and themes, however all are on HostGator and are reporting the correct IP and are now blocking!!! Thank you!!! ??

    Yes, great, I have just updated to iQ Block Country 1.2.4 and updated to the latest version of the GeoLite2-Country.mmdb on all my sites, then set the override to REMOTE_ADDR and blocking is working again on all of my sites. I am also hosting on HostGator. Well done @pascal, thank you so much. And @eshera thank you for pointing our which selection is needed on the override for HostGator. That saved me a lot of time too.

    One quick note, make sure you are running PHP 5.6 on all your sites as well. If you go into cPanel > PHP Selector and update the PHP version on your public_html folder to 5.6 then it doesn’t always update the PHP version for all your subfolders/websites. So just go through and check each one of your subfolders/websites to see that they are all on 5.6 as well just to be sure.

    Plugin Author Pascal

    (@iqpascal)

    Even better would be to use PHP 7.2 or higher. 5.6 and 7.0 are not supported by PHP anymore, 7.1 only with security fixes until the end of the year

    Thank you.Unfortunately HostGator only offers PHP 5.6 or PHP Edge 7.1 on the shared server I am hosted on.

    Also, there was an issue in the past with this plugin not blocking when using Chrome browser on iOS and that problem finally seems to be fixed as well. Perhaps that was also an Apache issue on Host Gator that was causing it and perhaps the latest update knocked out that bug too. Well done!

    • This reply was modified 5 years, 10 months ago by Jixxer.

    Thanks Pascal,

    I also updated to v 1.2.4 per your reply. The code check already had REMOTE_ADDR set to my ip. All is working well again. I will also be updating PHP asap.

    Thanks again

    If your Webhost doesn’t provide all the most recent PHP versions (HostGator doesn’t) then hopefully your Webhost at least offer at least PHP 5.6.

    WordPress says it needs a minimum of PHP 5.6 to function correctly now. Although PHP 5.6 isn’t supported by PHP anymore as @pascal noted, it is still enough to run WordPress properly.

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘IQ Blocker Stopped Working’ is closed to new replies.