sh
This commit is contained in:
parent
59c5ed245f
commit
3b914d4b71
@ -93,9 +93,12 @@ banip_num(){
|
|||||||
# cat /dev/null > banips.sh
|
# cat /dev/null > banips.sh
|
||||||
#ln -s /etc/nginx/conf.d/banips.sh /usr/local/bin/banips
|
#ln -s /etc/nginx/conf.d/banips.sh /usr/local/bin/banips
|
||||||
#rm -rf /usr/local/bin/banips
|
#rm -rf /usr/local/bin/banips
|
||||||
|
# EDITOR=vi;export EDITOR
|
||||||
#crontab -e
|
#crontab -e
|
||||||
#15分钟执行一次封ip
|
#15分钟执行一次封ip
|
||||||
# */15 * * * * banips run >> /etc/nginx/conf.d/banips.log 2>&1
|
# */15 * * * * banips run >> /etc/nginx/conf.d/banips.log 2>&1
|
||||||
|
# /etc/init.d/cron stop
|
||||||
|
# /etc/init.d/cron start
|
||||||
# iptables -L -n --line-numbers
|
# iptables -L -n --line-numbers
|
||||||
# iptables -I INPUT -s 168.138.198.222 -j DROP
|
# iptables -I INPUT -s 168.138.198.222 -j DROP
|
||||||
# cat /var/log/nginx/access.log | grep HEAD
|
# cat /var/log/nginx/access.log | grep HEAD
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user