4 define(
'PROTECTOR_HTTPBL_KEY' ,
'............' ) ;
17 $rev_ip = implode(
'.' , array_reverse( explode(
'.' , @
$_SERVER[
'REMOTE_ADDR'] ) ) ) ;
21 foreach( $rbls as $rbl_name => $rbl_fmt ) {
22 $host = sprintf( $rbl_fmt , $rev_ip ) ;
23 if( gethostbyname( $host ) != $host ) {
24 $this->protector->message .=
"DENY by $rbl_name\n" ;
25 $uid = is_object( $xoopsUser ) ? $xoopsUser->getVar(
'uid') : 0 ;
26 $this->protector->output_log(
'RBL SPAM' ,
$uid ,
false , 128 ) ;