• Resolved holdusback

    (@holdusback)


    Hey there, thanks for the plugin (and the quick fix for ZZ country!)

    I’ve downloaded this plugin cause I want my website only available in my country (France)

    Ive tested it with a proxy, checked my IP in the proxy, like german IP, USA IP, Canada IP ect… and the result is that they can access my website 🙁

    Here is my setting :

    Screenshot

    Hope you can help me …

    Thanks in advance !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi @holdusback,

    Your issue could happen when your server is placed behind a proxy or a load balancer.

    For example, Cloudflare and CloudFront are such a proxy server according to your server.

    The most easiest way to investigate what happens when you access to your site via some proxy server, is to enable “Live update” on “Logs” tab. You can see your access almost in real time.

    Note that different browsers or private window should be used to distinguish your admin login and your site access via the proxy.

    In those cases, you need to put a certain key of PHP environment variable into “$_SERVER keys to retrieve extra IP addresses” in “Validation rule settings” section.

    If you’re a user of Cloudflare or CloudFront, please refer to “CloudFlare & CloudFront API class library“.

    Otherwise, I should ask you to let me know more details about your server.

    Anyway, please try “Live update” at first!

    Thanks for asking.

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Additional comment:

    You only showed me the “Matching rule” and ” Whitelist of country code”, but I should know how you configured “Front-end target settings” to say something with confidence.

    At least and most for your demand, you need to enable “Block by country” at “Public facing pages” in “Front-end target settings” section.

    Thread Starter holdusback

    (@holdusback)

    Hey there, thanks for you’re answer and sorry for my late feedback.

    By checking “Block by country” in “Front-end target settings” it now perferctly work !

    Can I send to you the “Debug information” (is there any personnal info in it ?) to know if my settings match my need (Website only available in France)

    Thanks you !

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi @holdusback,

    Glad to hear that!

    OK, I’ll wait for your email to tokkonopapa at yahoo dot com. If you send me not only “Debug information” but also “ip-geo-block-settings.json” file which is available at “Export settings” button, I’ll check them.

    Thank you for choosing this plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Testing the plugin with proxy’ is closed to new replies.