3 ms·
What's the canonical way to block users from age-gate jurisdictions to one's website? I wish Cloudflare had a wizard flow for this. I'm not going to age-gate ac
by arjie 9mo ago
What's the canonical way to block users from age-gate jurisdictions to one's website? I wish Cloudflare had a wizard flow for this. I'm not going to age-gate access to my blog (it's a wiki so it has user-generated content) so I'd rather jurisdiction-gate it.
Perhaps we should have network traffic report its geographic location so that we can comply easily. Would prefer something in an IP packet so that I can just filter at the firewall. Doesn't even need to be implemented in a sophisticated way at clients. Can just have the urgent flag repurposed to mean "respond only if not geo-locked and unconcerned with regulatory" and then I can drop these directly, and regulated source locations could ensure that packet flags are correctly set at the widest peering location out of the UK and so on.
- veeti 9mo agoThis can be done easily with Cloudflare security rules, where you can match against country and block all requests.
- arjie 9mo agoOh 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.