Adding support for a proxy-specific RBL that has shown to be extremely effective

git-svn-id: https://develop.svn.wordpress.org/trunk@2199 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-02-02 08:40:44 +00:00
parent 6872bdba06
commit 1832211054
3 changed files with 13 additions and 2 deletions

View File

@@ -417,6 +417,13 @@ function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_age
if ( preg_match($pattern, $user_ip ) ) return true;
if ( preg_match($pattern, $user_agent) ) return true;
}
if ( get_option('open_proxy_check') && isset($_SERVER['REMOTE_ADDR']) ) {
$rev_ip = implode( '.', array_reverse( explode( '.', $_SERVER['REMOTE_ADDR'] ) ) );
$lookup = $rev_ip . '.opm.blitzed.org';
if ( $lookup != gethostbyname( $lookup ) )
return true;
}
return false;
}