This worked GREAT until I upgraded to wordpress 3.0. I'm so disappointed!
This worked GREAT until I upgraded to wordpress 3.0. I'm so disappointed!
best way to stop spam if you are on a apache/linux server is to add this code into your .htaccess file
# only accept comments from people comming from the site
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*pbth.net.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
basically is telling your server not to process your comments ( wp-comments-post.php file ) if the request didn't came from your domain.
What went wrong with 3.0?
Updated with fixes
Thanks Hax for .htaccess solution.
I try it ! :)
This topic has been closed to new replies.