Blocking countries


#1

Hi all,
How do I block all incoming traffic from all countries except for Canada in Cloudflare?


#2

Cloudflare doesn’t do a “Block All” and then a whitelist. Even then, the lower plans don’t Block countries, but you can Challenge them…one by one. Again, not All.

It’s easier if you configure your host to watch the HTTP_CF_IPCOUNTRY header and only let CA through.