Block countries
Open your Pull Zone
In the bunny.net dashboard, go to Delivery > CDN and select your Pull Zone.
Open Traffic Manager
Click Traffic Manager in the Pull Zone menu. You’ll see a world map with two options: Redirected countries and Blocked countries.
How blocking works
Blocked countries are blocked at the DNS level. A DNS request to the Pull Zone from a blocked country resolves to127.0.0.1, so the connection never reaches the CDN and the user sees a connection error. Because the request is blocked before HTTP, it isn’t logged on the Pull Zone and incurs no cost.
Location is determined by geolocating the end user’s EDNS client subnet using the MaxMind GeoIP2 database. If the resolver doesn’t provide an EDNS client subnet, the resolver’s own IP address is used instead.
Redirected countries is a related Traffic Manager option. Instead of blocking, it routes requests to the most affordable pricing region (North America / Europe), which you can use to control which regions serve which countries.