How to prevent spam and hide links from Comments by Simple jQuery

blogger tricks

Every blogger hate Spam and wants to get ride from it to save their blog. Formerly spam was not big deal for search engine but now it is very dangerous for blog. Google has also introduce Penguin and Panda algorithm to find out spam and low quality blog. But eventually it is not able to make completely spam free. There are thousands of blog affected for Google Penguin and Panda algorithm updates and often Google degrade page rank and delete blogs as penalties. As a result many blog including popular blog has already deleted for the Google penalties. All those effort of Google reduced spam sites but can’t stop completely.

Results of Spam

Google is forwarding their own way to stop spam, beside of this we have certain things to do to stop spam otherwise our blog also affect by Spammer. Remember Google is now not only penalize for inbound links as well as it will penalize for inferior quality outbound links. So those who are creating spam they become a major reason to get penalty from Google penguin algorithm against your site.

How spammer make spam?

Spam can be create by leaving site address to comment box or if your blog is linked to spam site then Google will treat as spam. There are many popular blog who got already Page Rank 2 or 3 Google has simply delete those site only for making spam. Because they leave their site or blog address in the comment box to get backlinks but due to change of SEO rules now Google treat it as spam.

How to prevent Spam?

I have personally seen that those blog who allow comments from Anonymous they are mostly affected by spam. Google has introduce spam comment, by this option you can easily identify the commentator who has made spam. Because after getting comment from spammer the comment will go directly into the spam comment box. So after getting this we should simply delete it rather than publish.

comment box

  • Blogger should enable comment moderation option thus they can check each and every comments and should enable word verification to stop auto comment creator.
  • In case of comment you can select Register user including Open Id can comment or simply can select Google user for comments.
  • There is simple code which you can add to your blog and this will hide all clickable links from comment box. Which is most effective to stop spam. Please follow the below steps to add the code to your blogger template.
Step 1 Log in to your Blogger account and Go to your Blogger Dashboard

Step 2 Click on -> Template -> Edit HTML

Step 3 Now find ]]></b:skin> by Pressing  Ctrl + F

Step 4 And Paste the below code above ]]></b:skin> and save your template

.comment-content a {display: none;}

That's it. Now check your comment box and see the magic. All clickable link will vanish. 

Hope this article will help you to make your blog safe from spam thus you can get ride from Google Penalties. If you have any argument or suggestion kindly share with us. Your feedback is important for us. 


  1. Shannon Lopez
    I really like this as I have to moderate the comments on my blog. I used to get a lot of spam comments. There are some good comments that I never allow though because they link to their site, which is competition. I've looked at all their sites, and I'm confident that my content is far superior, but I still don't want my readers and prospective clients to be redirected to a competing site.

    I followed your instructions but my template does not have the ]]> in it anywhere. In fact, I don't even see the html for the "comments" section. Is there a way to add the link blocking code anyway?
    • BloggerSpice
      Hi Shannon thanks for your comment. I have checked that you have 2 blog.. you can add this code easily..

      For futureficocreditrepair blog find the below code and paste the given code after below code

      /* Comments ----------------------------------------------- */

      and for the huescorner blog find the below code and paste the given code above below code

      /* ---( header and site name )--- */

      Hope this will solve your problem. If you have still problem then leave a comment I will find another way. thanks
    • Shannon Lopez
      Thank you, thank you, thank you!!! I found that code, pasted the new code, and it works. You are amazing!
    • BloggerSpice
      you are most welcome. If you need any further help for other tutorials then just leave comment I will reply you as soon as possible.
    • MM Nauman
      Hurrah!!!!!!!!! I got It Thanks is a magic............i will get 10 to 35 comments per day .......but most of them i will delete because of links in now no need of deleting comments............
    • BloggerSpice
      You should also make your comment no-follow..follow the tutorial from below link
  1. To insert a code use <i rel="pre">code_here</i>
  2. To insert a quote use <b rel="quote">your_qoute</b>
  3. To insert a picture use <i rel="image">url_image_here</i>
Go Up