Blocking Requests Geographically
geo_country_code: ESsub vcl_recv{
if (req.http.geo_country_code ~ "RU") {
call deny_request;
}
}
sub vcl_recv{
if (req.http.geo_country_code ~ "ES|AD|PT") {
set req.http.X-retSynth = "751,https://www.transparentcdn.com/es";
} else {
set req.http.X-retSynth = "751,https://www.transparentcdn.com/en"
}
}Last updated
Was this helpful?
