blog.xgen-hosting.com
Blocking countries using .htaccess with cloudflare | Xgen Hosting
Need to block users from a certain country from visiting your website using .htaccess but still want to keep using Cloudflare optimization services? Just add this piece of code to your .htaccess SetEnvIf CF-IPCountry IN BuzzOff=1 Order allow,deny Allow from all Deny from env=BuzzOff In the above code, we are blocking all users from India(IN), ...