|| what is nginx
please take a look this
|| how to blocking ip address on nginx
| configure nginx.conf
|
1 2 3 4 |
# vi /etc/nginx/nginx.conf
###
# add this line
include blockingip |
| configure blockingip file
|
1 2 3 4 5 6 |
# 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
|
1 2 |
# /etc/init.d/nginx configtest
# /etc/init.d/nginx restart |