Web Hosting Talk







View Full Version : [newbie question\ How to ban IPs on cpanel / whm?


raine
07-29-2002, 06:15 PM
OK,

I'm a total unix/hosting idiot, and don't have a clue as to how to ban an IP with cpanel, whm, or unix itself...

could someone give me the step-by-step idiot's guide to doing this?

jayjay
07-29-2002, 06:34 PM
This is a simple script with no error checking.


#!/bin/sh
# quick bash script to blackhole a route

/sbin/route add -host $1 reject
echo "$1 blocked"


Put it in /sbin/, chmod it 755, and type blockip IPHERE as root.