mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user