Block all traffic from certain countries
Check for a country code on an incoming request, and if it's present, deny access with a 403.
VCL
Use this solution in your VCL service (click RUN below to test this solution or clone it to make changes):
Compute
Use this solution in your Compute service:
- Go
- JavaScript
- Rust