• Resolved miguelangeltorresfp

    (@miguelangeltorresfp)


    Hi,

    1 ) I suppose that both matching rules ( whitelist, blacklist ) don’t work at the same time, do they ? Only the one you choose, doesn’t it ?

    2 ) If I use Cloudflare, do I have to fill out this field :
    $_SERVER keys to retrieve extra IP addresses
    with : HTTP_CF_IPCOUNTRY,HTTP_CF_CONNECTING_IP,HTTP_X_FORWARDED_FOR ?

    Thank so much for your time, your patience and for this useful plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi @miguelangeltorresfp,

    1) For example, when you set a country code US as whitelist, all other countries are considered as blacklist. It means that whitelist and blacklist are two sides of the same coin.

    2) Yes, you can put HTTP_CF_CONNECTING_IP into the “$_SERVER keys to retrieve extra IP addresses”. In this case, both IP addresses ($_SERVER['REMOTE_ADDR'] and $_SERVER['HTTP_CF_CONNECTING_IP']) will be validated. So instead of doing this, I’d highly recommend to use CloudFlare API class library. It takes care of replacing IP address and getting a client country code.

    In order to utilize it, please follow the steps.

    1. Make a directory wp-content/ip-geo-api/zcloudflare/ on your server.
    2. Upload a file class-zcloudflare.php into it.

    It’s my pleasure to provide you any support at any time for your better understandings.

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Setting, newbie doubts’ is closed to new replies.