|| what is nginx
please take a look this

|| how to blocking ip address on nginx
| configure nginx.conf

# vi /etc/nginx/nginx.conf
###
# add this line
include  blockingip

| configure blockingip file

# vi /etc/nginx/blockingip
##add line to blocking ip
deny 10.100.100.80;

##add line to blocking subnet
deny 10.100.100.0/24;

| restarting nginx

# /etc/init.d/nginx configtest
# /etc/init.d/nginx restart

|| link
| google
| cyberciti