block_old_agents.vcl 274 B

1234567891011
  1. # this is from Fastly support
  2. if (req.http.user-agent ~ "(?i)(firefox|chrome)[\/]([\d]+)"){
  3. log "browser name:" re.group.1;
  4. log "browser version:" re.group.2;
  5. set req.http.version= re.group.2;
  6. if (req.http.version ~ "^([0-9]|[1-8][0-9]|90)$"){
  7. error 403;
  8. }
  9. }