• Resolved richmandan

    (@richmandan)


    I have setup front end blocking from specific country codes to redirect when accessing target page.

    My site uses CloudFlare and WP Rocket cache plugin. I have followed all instructions for using CloudFlare with IP Geo Block.

    When accessing the page from an IP based in blacklisted country the redirection does not get triggered.

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

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

    (@tokkonopapa)

    Hi @richmandan,

    When accessing the page from an IP based in blacklisted country the redirection does not get triggered.

    This is because of your caching plugin. IPGB supports only a few caching plugin with specific configuration, i.e. PHP level redirection.

    See FAQ and also “Living with caching plugin“.

    Thread Starter richmandan

    (@richmandan)

    Many thanks for your response. You are correct, this was an issue with caching.

    I read your FAQ article but didn’t find it helpful in resolving this problem.

    For the benefit of other users who may be reading this, this is how I solved the issue:

    I use CloudFlare and WP-Rocket. Both have an option to remove caching from a specific URL.

    As I only needed to redirect visitors from blacklisted countries from accessing my contact form, I simply removed the contact form URL from the cache. They are now being redirected correctly.

    Plugin Author tokkonopapa

    (@tokkonopapa)

    As I only needed to redirect visitors from blacklisted countries from accessing my contact form, I simply removed the contact form URL from the cache.

    OK.

    The following sample image shows that if someone accesses to “Sample Page” from outside JP, then he/she would be redirected to the “About” page.

    Front-end target settings

    I hope this may solve your issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Front End blocking not working’ is closed to new replies.