How To Block Exploits, SQL Injections, File Injections, Spam, User Agents, Etc. to your Nginx

Exploits, SQL Injections, File Injections, Spam, User Agents, Etc. are the common problem for the web server administrators. How to block this? In this article I will show you how to block the above mentioned problem. Append the below mentioned configuration to your nginx VirtualHosts.

Whenever one of the rules matches a request, a 403 Forbidden error is returned to the client. Have a good luck!!

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply