The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Attempt to hack and threatening members

Discussion in 'General Discussion' started by Markwaugh, Oct 29, 2003.

  1. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sydney, Australia
    Hello guys,

    I have a member who was barred from my bullentin board who has return and making threats against the site and directly at members.
    I like to know the steps I need to take to handle this.

    I have deleted his account on the board that was used to send this message. I have previously banned the ip he was using to connect, however we all knew this is only a bandaid and all he had to do was use a different ISP to sign up with.

    1. what are the different ways to block through script ?.
    2. how to block the ip address serverwide from accessing through firewall ?

    any ideas would be higly appreicated
     
  2. christi1

    christi1 Well-Known Member

    Joined:
    Oct 20, 2003
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas, USA
    If you're using PHP try:

    if($email == "hisemail@hisdomain'com") {
    echo "Go away, you're not welcome here";
    exit;
    }
    if($first_name == "Fred") {
    echo "Go away, you're not welcome here";
    exit;
    }
    if($last_name == "Smith") {
    echo "Go away, you're not welcome here";
    exit;
    }

    In Perl:

    if($email eq "hisemail@hisdomain'com") {
    print "Go away, you're not welcome here";
    exit;
    }
    if($first_name eq "Fred") {
    print "Go away, you're not welcome here";
    exit;
    }
    if($last_name eq "Smith") {
    print "Go away, you're not welcome here";
    exit;
    }

    Alternately, you could password protect the entire bulletin board directory and give each 'allowed' member the correct login. This would stop him dead in his tracks.

    You can also record his IP address (or addresses, if he's changing often) and save the messages he posts so you can trace his ISP and send them the info. A lot of the time they'll discontinue his service for doing this.

    To get an IP address in Perl :
    $ip = $ENV{'REMOTE_ADDR'};

    To get an IP address in PHP:
    $ip = getenv("REMOTE_ADDR");

    Hope this helps.
     
  3. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sydney, Australia
    Thank u very much

    christi1,

    excellent. Thank u very much for your help, i 'll try it out. brillaint work....:) you made my day.

    Have a good day.
     
Loading...

Share This Page