Welcome! Log In Create A New Profile

Advanced

403 for multiple user agents

Payam Chychi
April 05, 2009 05:22PM
Hi,

I recall there was a way to search for multiple strings within the
user agent to allow a 403 redirect... but i cant find any info on
this.

example. im 403`ing any user agents that match the Macintosh string.
now id like to be able to do this for say "Macintosh, Windows,
Firefox..." so on

if ($http_user_agent ~ Macintosh) {
return 403;
}

thanks

--
Payam Tarverdyan Chychi
Network Security Specialist / Network Engineer
Subject Author Posted

403 for multiple user agents

Payam Chychi April 05, 2009 05:22PM

Re: 403 for multiple user agents

Payam Chychi April 05, 2009 05:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready