Breaking News
Loading...
Wednesday 26 March 2014

Disable Spam Backlinks In Blogger Comments Using jQuery


Are you fed up of spam comments? It's not strange that any good going site will be affected by the tsunami of spam comments and spammy backlinks. Over the internet there are millions of spammers and may be your site can also be one of their target, so how to defend your site from such irrelevant comments?

Recently I found a jQuery plugin which disables embeded backlinks in your sites comment box and prevent them from opening the spam sites or pages. This plugin is helpful in the real sense as it completely blocks your users to enter the spam sites or pages via backlinks.To install this plugin in your blogger site open Blogger Dashboard → Template → Html Editorand then search for  </head>  (pressing Ctrl+F).

And add below given code just before/above it.


jQuery

<script>
$(document).ready(function() {
    $(&#39;.comment-content a&#39;).click(function(e) {
        e.preventDefault();
        
    });
});
</script>

Now save the template and you are done.

Final Words

This plugin will share half of your labour without asking for any payment. You can also publish some of the spam (Anonymous) comments without any fear of spam backlinks. Because after installation of this plugin visitors of your site will not be able to follow the link, so he can't enter the spam sites. Since it is jQuery plugin so it will work perfectly, just install it and forget it.

0 comments:

Post a Comment

 
Toggle Footer