Blocking Spam with WordPress

By Dan Nedelko

April 7, 2009

Last Updated on December 1, 2011 by Dan Nedelko

<p>After my last article on Cleaning your Site after a <a href=httpsdannedelkocomwordpresswordpress injection attackhtml target= blank>Wordpress Injection Attack<a> I figure that its time to take the old an ounce of prevention us better than a pound of a cute or something like that So here is a nice easy way to enhance your Akismet spam protection and quickly and easily blacklist an offending IP<p> <p>Personally I get really sick of blog spammers especially since my blog is <a href=httpwwwsquidoocomdofollow target= blank>DoFollow<a> It <strong>doesnt<strong> stand for the same thing as DoSpam Very annoying time consuming and potentially harmful alot of these same idiots who blog spam would also be the same people who will try to inject your WordPress theme and plugins with Click Counter code<p> <p>Anyhow in this post Im going to use the following plugins<p> <ol> <li>Akismet setup properly but that goes without saying<li> <li><a href=httpmeandmymacnetpluginseasyban target= blank>WP EasyBan<a><li> <li><a href=httpsemperfiwebdesigncompluginswp security scan target= blank>WP Security Scan<a><li> <li><a href=httpbueltgedewordpress login sicherheit plugin652 target= blank>Secure WordPress<a><li> <li><a href=httpurbangiraffecompluginsredirection target= blank>Redirection Plugin<a><li> <ol> <p>The first thing you need to do is install all of the above plugins and ensure each of them work As a side note I had trouble with WP EasyBan on WordPress 271 but I corrected it To be honest I am not 100 sure if it was a conflicting plugin issue or a core problem with WP EasyBan If you have a problem contact me or comment here and I will share my fix I wasnt able to see Add Ban in the user menu but a few changes to the plugin fixed it without any issue<p> <p>Ok moving right along<p> <p>Lets say you are getting a substantial amount of Spam in your Spam Bin in Akismet You will easily be able to tell if it comes from one particular IP address First go to your Spam Box and identify the IP address see below<p> <p style=text align center><a href=httpsdannedelkocomwp contentblogsdir1files200904screen capture 378jpg><img class=size full wp image 165 aligncenter src=httpsdannedelkocomwp contentblogsdir1files200904screen capture 378jpg alt=One Identfy the IP Address width=411 height=40 ><a><p> <p>Next step Check your Security logs under Tools > Security Logs now if the person is simply annoying you can skip that step but the Security logs will identify if the user is on a blacklist<p> <p>caption id=attachment 167 align=alignright width=258 caption=Check your Security Log and Blacklist<a href=httpsdannedelkocomwp contentblogsdir1files200904screen capture 381jpg><img class=size full wp image 167 src=httpsdannedelkocomwp contentblogsdir1files200904screen capture 381jpg alt=Is the IP already on your Blacklist width=258 height=144 ><a>caption<p> <p style=text align center> <p>Once youve done that its time to Add Ban provided by WP EasyBan Its got a great interface for you to add various options We want to add a specific IP address adding a block if IPs could cause you to block legit visitors to your site<p> <p>caption id=attachment 166 align=alignleft width=341 caption=Adding a Banned IP through WP EasyBan<a href=httpsdannedelkocomwp contentblogsdir1files200904screen capture 379jpg><img class=size full wp image 166 src=httpsdannedelkocomwp contentblogsdir1files200904screen capture 379jpg alt=Adding an entry to your Blacklist width=341 height=158 ><a>caption<p> <p>Also as an ounce of prevention you can set a time limit and maybe youll discourage the blog spammers after a period of time The reason I like this method is that Spammers never give up unless they are certain that their stuff is not getting through Blacklisting will let you send a message that there is no getting through to you<p> <p>As a last note I like to add a personalized message to these idiots Sometime I venture into more colourful language depending on how badly one IP is offending my site and messing with my hard work<p> <p>Then you can set another site to redirect them to as well Get creative here you can have fun with this there is also a sense of satisfaction to mess around with these people<p> <p>Anyone else have any tips Let me know<p> <p>Cheers<p> <p>Dan Nedelko<p> <p><img class=alignleft size full wp image 94 src=httpsdannedelkocomwp contentblogsdir1files200903dan nedelko signature bloggif alt=Dan Nedelko width=87 height=96 ><p>

Dan Nedelko

About Dan Nedelko

A human being spinning around on this big blue marble with the rest of you, interested in Digital Marketing // Music // Art // Family // Business // Founder of

  • Why not delete spam instead of blocking it. Spam is impossible to block and comes in too many forms. I personal prefer to watch my blog an maintain a close eye on comments to make sure things are oki doki

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

    Want a FREE Membership to Marketer Knows?