Answer the question
In order to leave comments, you need to log in
How to set a rule for nginx to exclude all requests except for a few allowed paths?
Recently, bots have become more active, knocking on well-known vulnerabilities. I would like to close all requests (which may be misinterpreted by the engine), except for those that start with certain folders. For example, allowed:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question