Created
October 21, 2016 03:39
-
-
Save fff/35e4e3478cb67b30089fc5b61546be05 to your computer and use it in GitHub Desktop.
Drop all YisouSpider request with iptables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# 42.156.137.50 - - [19/Oct/2016:06:25:21 +0800] "GET <URL> HTTP/1.1" 200 11959 "-" "YisouSpider" | |
# http://www.gxnnseo.com/post/55.html | |
### | |
iptables -I INPUT -s 42.120.160/24 -j DROP | |
iptables -I INPUT -s 42.120.161/24 -j DROP | |
iptables -I INPUT -s 42.156.136/24 -j DROP | |
iptables -I INPUT -s 42.156.137/24 -j DROP | |
iptables -I INPUT -s 42.156.138/24 -j DROP | |
iptables -I INPUT -s 42.156.139/24 -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ip source