Create the following conf file:
vim /etc/nginx/conf.d/blockips.conf
Enter the following e.g. :
deny 1.2.3.4;
deny 95.32.45.0/24;
Restart nginx
Create the following conf file:
vim /etc/nginx/conf.d/blockips.conf
Enter the following e.g. :
deny 1.2.3.4;
deny 95.32.45.0/24;
Restart nginx
Leave a Comment