"; if ($resolved != $rblhost) { return TRUE; } } } return FALSE; } /** * BOOL $proxy = detect( $addr ) * Start detection and return TRUE if a proxy server is detected... */ function detect($addr){ GLOBAL $G_proxy_white_list; foreach($G_proxy_white_list as $authproxy) { if ($addr == $authproxy) return (FALSE); } if ($this->exists_in_rbl($addr) == TRUE) return (TRUE); //nope, no proxy was logged... return FALSE; } } //init class function is_proxy($addr) { $proxy = new proxy_detector(); //start detect return ($proxy->detect($addr)); } ?>