Skip to content

Instantly share code, notes, and snippets.

@fff
Created October 21, 2016 03:39
Show Gist options
  • Save fff/35e4e3478cb67b30089fc5b61546be05 to your computer and use it in GitHub Desktop.
Save fff/35e4e3478cb67b30089fc5b61546be05 to your computer and use it in GitHub Desktop.
Drop all YisouSpider request with iptables
###
# 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
@fff
Copy link
Author

fff commented Oct 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment