1

I have a website and I blocked 3 countries visitors using htaccess. I need to use Cloudflare at this moment. But I don't want those 3 countries to visit my website anymore. If I use Cloudflare, will it unblock those 3 countries?

1

I think it unblocks previously set countries, I am not sure. If it does, you can again block those countries using Cloudflare. Check this out.

2
  • Please provide more than just a link. Explain what to do to answer the question fully. Mar 10 '17 at 11:45
  • Go on use cloudflare. If you keep geeting visitors from the unwanted country then block those countries (using the country code) after enabling the IP geolocation service as described in the link
    – Tapas
    Mar 11 '17 at 11:28
1

Assuming that your .htaccess configuration probably uses the source IP address to detect from which country the connection comes, with Cloudflare in front of your website, that IP will belong to one of our datacentre, and therefore be marked as coming from the US. So, yes, this will affect the current behaviour.

However, you can block countries using the CF-Connecting-IP or the CF-IPCountry header.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.