しかし、LiteSpeed Cacheの CDNでは、しっかりはじかれます。ただ、 CDNって動作しているのかどうか不明です。何せ、使用統計が全く上がっていません。だから、これは考慮から外した方が良さそうですね。



If I use Cloudflare, will it unblock countries?

Asked 3 years, 8 months ago
Active 3 years, 8 months ago
Viewed 169 times

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?

asked Mar 10 ’17 at 9:49
Bangladesh 71

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.

answered Apr 3 ’17 at 15:55
Étienne Labaume

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.

answered Mar 10 ’17 at 10:20

Please provide more than just a link. Explain what to do to answer the question fully. – Andrew Lott

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

引用元:If I use Cloudflare, will it unblock countries? (StackExchange)


では、User Agentで制御するならどうなるかということになります。