Created
July 4, 2016 10:05
-
-
Save kapb14/411660601e7278c288b00c7026eb886c to your computer and use it in GitHub Desktop.
iptables block by user-agent
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
| # block by user-agent that contain 'WordPress' | |
| iptables -A INPUT -p tcp --dport 80 -m string --string 'WordPress' --algo kmp -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment