Posted By

vagrantradio on 10/08/10


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


HTACCESS Deny Spambots from your WordPress comments

 / Published in: Apache

Block automated spam bots from hitting your WordPress wp-comments-post.php file.

  1. RewriteEngine On
  2. RewriteCond %{REQUEST_METHOD} POST
  3. RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
  4. RewriteCond %{HTTP_REFERER} !.** [OR]
  5. RewriteCond %{HTTP_USER_AGENT} ^$
  6. RewriteRule (.*) http://%{REMOTE_ADDR}/$ [R=301,L]

Report this snippet  

You need to login to post a comment.