PEAK XOOPS - Re: Ban IP when accessing a web page in englishin japanese

Re: Ban IP when accessing a web page

List posts in the topic

question Re: Ban IP when accessing a web page

msg# 1.1
depth:
1
Previous post - Next post | Parent - Children.1 | Posted on 2006/8/2 5:38
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi Daniel.

example of sign.php as dummy for spammers, though I don't know it works well or not

include '../../mainfile.php' ;

require_once( XOOPS_ROOT_PATH . '/modules/protector/class/protector.php' ) ;
$db =& Database::getInstance() ;
$protector =& Protector::getInstance( $db->conn ) ;
$conf = $protector->getConf() ;
$protector->register_bad_ips() ;

Don't forget registering your rescue password before testing it.
Votes:11 Average:1.82

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!