Return to Snippet

Revision: 33380
at October 8, 2010 07:38 by vagrantradio


Initial Code
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) http://%{REMOTE_ADDR}/$ [R=301,L]

Initial URL

                                

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

Initial Title
HTACCESS Deny Spambots from your WordPress comments

Initial Tags

                                

Initial Language
Apache