Nginx Deny IP

This is a quick way to deny an ip address accessing your nginx server. Create a new file in /etc/nginx/conf.d called blockips.conf Add the following to the file: deny <bad ip>; Then restart nginx.  The log file will now show 403’s for the IP address. For more info see: http://www.cyberciti.biz/faq/linux-unix-nginx-access-control-howto/