[wp-trac] [WordPress Trac] #17667: Reducing spam by requiring referrer in wp-comments-post.php
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 2 19:04:04 UTC 2011
#17667: Reducing spam by requiring referrer in wp-comments-post.php
-------------------------------+----------------------
Reporter: BenChapman | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Comments | Version: 3.2
Severity: minor | Resolution: wontfix
Keywords: 2nd-opinion close |
-------------------------------+----------------------
Comment (by ocean90):
6 years ago we had already removed the referrer for comments, same reason,
see #1673.
Also many plugins already includes a referrer check.
Code snippet:
{{{
function my_verify_comment_referer() {
if ( ! wp_get_referer() )
wp_die( 'You need to enable referrers in your browser.' );
}
add_action( 'pre_comment_on_post', 'my_verify_comment_referer' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17667#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list