Archive for May, 2006

How to block an abusive bot such as ShopWiki using iptables firewall

No GoodNeed ImprovementOKGoodExcellent (1 votes, average: 5 out of 5)
Loading ... Loading ...

You can use the following shell script to block an abusive bot, such as ShopWiki,

#!/bin/sh
#/sbin/route add -host $1 reject
iptables -I INPUT -s $1 -j DROP
iptables -L -n

save this script as block_ip.sh

to block bad IP, execute the shell script:

block_ip.sh 64.92.164.138

This will block the bad guy from 64.92.164.138.

Popularity: 1%

Comments (1)