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. We would recommend you to also use comment moderation feature that would also be a useful thing to be done to take care spam.
More:
How To Write Effective Comment Policy For Your Blog
Disable (Name/Url) Option in Blogger Comment Form
hi nice piece of information you have. how do i locate starting body tag
ReplyDeleteYou missed the opening script tag. :)
ReplyDeleteWow BrO Really So Nice Of you :)
ReplyDeleteThanks For Sharing :)
It Will Help Me So Much :)
Thank You for another interesting post!
ReplyDeleteyou are using this trick? Infiblogger.com
ReplyDeleteDo these methods hide/remove ALL links, or just those that are considered spam?
ReplyDeleteIt will hide all links. I mean ALL links.
Deletenice post tnx for share :)
ReplyDelete