Results 1 to 3 of 3

Thread: Ip User Banning

  1. #1
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default Ip User Banning

    My website has been recently hacked thru the admin cp in which the user created an admin name and password for themselves. I have deleted this user and would now like to ban this user's ip from my website to prevent future hacks.

    My suggestion would be to install a "user ip banning option" similar to vbulletin.

  2. #2
    Join Date
    Jul 2002
    Posts
    189

    Default

    Could you tell us a bit more about that intrusion! Why did it happen?

    I did a kind of ip checking!
    Code:
    <?PHP
    
    $ip=$HTTP_SERVER_VARS["REMOTE_ADDR"];
    $useragent=$HTTP_SERVER_VARS["HTTP_USER_AGENT"];
    
    //echo $ip."<br>".$useragent."<br>";
    
    
    //ip_check
    $block_ip = array(	"'123.456.789.01'", 
    		"'123.456.789.01'", 
    		"'123.456.789.01'", 
    		"'123.456.789.01'",
    		"'123.456.789.01'",
    		);
    
    foreach ($block_ip as $value) { 
    	if (preg_match($value, $ip)) exit;
     	}
    
    ?>
    Get the ip-values with the one you want to check and include that file from your appliation.php too! I additionally did a "htaccess" protection for the admin and adm_template.
    --------- applying hacks require a knack ---------

  3. #3
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default

    The hacking was a bit of my own fault because I accidently uploaded the tools folder. I have talked to dody about not including this in the download or int he upload folder because I know of many people who have uploaded this file by accident. I left this file up and someone found it and created an admin.

    All is well now...

Similar Threads

  1. Requiring User in Add.php
    By esm in forum v3.2
    Replies: 9
    Last Post: 07-18-2004, 02:09 PM
  2. Unable to log user out
    By sissy in forum v5.x
    Replies: 3
    Last Post: 01-28-2004, 07:50 PM
  3. looking up user during add process
    By esm in forum v5.x
    Replies: 3
    Last Post: 06-18-2003, 10:27 PM
  4. User login problem
    By webmasterjr in forum v5.x
    Replies: 3
    Last Post: 12-16-2002, 06:03 AM
  5. User CP questions ???
    By ideavirus in forum v5.x
    Replies: 3
    Last Post: 07-14-2002, 07:05 AM

Posting Permissions

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