How do you deal with comment spam: wordpress?
-
I have akismet installed on my Wordpress blog, and it does a great job of filtering the spam comments, but for some reason my site (and server) gets slammed by the amount of spam comments akismet blocks. If I check my spam folder there will be over 100 spam comments in an hour. (which in turn puts a load on my server.)
Does anyone have any thoughts on how to put a stop to this? (Or at least slow it down?) I know I could use a captcha, but I really don't want to put any barriers on people commenting and I don't even like using those captcha's myself.
Thoughts?
By the way, does anyone know how spam like this works? This has been going on for sometime now. Are spammers just using automated software to do this?
-
By far the best site availability monitoring tool I can recommend is Pingdom.
Signing up for an account is free to monitor one website. You can have it email you or send a text message/tweet when your site goes down. You can also configure how long your site must be out before you get alerted, and how often to be alerted while your site is still down.
Indispensable for understanding what's actually going on with your site.
Paul
P.S. Use the customizations when setting up the monitor so it's actually checking for the existence of a particular word on your page - that way you're testing whether your site is actually rendering, as opposed to just responding to a ping.
-
Thanks for the reply, very helpful info.
As far as server monitoring I don't think I have anything in place. Any suggestions?
-
Sorry - guess should have made that clearer, Rick. There will be a definite reduction in server resources used. The comment still gets partially processed in order to send it to Akismet, but that new setting tells your system to just discard it if it comes back marked as spam. That way, no database writes occur for that spam, which will definitely reduce server load (database reads and writes are fairly "expensive" in terms of added server processing needed).
Without that setting, spam comments that come back from Akismet get written to your database under the Spam table. That's a lot of extra processing for something you were going to throw out anyway.
This won't save as many resources as actually blocking the spam before it even starts to get processed (as the other suggested plugin would do) but you should notice lowered demand on your server resources with this setting. Not to mention a whole lot less crap to clean out every day, as you point out
Paul
P.S One side effect to that setting is you won't be quite as aware of just how much spam you're actually getting since you won't see a lot of it. This means a spam run against some older posts could start really hitting server resources hard but you might not be aware. (Remember, this setting doesn't eliminate the processing demands completely.)
So keep an eye on the stat that shows how many spams Akismet has handled. If you see a prolonged surge, and/or have further server load problems, it will be a signal that more drastic protection methods have become necessary.
Do you have a server monitoring/alerting system in place?
-
Thanks for your very helpful post! It was great!
I never thought of selecting the option to auto delete spam comments on posts older than a month old. Once I did that, it cut down on 80% of the spam I was getting! So thanks!
Quick question on that. Does enabling that option cut down on the server resources? In other words, let's say it cuts down on 200 spam comments a day because they are auto deleted, do those 200 spam comments still get entered in as comments and therefore use server resources? Does this just save me the step of having to go through and delete them / clear the spam folder? Or does this save a huge amount of server resources? Either way it's a huge win!
-
Just wondering if these responses helped answer your question, Rick?
If not, what else might you need clarified tht we may be able to help with?
Paul
-
Ahh... comment spam - the bane of every successful website with an active blog. It's actually a signal of your success that your getting that much spam
I fully agree though - captcha is NEVER the answer if you want to maintain high visitor engagement. You shouldn't be offloading your spam problem onto your visitors to solve. There are better options.
So let's dive in.
How the spam gets generated There are two types of comment spam: bot-generated and manual. The first is created by software "bots" that have been programmed to crawl the web looking for the scripts on a website that allow content submission e.g. comment forms, contact forms etc. The software then accesses the script directly and submits its crapload. WordPress (and othe CMSs) are especially vulnerable because these scripts have the same names on every single install - the bot only has to look for a few very specific filenames in a few standard places.
Because this is two pieces of software talking directly to each other, hundreds, or even thousands of submissions per hour can be generated. The bots generally have no limits on them, so eventually they'll consume so many server resources they degrade or even completely consume the server's ability to do the rest of it's job. (This is considered to be at least 65% of all spam.)
With manual spam, an actual human in a very cheap labour market is paid to go through the posts on a website and manually enter the crapload, entering whatever info into the fields is necessary to make the comment system think it's a legit human-generated comment.
Filtering vs Blocking
The problem with Akismet is that it is a spam filtering tool, not a spam blocking tool. Each comment is allowed to enter the blog system where it is then sent to Akismet's server to be assessed. Akismet then sends it back to your site flagged to go into your spam, moderation, or publication queue. This means each spam message receives the same processing as legit comments, so the system is still using processing and database resources for every single message received. (Even spam gets written to the database and stays there until you decide it should be deleted.)
All very processing intensive, and hence why having Akismet doesn't do anything to reduce the server load of a spam run - and may even increase it slightly.
Optimize Akismet's Settings
So what to do? First, there's a simple checkbox in Akismet settings that can make a huge difference. You can tell Akismet that if it recognizes as spam a comment to a post that's more than a month old, it should just automatically discard it instead of adding it to the spam queue and writing it into the database. This greatly reduces the database activity created by the spam, and also helps keep your spam queue clearer so it's easier recognize legit comments that might have been caught from more recent posts. (Spammers tend to focus on older posts for a number of reasons - mostly becasue they're easier to find) The clear disadvantage is that the (very) few comments falsely identified as spam will be irretrievably gone. I know this could be an issue for you as many of your posts continue to get comments for months after, but if you're clearing 100s of comments an hour, chances are that some legit comments are accidentally getting deleted already.
To enable the automatically discard function, simply go to the Akismet Configuration page under your Plugins (where WordPress.com API Key is entered). At the bottom of the page, check-mark the box for Automatically discard spam comments on posts older than a month. Remember to click the Update options button when done.
Stronger Protection
If you need more protection, you're going to need to install a plugin that intercepts the comments before they get into the system and automatically discards the ones that show the characteristics of bot-submission behaviour. Essentially the plugin analyzes how the comment was posted, rather than its content.
The best-known of these is Bad Behaviour, but it's a pretty heavy-handed solution that has been known to even block GoogleBot and hence cause deindexing of many pages. I'd call it a last-ditch solution.
I'd suggest you try WP Captcha-Free which is a small, very lightweight plugin that invisibly creates a "hash" when the comment is created that must also be present when submitted. Most spam-bots fail at this since they're submitting directly to the comment script and so are blocked before the comment really starts processing. Note that commenters must have Javascript enabled using this system. Since only 2-5% of web users don't have JS enabled, this is a reasonable tradeoff (and much better than pissing of 100% of your commenters by enforcing a captcha)
You will still want Akismet active behind this protection to catch the manually-submitted spam.
So to recap - in order to reduce your server load from spam, you need a system that BLOCKS the spam before it starts to get processed in the first place. Just doing more/better FILTERING won't help as the filtering process actually uses up even more server power. You want your server only processing what is likely to be real comments.
Sorry for the loooong reply but comment spam is a big/complicated issue and if it's approached incorrectly, you can make your problem much worse instead of better.
Fire away with the questions
Paul
-
Your blog will have a 'hook' where scripts can automatically insert comments to your site. Check your server logs - you'll probably see one form or another getting hit, a lot, or a script like xmlrpc.
If it's a form, add CAPTCHA, and that'll stop the scripts from auto-submitting.
If it's something else, consider changing permissions so the whole world can't hit it.
-
You may want to check your GA to see if this started all at once. Your site might be under a DDoS attack, but your server is holding up. That sounds like an awful lot of blocking in one hour. Sometimes the ISP has to step in if you host the server inhouse.
-
Is your blog self hosted or hosted by Wordpress.com ? If it's the one in your profile, then it's hosted by Wordpress.com which would then limit your abilities but then probably shouldn't have server "stress" issues. If it's self hosted, then you can try some of these plugins and see if they help (http://wordpress.org/extend/plugins/search.php?q=spam) Depending upon the software being used to spam your blog, one of these for sure will be able to reduce the issues. So yes, it's automated tools that do all this comment spam.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Wordpress Tag Organization Tips
Curious if anyone has some good examples of ways to organize your WordPress tags without making your sidebar a football field long and hard to navigate. My blog is https://karmahill.com/blog and I could use some ideas. We have main categories of photo shoot types, for example, "Couples", located on the sidebar. We want to add tags to go with those main categories for further categorization and user experience example: Couples Engagement Proposals Honeymoon Maternity My question is, do I need to make "tag" pages for those posts to reside on or is their another way to get it done with less work, that is much faster? I don't want to have to make 30 tag pages or is that just what you have to do?
Web Design | | photoseo13 -
Replacing Slider Image WordPress
Hi Everyone, I decided to delete my slider from my homepage and replace it with a static image. However, after I deleted the slider, I'm left with a dark square where the slider used to be. I want to put my new static image in that same spot, but have no idea how. Does anyone know where or what code I should add to do that? The page is www.kempruge.com The WP Forums never seem to be too helpful for me, but Moz always is! Thanks in advance, Ruben
Web Design | | KempRugeLawGroup0 -
Finding a good wordpress web developer for SEO fixes
I have gotten a good audit done of my site now it is time to get the fixes done. I have a developer I worked with for a long time that is good at coding and fixes on my site. However I am not confident in his abilities to execute some of the seo changes that need to be done. Their are some common stuff he can tackle but when it comes to GWT and proper handling of 404's and 301's and other seo tasks I am not sure if he is the right choice.Maybe due to a lack of experience of dealing with the issues I have or is just not his specialty or web devs just don't know seo...lol.... Is obvious a lot of SEO's don't make the changes themselves but leave it up to the devs to handle it their suggestions and fixes. But from my experience devs are not so well versed in seo and you have a hard time knowing if they are doing it correct or can even do it.(of course they will say they can they want your cash and i understand that ). In particular a good amount of wordpress devs claim to know seo but i find that far from the truth.Even when guided to issues some of them will often leave you disappointed. Sorry for my rant! Now to my question , obviously not many SEO's make the actual code changes themselves (how i wish i knew a one that did) are their ones out their that do? If not how do i find a good wordpress dev that can make proper seo changes and knows his stuff....example i need someone who can trouble shoot and track down some serious GWT I have and deal with some hardcore 404 & 301 issues . A lot claim to know but when push comes to shove I have been left disappointed. Thanks in advance for your help and suggestions or recommendations.
Web Design | | chrisyak0 -
From Google Sites to Wordpress - Anyone Ventured this SEO terrain?
We have a few sites in Google Sites - and they are ugly! We have a majority (40+) of websites in Wordpress. But we have a few websites just stuck on Google Sites, and since Google won't let you fully edit the HTML, add scripts, or implement any technology since 2000, we want to move. The sad problem - the Google sites are ranking well. We rank well in Manhattan, Atlanta, Dallas, and Philadelphia. The problem is - the sites do not give much room for growth - and the bounce rate is high because they are so ugly. Has Anyone moved from Google sites to Wordpress? Should we just stay with Google and bite the ugly bullet? My fear is that these sites will not allow for growth. It is hard to update them and even harder to make them look nice. To get a sample - beware: www.counselingphiladelphia.com Even another reason to leave: The slider is non-semantic and terrible SEO. Google won't allow a slider script with tags and a hrefs, so the only way to implement a slider is through a Google Docs Presentation that keeps sliding. I know - terrible SEO (#donthate) but we needed something. Any advice and thoughts would help! Thanks Mozzers!
Web Design | | _Thriveworks0 -
Im having duplicate content issues in wordpress
all of my pages are working fine. but i added my sitemap to my footer in my website and when i click on my blog from my footer it takes me to the homepage. so now im having duplicate content for two diff urls. ive tried adding a rel=canonical and a 301 redirect to the blog page but it doesnt resolve the problem. also, when i go to my footer and click blog. after it brings me to the homepage ill try to click on my pages from the original bar at the top of my screen and it will bring me to the right pages. but it will have the same blog url in the search bar even when im on other pages. other than that all of my pages in my footer and in my homepage toolbar work fine. its just that one particular problem with the blog page in the footer and how it stays with the same blog url on every page after i click the blog in the footer. can someone please help. im using yoast and idk if i should disable it or what.
Web Design | | ClearVisionDesign0 -
WordPress blog hosted on GoDaddy domain mapping help
We set up a WP blog that's hosted through GoDaddy. For various reasons, we purchased a URL to use to get through the technical build and set up and are trying to map that to a subdomain of our company website. (We can't host it on our own server, unfortunately). My question is: for WP blogs hosted via WP you can buy a domain mapping upgrade and I'm trying to find a similar plugin that could offer the same thing that would apply to our GoDaddy hosting and point to our subdomain (GD apparently doesn't offer the domain mapping). Anyone have any thoughts, please?
Web Design | | josh-riley0 -
Wordpress/ Insert Tables/ SEO
I'm using Wordpress to create websites and blogs. I have limited (non-existent) HTML Coding knowledge. I'm looking to insert tables within my pages with information. Inside of these tables I want certain names to link to another page with more specific information about that name. I'm using a plugin called "WP Tables Reloaded" it simple helps you to create aesthetically pleasing tables without needing to know HTML Code or CSS. The issue is... when you create this table and insert it to the post, the only thing that shows on the sites back-end page is the table I.D. and the only thing that shows in the HTML is the tables I.D. It looks like this... [table id=2 /] I don't think search engines will be able to crawl this table, thus I won't be receiving any credit for the links being used within the table. Am I right about this?
Web Design | | AndySolo0 -
Google Analtyics Conversion Tracking for Wordpress Life Coaching Site
Hello, How do I do conversion tracking for Google Analytics for this site: debidonner(dot)com She has a 'Thank You' page after you return from Paypal Thanks!
Web Design | | BobGW0