Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Re: conditional expression
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
173279834462
March 05, 2017 11:31AM
Registered: 9 years ago
Posts: 37
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; }
Reply
Quote
RSS
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: 331
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018