Hacker News new | ask | show | jobs
by veeti 118 days ago
This can be done easily with Cloudflare security rules, where you can match against country and block all requests.
1 comments

Oh thank you. I don't know why I couldn't find it but it's actually a near first class feature in WAF (select by country/continent and block). I think it's because I wanted to serve a blocked page, which is totally doable with Custom Pages or a Cloudflare Worker. Thank you!

The right way is to serve a 451 page.