March 05, 2017 11:31AM
Works for me (so far):

map $query_string $bad_query {
"~[^&;]+([&;][^&;]*){1,}" 1; # deny two or more parameters
"~emailaddress=[^@]+%40[^@]+" 0; # allow Thunderbird autoconf
"~.+=.+" 1; # deny any other query
default 0; # allow (no parameters)
}


if ($bad_query = 1) { return 444; break; }
Subject Author Posted

conditional expression

173279834462 March 04, 2017 04:52PM

Re: conditional expression

webopsx March 04, 2017 10:08PM

Re: conditional expression

webopsx March 04, 2017 10:22PM

Re: conditional expression

173279834462 March 05, 2017 11:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
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