Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2002
    Location
    Canada
    Posts
    159

    [newbie question\ How to ban IPs on cpanel / whm?

    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?

  2. #2
    Join Date
    Mar 2002
    Location
    Mass
    Posts
    727
    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.
    Jason

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •