diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index c58da30de9..c04fbbeff4 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -22,7 +22,7 @@ if ($action == 'retrospam') {

- +
(These settings may be overridden for individual articles.)') ?>

diff --git a/wp-admin/upgrade-schema.php b/wp-admin/upgrade-schema.php index dd298ea899..06c4462642 100644 --- a/wp-admin/upgrade-schema.php +++ b/wp-admin/upgrade-schema.php @@ -214,6 +214,7 @@ function populate_options() { add_option('page_uris'); add_option('blacklist_keys'); add_option('comment_registration', 0); + add_option('open_proxy_check', 1); // Delete unused options $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'rss_language', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl'); diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index efd92c8c7c..5aed07a8fd 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -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; }