• Resolved bocastephen

    (@bocastephen)


    I want to set the plugin to block ALL traffic EXCEPT from the USA – so anyone located outside of the USA cannot load my website at all.

    I have the only plugin setting as ‘Whitelist of Country Code or Pattern’ – US

    All other settings are default. When I look at the logs, it shows IPs in the US are being blocked or failing, and are listed as ‘Blocked in Whitelist’ or ‘Blocked Not on List’

    What is this happening?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Darko G.

    (@darkog)

    Hey @bocastephen ,

    What web hosting you are with? Some web hosting providers implement page cache that triggers very early in the WordPress life-cycle, even earlier than the plugins are loaded – that is problematic for plugins like IP Location Block that need to verify every request. For this purse IP Location Block provides “Validation timing” setting which makes the IP Location Block plugin run as a mu-plugin (must-use plugin) which loads way earlier.

    You can try setting up the Validation Timing setting to mu-plugin and see how it behaves.

    https://iplocationblock.com/codex/compatibility-with-cache-plugins/

    Best Regards,
    Darko

    Thread Starter bocastephen

    (@bocastephen)

    I use IONOS for hosting, and I don’t think any caching is included at the host plan level.

    Is there a way to upload images into this support chat?

    Plugin Author Darko G.

    (@darkog)

    Hey @bocastephen – Thanks for the information. Have you tried the “Validation timing” setting? Thank you.

    Plugin Author Darko G.

    (@darkog)

    I can’t exactly reproduce this issue, looks like this is provider specific issue related to caching.

    Most of those issues can be solved by setting Validation timing to mu-plugins.

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

The topic ‘Plugin Blocks Access From My Whitelist’ is closed to new replies.