If you are a webmaster you usually know what spam is. Blog owners experience spam usually in the form of comments, trackbacks or pings that spammer use to place links to their content on websites. These spammers can be classified as three different types. First the manual spammer who researches blogs in the niche and uses manual comments, trackbacks or pings. There is usually no large volume to expect here considering that leaving a comment takes anywhere from 30 seconds to 1 minute on most sites (including page loading times, writing, submitting but excluding finding the domain or website in first place).
The second type are ping and trackback spammers. This is either done by auto-posting articles that others have written without their consent on so called autoblogs. Each post generates at least one pingback to the original site. This can lead to hundreds of pingbacks over time which many webmasters and blog owners publish.
The third and most spammy type are the automated spammers that use specifically designed tools to spam thousands of blogs, forums and every other type of site where content can be posted in hours. Now that we know the different types of spammers we have to discuss how to handle them. This post will mostly deal with automated spammers who post dozens if not hundreds of comments and pingbacks.
Webmasters should use at least one anti-spam tool to block the majority of spam reaching the frontend of the website. WordPress users can for example use Akismet or one of the several other anti-spam plugins that are available. Still, some spam will come through. Today for example a webmaster decided to copy and post more than 300 articles from Ghacks on a website. Each post generated at least one pingback, many multiple pingbacks as the tags and links were kept by that webmaster.
Akismet did not object to these ping and Ghacks ended up with more than 300 accepted and published pings from that blog. Many webmasters would now delete them one by one which takes quite a while. A far better solution is to filter for a common denominator which in this case was the url of the website. All comments, pings and trackbacks that include the domain name of that website were listed giving me the option to mark them all and send them to the spam folder.
There might be situations where this is not possible. Maybe the website or script does not offer the option to bulk moderate comments. There is however another option if the website is making use of a database. This does however require some knowledge about the database as a query has to be run in the administration. Most users will probably use MySql where a basic delete query looks like this:
delete from [table] where [column name] = 'value'
To delete all comments from a specific url in WordPress one would do the following:
delete from wp-comments where comment_author_url ='www.example.com'
It is possible to use other table columns like the commenters IP or email for example. How do you handle mass spam to your website or blog?Advertisement
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.