ProLavish | Blogger GuruProLavish

A blog provide Blogging Ethics

How To prevent Spam Links In Blogger Comments

>
Comment spam is a major issue for all the bloggers.But How to protect spam in our blog .Spam also lead to poor SEO,decline in blog rank.when moderating comments in blog you can not see if there is any link.
Comment spam is a major issue for all the bloggers.But How to protect spam in our blog .Spam also lead to poor SEO,decline in blog rank.when moderating comments in blog you can not see if there is any link.

Steps to protect your blog from spam


Part 1 :Compulsory




Step: 1 Go to Blogger Dashboard  .

Step 2  Then Click on  Design  and then  ahead to EditHTML

Step 3.  Click on "expand widget templates"

Step: 4   Find the code </head> using( ctrl+F.)


Part 2:







Attempt either   "A" or"  B"



A :Using Css to Hide Spam Links



With the CSS the anchor text that make the link  will become disappear from comment automatically.You don't have to remove it manually Thats the best part.

 Paste the below code just before </head>


<style>
.comment-content a {
display: none;
}
</style>

 


B: Using jquery to add rel="nofollow



jquery will add rel="nofollow" to that links making them a waste and protecting you from spam comments.
 Paste the below code just before </head>


 
<script type="text/javascript">
$(".comment-content a[rel$=nofollow]").replaceWith(function(){return ($(this).text());});

</script>

 

Have Questions?

If you need help with respect to any concept do post your comment below..We are happy to help you  

Gaurav dudeja

Gaurav Dudeja has 3 years of blogger experience.He wasthe only owner of prolavish .He does internet blogging and sharingblogging ethics,widgets,quality tips based on blogging.Having More than 50 followersand 250 people subscribed his blog Join me . Prolavish receives 1 thousand Pageviews/month and has over 32K subscribers

You can find us on

Read Comment Policy ▼
  We have Zero Tolerance to Spam. Chessy Comments & Links' will be deleted immediately

Comments are moderated and may take some time to appear.
If you ask a question make sure you tick the Notify Me option

No comments:     Post Yours!