Menu
 


Fighting against comment spam is among the most frustrating job for a blogger, especially when you don’t have enough money to hire a comment moderator that trashes the spam comments while publishing all the useful comments to your blog. Obviously you don’t want to delete your all comments just for the sake of few spam ones? Since, Blogger doesn’t have a real-time comment spam detection plugin the reason why we have to implement some techniques to make sure that spam comments are staying away from our blogger site. Today, in this article, we will show you How to Automatically Remove Spam links from Blogger Comments.

Method 1: Use CSS to Remove Spam Links From comments

These days search engines are smart and they know what you are referring is useful and what they should ignore. By removing spam links from comments with the help of CSS could not only hide those links but would stop search engines from indexing them too. So go to Blogger >> Template >> Edit HTML >> Search for Skin tag and just above it paste the following piece of code:
.comment-content a {
display: none;
}
Method 2: Use jQuery To Remove Links:
Some people might not recommend the above process they might argue that the spam link is still there, because we have just hide it with the help of a simple display:none; CSS. So go to Blogger >> Template >> Edit HTML >> Search for starting <body> tag and just below it paste the following piece of JavaScript code:
<!--Stop Blog Comments -->
<script>$('.comment-content a[rel$=nofollow]').replaceWith(function(){return ($(this).text());});
</script>
<!--Stop Blog Comments -->
Once everything is done, Save the template and now you can sleep with worrying about comment spam. Whenever, a user will leave a link into his comments the link will be considered as spam and he the script will automatically remove it within seconds.

We hope this short tutorial may help you in tackling comment spam from your blogger blog to a certain extent. 

Post a Comment Blogger

Please Do not Spam. Give us Positive feedback to make this blog more better.

 
Top