WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. s.r.
    Member
    Posted 8 months ago #

    Hi there,

    I am getting everyday a lot spamy comments on one website..
    Here is a screenshot how they look like..
    https://dl.dropboxusercontent.com/u/15137556/Screen%20shot%202013-11-22%20at%2019.07.20.png
    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.
    Member
    Posted 8 months ago #

    Here is email I am getting
    https://dl.dropboxusercontent.com/u/15137556/Screen%20shot%202013-11-22%20at%2019.41.32.png

    Not sure what those pingbacks mean!

  3. amsgator
    Member
    Posted 8 months 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.
    Member
    Posted 7 months ago #

    Thanks amsgator.. appreciate your input

Reply

You must log in to post.

About this Topic