You are here

countryblock_error.html.twig in Fastly 8.3

if (obj.status == 921 && obj.response == "[modly:countryblock]") {
  set obj.status = 403;
  set obj.response = "Forbidden";
  if (req.http.Fastly-Debug) {
    set obj.http.Fastly-Country-Block = client.geo.country_code;
  }
  synthetic "";
  return (deliver);
}

File

fastly_edge_modules/templates/countryblock_error.html.twig
View source
  1. if (obj.status == 921 && obj.response == "[modly:countryblock]") {
  2. set obj.status = 403;
  3. set obj.response = "Forbidden";
  4. if (req.http.Fastly-Debug) {
  5. set obj.http.Fastly-Country-Block = client.geo.country_code;
  6. }
  7. synthetic "";
  8. return (deliver);
  9. }