Home How Spammers Automate Spam Comments to WordPress

    How Spammers Automate Spam Comments to WordPress


    I hate spammers. More than you. However, in order to understand them, one must learn their trade. The following code is about as basic as it gets when it comes to submitting spam comments to WordPress… but it’s interesting nonetheless (and has countless legitimate application). Don’t worry, I’m not sharing anything our spamming friends aren’t already aware of.

    Using the principle of submitting a form with CURL, you could very easily and quickly integrate a form into various types of feeds (including RSS) or use it to replicate comments on individual blogs. Used with a cron you could artificially (and remotely) create responses to threads that introduce new elements to a discussion or, integrated with other types of CMS systems, inject news and relevant third party links into a thread.

    The format of the WordPress post comment box is consistent from one blog to the next making it easy for spammers to set up automated systems to pollute the blogosphere. You’ll be surprised how many spam comments actually get published. A friend of mine used to reply to them not knowing he was wasting his time.

    The Code

    The Result

    If a spammer were to use something like this they would almost certainly have millions of posts indexed in a database that they’d loop through at a set interval (with the clever ones categorizing comments by topic so they can submit a ‘most relevant’ response). Obviously, they’d randomize their email, IP, referrer and other details.

    How Spammers Automate Spam Comments to WordPress

    If you were to check the referring page you could quite possibly eliminate spam submitted via this method.

    Short URL for this post: http://shor.tt/1XTs