Skip to content

Instantly share code, notes, and snippets.

@kapb14
Created July 4, 2016 10:05
Show Gist options
  • Select an option

  • Save kapb14/411660601e7278c288b00c7026eb886c to your computer and use it in GitHub Desktop.

Select an option

Save kapb14/411660601e7278c288b00c7026eb886c to your computer and use it in GitHub Desktop.
iptables block by user-agent
# 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