How To Automatically Take Spam Links From Blogger Comments

Fighting against comment spam is amid the most frustrating undertaking for a blogger, peculiarly when y'all don’t possess got plenty coin to hire a comment moderator that trashes the spam comments piece publishing all the useful comments to your blog. Obviously y'all don’t desire to delete your all comments only for the sake of few spam ones? Since, Blogger doesn’t possess got a real-time comment spam detection plugin the argue why nosotros possess got to implement about techniques to brand surely that spam comments are staying away from our blogger site. Today, inwards this article, nosotros volition present y'all 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 too they know what y'all are referring is useful too what they should ignore. By removing spam links from comments alongside the assist of CSS could non entirely enshroud those links but would halt search engines from indexing them too. So larn to Blogger >> Template >> Edit HTML >> Search for Skin tag too only inwards a higher house it glue the next slice of code:

.comment-content a {
display: none;
}

Method #2: Use jQuery To Remove Links:

Some people powerfulness non recommend the inwards a higher house procedure they powerfulness fighting that the spam link is nevertheless there, because nosotros possess got only enshroud it alongside the assist of a uncomplicated display:none; CSS. So larn to Blogger >> Template >> Edit HTML >> Search for starting <body> tag too only below it glue the next slice 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 too similar a shot y'all tin slumber alongside worrying close comment spam. Whenever, a user volition travel out a link into his comments the link volition last considered equally spam too he the script volition automatically take it inside seconds.

We promise this brusk tutorial may assist y'all inwards tackling comment spam from your blogger weblog to a surely extent. We would recommend y'all to also use comment moderation feature that would also last a useful affair to last done to possess got attention spam.

More:
How To Write Effective Comment Policy For Your Blog
Disable (Name/Url) Option inwards Blogger Comment Form

Comments