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:
ryan 2006-07-04 21:40:41 +00:00
parent 590a1a168f
commit 129e43009f
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ function populate_options() {
add_option('page_uris'); add_option('page_uris');
add_option('blacklist_keys'); add_option('blacklist_keys');
add_option('comment_registration', 0); add_option('comment_registration', 0);
add_option('open_proxy_check', 1); add_option('open_proxy_check', 0);
add_option('rss_language', 'en'); add_option('rss_language', 'en');
add_option('html_type', 'text/html'); add_option('html_type', 'text/html');
// 1.5.1 // 1.5.1

View File

@ -684,7 +684,7 @@ function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_age
function wp_proxy_check($ipnum) { function wp_proxy_check($ipnum) {
if ( get_option('open_proxy_check') && isset($ipnum) ) { if ( get_option('open_proxy_check') && isset($ipnum) ) {
$rev_ip = implode( '.', array_reverse( explode( '.', $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 ) ) if ( $lookup != gethostbyname( $lookup ) )
return true; return true;
} }