Welcome! Log In Create A New Profile

Advanced

anyone can help me to combine these 2 lines?

May 16, 2010 04:40PM
I just want to set.......if $http_user_agent equals AAA or BBB or empty ("").....then return 400...Thanks.......



if ($http_user_agent ~ (AAA|BBB)) {return 400;}
if ($http_user_agent = "") {return 400;}
Subject Author Posted

anyone can help me to combine these 2 lines?

kamanwu May 16, 2010 04:40PM

Re: anyone can help me to combine these 2 lines?

Joshua Jonah May 16, 2010 05:42PM

Re: anyone can help me to combine these 2 lines?

kamanwu May 16, 2010 06:15PM

Re: anyone can help me to combine these 2 lines?

kamanwu May 16, 2010 06:23PM

Re: anyone can help me to combine these 2 lines?

Joshua Jonah May 16, 2010 06:28PM

Re: anyone can help me to combine these 2 lines?

Joshua Jonah May 16, 2010 06:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 260
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready