How to battle with such spamy comments? (4 posts)

  1. s.r.
    Posted 2 years ago #

    Hi there,

    I am getting everyday a lot spamy comments on one website..
    Here is a screenshot how they look like..
    I have never used comments before on websites.. But I turned on moderation..
    But I am still see wordpress creates urls for those comments..
    Even more those comments looks like posts.. with full post urls..
    Don't understand that. how?

    Can someone please suggest something where do I have to look at?

  2. s.r.
    Posted 2 years ago #

    Here is email I am getting

    Not sure what those pingbacks mean!

  3. amsgator
    Posted 2 years ago #

    Deny Access to No Referrer Requests

    When your readers comment, the wp-comments-post.php file is accessed, does its thing, and creates the post. The user's browser will send a "referral" line about this.

    When a spam-bot comes in, it hits the file directly and usually does not leave a referrer. This allows for some nifty detection and action direct from the server. If you are not familiar with Apache directives, then write the following in your root directory .htaccess file:

    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]

    In the 4th line, change yourdomain.com to your domain.xxx without the www or any prefix for that matter.

    From: http://codex.wordpress.org/Combating_Comment_Spam/Denying_Access

  4. s.r.
    Posted 2 years ago #

    Thanks amsgator.. appreciate your input

Topic Closed

This topic has been closed to new replies.

About this Topic