nginx: How To Block Exploits, SQL Injections, File Injections, Spam, User Agents, Etc.
Jun 16, 2017, 13:00 (0 Talkback[s])
(Other stories by Falko Timme)
This short article explains how you can block the most common exploits, SQL injections, file injections, spam and user agents used by hackers and bandwidth hoggers from your nginx vhosts with some simple configuration directives. This configuration is far from being complete, but it's a good starting point. You will have to watch your logs for attempted break-in attempts and then try to modify/complete the ruleset.