I
I
iDrum2011-02-12 12:56:56
Nginx
iDrum, 2011-02-12 12:56:56

How to use nginx to determine if there is a question mark in the request?

On the CNC website, bots are hacking pages like /?weqdw=14. How to determine the question mark in the request using nginx configuration tools and return a 444 error?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
VBart, 2011-02-12
@iDrum

There is a $is_args variable

E
Eugene, 2011-02-12
@Nc_Soft

specify the location using a regular expression

J
Jazzist, 2011-02-14
@Jazzist

write regex in conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question