mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 18:16:08 +00:00
Update RBL site and turn open proxy check off by default. Props Nazgul. fixes #2821
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
590a1a168f
commit
129e43009f
@ -211,7 +211,7 @@ function populate_options() {
|
||||
add_option('page_uris');
|
||||
add_option('blacklist_keys');
|
||||
add_option('comment_registration', 0);
|
||||
add_option('open_proxy_check', 1);
|
||||
add_option('open_proxy_check', 0);
|
||||
add_option('rss_language', 'en');
|
||||
add_option('html_type', 'text/html');
|
||||
// 1.5.1
|
||||
|
@ -684,7 +684,7 @@ function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_age
|
||||
function wp_proxy_check($ipnum) {
|
||||
if ( get_option('open_proxy_check') && isset($ipnum) ) {
|
||||
$rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) );
|
||||
$lookup = $rev_ip . '.opm.blitzed.org.';
|
||||
$lookup = $rev_ip . '.sbl-xbl.spamhaus.org.';
|
||||
if ( $lookup != gethostbyname( $lookup ) )
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user