.htaccess - Prevent comment spam with htaccess -
i'm trying modify htaccess prevent instance of spammers , found tip on @ search engine journal said add file:
# protect spam bots <ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_method} post rewritecond %{request_uri} .wp-comments-post\.php* rewritecond %{http_referer} !.yourwebsite.com.* [or] rewritecond %{http_user_agent} ^$ rewriterule (.*) ^http://%{remote_addr}/$ [r=301,l] </ifmodule>
my current file has following code... how merge two? or should not bother adding additional stuff? appreciate thoughts on this.
# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress
Comments
Post a Comment