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 ...