Home / admin / Deny spambots from comments
  • How to Deny spambots from comments

    no thumbnail sorry: Deny spambots from comments

    Adding this to your HTACCESS will help keep bots from posting comments on your wordpress blog, be sure to change yourdomain.com to your website address.

    ( click code to copy )

    wordpress snippet : PHP

    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]

    ( WordPress codex functions, hooks, in this snippet. )

    request, wp,
  • FYI: The CSS is broken for this page.