Skip to content

Instantly share code, notes, and snippets.

@fizx
Created August 25, 2009 05:00
Show Gist options
  • Select an option

  • Save fizx/174479 to your computer and use it in GitHub Desktop.

Select an option

Save fizx/174479 to your computer and use it in GitHub Desktop.
#!/bin/bash
for ARG in "$@"
do
echo banning $ARG
iptables -A INPUT -s $ARG -j DROP
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment