Block or ban ip with NGINX
Posted by blackonsole on December 22nd, 2016 11:47 AM | No Comment
How to block ip with NGINX
0. define block ip on nginx.conf
vim /etc/nginx/nginx.conf
http {
geo $ban_ip {
default 0;
include ban_ip.conf;
}
}
that will blocked ip by clientip on access.log, if want to block ...