Saturday, March 31, 2007

How To Automatically Take Spam Links From Blogger Comments

Fighting against comment spam is with the most frustrating labor for a blogger, specially when y'all don’t guide maintain plenty coin to hire a comment moderator that trashes the spam comments spell publishing all the useful comments to your blog. Obviously y'all don’t desire to delete your all comments merely for the sake of few spam ones? Since, Blogger doesn’t guide maintain a real-time comment spam detection plugin the argue why nosotros guide maintain to implement to a greater extent than or less techniques to brand certainly that spam comments are staying away from our blogger site. Today, inward this article, nosotros volition demo 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 together with they know what y'all are referring is useful together with what they should ignore. By removing spam links from comments with the assist of CSS could non alone cover those links but would halt search engines from indexing them too. So become to Blogger >> Template >> Edit HTML >> Search for Skin tag together with merely to 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 to a higher house procedure they powerfulness struggle that the spam link is all the same there, because nosotros guide maintain merely cover it with the assist of a elementary display:none; CSS. So become to Blogger >> Template >> Edit HTML >> Search for starting <body> tag together with merely 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 together with forthwith y'all tin laissez passer on notice slumber with worrying nearly comment spam. Whenever, a user volition move out a link into his comments the link volition endure considered equally spam together with he the script volition automatically take away it inside seconds.

We promise this curt tutorial may assist y'all inward tackling comment spam from your blogger weblog to a certainly extent. We would recommend y'all to also use comment moderation feature that would also endure a useful affair to endure done to guide maintain assist spam.

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

1 comment:

  1. Hire WooCommerce developer to build ecommerce site quickly. Affordable WooCommerce development services. Robust framework for ecommerce site. User-friendly page navigation. Stunning ecommerce websites.

    hire woocommerce developer
    woocommerce development company

    ReplyDelete