#/bin/sh
if [ "$1" == "" ]; then
    echo "Lütfen banlanacak ip adresiniz yazın";
    echo "Örnek: ./$0 1.1.1.1";
    exit;
fi;
iptables=$(which iptables); #iptablesi bulalım
if [ "$iptables" == "" ]; then
    echo "iptables sunucuda kurulu değil";
    exit;
fi;
w=$(which wget);
if [ "$w" == "" ]; then
    echo "wget bulunamadı";
    exit;
fi;
#İp Banla
$iptables -A INPUT -s $1 -j DROP
#Wget ile bildir
$w http://www.site.com/bildir.php?ip=$1 -o /dev/null
http://www.site.com/bildir.php?ip=
Kısmını modifiye etmen gerekir.