7.5 C
Vancouver
Saturday, December 21, 2024

Nginx Deny IP

Must read

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/

More articles

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article