Mark comments as spam in WordPress automatically by IP address

SPAMThe comment spammers are getting smarter. It used to be that my Askimet spam plugin for WordPress would catch just about everything, but lately I have noticed some are getting through. They are sneaky and the comments read something like this:

“Really cool blog. I found it on yahoo. I am looking forward to read more posts.”

And of course they have a URL and it is obviously spam because the same IP address will leave a similar comment on other posts but with a different name and email address associated with it.

There are a couple of things you can do in this case including installing a plugin to completely ban IP addresses from accessing your site to begin with. But there is a way in WordPress and without a plugin to automatically spam comments from specific IP addressses.

So if you receive these sneaky, shady comments and are tired of manually marking them as spam, all you need to do is follow the easy steps below in your WordPress dashboard:

  1. Click on “comments” on the left and locate the offending comment (or if you receive email notifications of all comments, you can click on the Whois link).
  2. Copy the IP address located just below the Author’s email address to your clip board (if you clicked on the Whois link, the IP will be at the top of the page and it actually was in the link itself but it is harder to copy it from there).
  3. Click on “settings” on the left, and then “discussion.”
  4. Scroll down to the box called “Comment Blacklist” and paste the IP address into the box. You can also enter a word, name or URL (one per line) and it will automatically mark as spam, any comment containing them.

That’s it. A simple easy way to help keep spammers from wasting your time and taking advantage of you.

About Kim

Kim is a creative person who doesn't sit still for very long. As the mother of two, she calls herself a "recovering former working mom" and left a successful career as an Architect to stay home with her kids. This blog is a reflection of her daily life and her quest to find the answer to "what's that smell?". If blogging doesn't work out for her, she plans on auditioning to become a sports team mascot.

Speak Your Mind

*

Comments

  1. hans says:

    Very nice hint, yes :) Still manually is a bit weary if you have 70 spams on morning ;)

  2. You rock Kim! That was so easy. Thanks for the step-by-step instructions.

  3. Tara says:

    Great advice for WP newbie!

  4. You’re just awesome Kim. A few of those comment junkies got me at first too.

  5. JenReg says:

    I’m still trying to figure out how to do this in blogger! This is great information though – thanks for posting!

  6. Mommy Zabs says:

    great tip thanks!

  7. Queen of the Click says:

    Awesome, awesome, awesome! Thank you for the great idea Kim!! Here’s my special friend’s IP’s that I added :)

    24.42.138.223
    24.240.62.223
    59.34.70.18
    59.149.44.121
    61.18.170.237
    61.116.180.133
    67.152.211.166
    71.62.27.113
    71.225.100.191
    74.50.102.219
    75.111.140.81
    76.105.62.113
    76.113.200.140
    79.141.19.227
    83.233.30.35
    84.109.43.239
    85.214.33.108
    86.64.66.125
    88.41.111.190
    88.198.36.73
    92.48.201.43
    92.114.170.192
    93.174.93.200
    114.40.74.178
    124.119.145.2
    124.244.251.180
    143.90.221.247
    189.55.121.253
    190.202.107.117
    194.8.75.157
    194.165.130.118
    200.89.135.26
    200.163.75.27
    201.193.44.200
    206.230.106.209
    208.89.208.246
    210.187.51.60
    211.154.130.244
    213.163.65.176
    213.163.65.176
    220.178.1.26
    221.239.117.67

  8. Connie says:

    You’re awesome! I’ve been wondering how to stop the spam that just started getting through.

    Thanks so much!

  9. Jinxy says:

    Thanks a bunch for the tip.

DISCLAIMER: All images on www.AccidentalMommies.com are licensed or readily available in various places on the Internet and believed to be in public domain. Images posted are believed to be posted within our rights according to the U.S. Copyright Fair Use Act (title 17, U.S. Code.) If you believe that any content appearing on www.AccidentalMommies.com infringes on your copyright, please let us know by using our contact form and send a DCMA take down request.