Friday 7 April 2017

JavaScript Anti Active Link In Comments Blog

JavaScript Anti Active Link In Comments Blog
Bismillaahirrahmaanirrahiim
Assalaamu'alaikum Wr Wb!

Is an algorithm PageRank for blogs that are based on various comparisons link-in and link-outs, if an article of blog posts you have more containing a link-out its value with a link in it, of course blog articles are difficult to obtain pagerank pretty good. Therefore as an admin of your blog should check every comment that comes in, because the habits of spammers intentionally insert an active link in the comments with the intent to steal a backlink from your blog, active link is immensely affect the health of your own blog.

In general, blogspot has provided anti spam automatically and also facilities moderation Comments in RSS, but still you as the blog admin should still check every incoming comments carefully, it is obviously very annoying and time-consuming and also there are comment spam can escape.

Therefore, in this edition article I will share JavaScript Anti Link Active In Comments Blog. In my opinion, this method is very effective to eradicate an active link in a comment on your blog.

Here are the application ?

1. Log in to Blogger.com
2. Select a Theme ? Edit HTML
3. Find the ]]></b:skin> tags and place the following CSS right above ?
#comments p a {display:none;}

4. Find the </head> tags and place the following JavaScript right above ?
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
jQuery(document).ready(function(){
jQuery("#comments p").find("a").replaceWith("<span>Warning: Active links automatically deleted</span>");
});
</script>

5. Save Theme

Done.
Alhamdulillaah, I think it just enough that I can convey to you in this article.
Note
If you have any questions, please your ask Admin via comment!
Thank You.
Share
Feel free to share this article with your friends on social media, so that they too can benefit from this article!
Alhamdulillaah
Inshaa Allaah, hope my article can help you all!
Wallaahu'alam
Wassalaamu'alaikum Wr Wb!

No comments:

Post a Comment