Home » Blogger Tutorials, Tricks and Hacks » Blogger Comments Tricks » Automatically Remove Links From Blogger Comments With jQuery

Welcome to our AllBlogTools.com v.3 new version, We are still in beta, please contact us to report an error.

|| View All Tutorials ||

Automatically Remove Links From Blogger Comments With jQuery

Automatically Remove Links From Blogger Comments With jQuery

1 Star2 Stars3 Stars4 Stars5 Stars

Report Error

712 views

One way of combating spammers in your Blogger blog’s Comments section is by preventing the use of HTML-based codes that enables the embedding of hyperlinked texts. This would be no problem if you’re using a third-party commenting system like Disqus or Intense Debate that gives its users the option to disable embedding of HTML code.

But what if you want to stick with Blogger’s default commenting system? Well, fortunately there’s Nitin Maheta, a Blogger user who was kind enough to share a tutorial that’ll teach you how to give Blogger’s commenting system the same feature by turning links into simple text. All takes is using a little bit of jQuery. Just simply follow the instructions below.

  • In your Blogger dashboard, head over to Design and then on Template.
  • Click on Edit HTML.
  • Search for the </body> tag and then copy/paste the code below just right above it.
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/>
<script>$('.comment-content a[rel$=nofollow]').replaceWith(function(){return ($(this).text());});</script>     

NOTE: If you already have the part that’s highlighted in red already in your template’s code then exclude it and just copy the remainder of the code.

  • Save your template and you’re done. By pasting the above code in your template, all the hyperlinked text in a comment will be converted to simple [unclickable] text.

OR, if you’d rather have the hyperlinked texts removed entirely than just disabling the hyperlinked text, then copy/paste this code below instead. Again, if you already have the one that’s highlighted in red inside your template’s code then just skip copying that part.

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/>
<script>$('.comment-content a[rel$=nofollow]').hide());</script> 
  • Save your template and that’s it. You’re done!

Liked It ? Please Share

Comments

42 Responses | Post A Comment | Subscribe To Comments RSS Feed

  1. Thanks for your marvelous posting! I certainly enjoyed reading it, you are
    a great author.I will remember to bookmark your blog and may
    come back very soon. I want to encourage that you continue
    your great posts.

    Probloggerlab-Everything about blogging.

  2. Just did it, but the links in the comments are still clickable. How come?

  3. LoveClaw says:

    Hi to еveгу body, it’s my first visit of this weblog; this web site carries remarkable and really fine stuff for readers.

  4. I сomment еаch time І lіke a poѕt on a website or if I
    haνе somethіng to contribute to the conversation.
    Usually it is a result of the fire ԁіsplayed іn
    the articlе Ι reаd. Anԁ
    on this articlе Automatiсally Remove Lіnκs From Blogger Comments With
    jQuеry. Ι was aсtuаllу excited enough to leave a comment :
    -) I aсtually do haѵе 2 questiоns for you
    if yοu don’t mind. Is it simply me or do some of these responses come across like coming from brain dead visitors? 😛 And, if you are posting on additional online social sites, I’d liκe to keep uρ with you.
    Could you list every one οf your communal pages
    like your twitter feed, Facebooκ pаge or linkeԁin prоfile?

  5. Amparo says:

    Article writing is also a fun, if you be
    familiar with then you can write otherwise it is difficult to write.

  6. Great for sharing. Jquery will help to auto-remove links for that situation.
    Never spam, this should be a rule. faucets online
    Thanks for the job.

  7. tinyurl.com says:

    “Automatically Remove Links From Blogger Comments With jQuery” was indeed a marvelous blog post, can not wait to read
    far more of your blog posts. Time to spend some time on-line hehe.

    Thank you -Julie

  8. Exactly where did you obtain the techniques to post ““Automatically Remove Links
    From Blogger Comments With jQuery”? Thanks for your effort ,Kandy

  9. Minnie says:

    I know this if off topic but I’m looking into starting my own blog and was curious what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny?

    I’m not very web savvy so I’m not 100% certain. Any tips or advice would be greatly appreciated. Thank you

  10. I have read so many posts concerning the blogger lovers but this post
    is in fact a fastidious article, keep it up.

  11. Whatever truly influenced you to post “Automatically Remove Links From Blogger
    Comments With jQuery”? I personallycertainly adored
    the post! I appreciate it ,Stormy

  12. This design is incredible! You obviously know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved to start my own blog
    (well, almost…HaHa!) Excellent job. I really loved what you had to say,
    and more than that, how you presented it. Too cool!

  13. Consuelo says:

    Does your site have a contact page? I’m having trouble locating it but, I’d
    like to send you an e-mail. I’ve got some recommendations for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it expand over time.

  14. Olive says:

    You should surely do a 2nd part to this content.
    Most of us have unanswered questions and we definitely
    would love you to answer them for us, am I correct folks?

  15. Back links need generally possessed a number
    of bearing on the way in which actually a site atop the field and
    google generator result articles (SERPs). Even so,
    up to now, this calculations just weren’t that can think about consumers wishing to hack it has just with internet treadmill high on inlinks because of websites online that have only hyperback backinbound one-way one way back-shortcuts in them, certainly basically little content from a legitimate importance. These blogs quickly became labeled as “hyperwebsite url farms” and thus were utilized by website to rise the standing in their many different internet webinternet pages.
    Furthermore carry out, website very more often than not established a single internet page particularly to accommodate reciprocal url buttons called a backlinks to your site post. Previously it had spent on customers producing reciprocal web resources to better improve their website looking site good gains although as long as not a real text-based content. Oftentimes, reciprocal connections were being in fact replace concerning sites which have virtually not any strong significance together way far very. Then, in a hyperback backinbound one-way one way back-shortcuts webwebsite you will probably find a hyperlink with a product web-webpage as soon as the hosting the web link revolved around the ageing. The idea naturally completed an absense of ” sense ” so that you can compensation such type of behind the scenes positions treatments!
    Research was initially the important main bing and google to start out thinking about proven methods to benefit excellent connections which have significance as well as added in material to somewhat of a site as opposed to praising smart, and yet a bit unprincipled measures most typically associated with fooling around the search engine consequences with the backroom specials plus black color cheap tall sun hardhard hat tactics. That many people reserved making use of back link like a determinant connected with status, in addition to increased the actual formula to take into account very selected weight loss plans web resources and then penalizing hyperwebsite url farms as well black color cap techniques.
    A good inlink really is simple. At any time when one more web regions an important Web address affiliate web site on page of which urls definitely here we are at your web blog, it’s
    name is a good back-link.
    Exactly what makes backlinks vital? When they guide convey website
    visitors to your webblog, but additionally simply since they assist
    increase your home’s internet search results waiting.
    May from merely a quick backchek out the sites? That’s
    right! And yet only if you will know all these nature of the game concerning types links not to mention learn how to
    benefit from the best mixture of kinds to locate the the majority traffic to your
    web page. link building training
    Mindful, on the other hand, seeing as there are some pros and cons to each and every type oneway link, in case you have used them indecently any sort
    of unacceptable blend you may finish up actually card account seo by mistake.

  16. Hey there! I’ve been reading your weblog for a long time now and finally got the bravery to go ahead and give you a shout out from Lubbock Tx! Just wanted to say keep up the excellent job!

  17. Piece of writing writing is also a excitement, if you be familiar with afterward you can
    write otherwise it is difficult to write.

  18. Hello colleagues, how is all, and what you wish for to say about this article, in my view
    its actually remarkable in favor of me.

  19. Genevieve says:

    When some one searches for his necessary thing, therefore he/she desires
    to be available that in detail, thus that thing is maintained over
    here.

  20. A Few Facts RevealedNeedless to say, Pam
    has more than improved her physical health with magnificent HGH therapy.
    The secret behind Oprah’s girlfriend is Acai berry diet plan mainly focuses on fat loss as you go on a starvation diet are just asking for a rebound binge. Sea salt will provide you with a better chance of breaking the addictive process.

  21. Tanesha says:

    Oh my goodness! Impressive article dude! Thank you so much, However I am having issues with
    your RSS. I don’t know why I can’t join it. Is there anybody else getting the same
    RSS problems? Anybody who knows the answer can you kindly respond?
    Thanks!!

  22. Abdur Rakib says:

    Thanks a lot. It works for my blog nicely. It’s a really helpful thing to avoid spam comments. Thanks again. 😀

  23. Woah! I’m really loving the template/theme of this website. It’s simple, yet effective.
    A lot of times it’s very difficult to get that “perfect balance” between user friendliness and visual appearance. I must say that you’ve
    done a amazing job with this. Additionally, the blog loads
    super fast for me on Internet explorer. Superb Blog!

  24. Calvin says:

    My partner and I absolutely love your blog and find the majority of your
    post’s to be just what I’m looking for. Do you offer guest writers
    to write content for yourself? I wouldn’t mind creating a post or elaborating on a lot of the subjects you write with regards to here. Again, awesome web log!

  25. Good day I am so delighted I found your site, I really found you by error, while I was searching on Google for something else, Regardless I am here now and would just like to say many
    thanks for a remarkable post and a all round enjoyable blog (I also love the theme/design), I
    don’t have time to look over it all at the minute but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the excellent job.

  26. Very rapidly this website will be famous among all blogging and site-building people, due to it’s pleasant articles or reviews

  27. you are in point of fact a good webmaster. The site loading velocity is amazing.
    It seems that you’re doing any unique trick. Moreover, The contents are masterpiece. you’ve performed
    a magnificent process on this matter!

  28. Medifast Saint Cloud is often a burden loss centre or dome your stomach as your musclemen get commonplace toward the end of the set.
    The biggest clandestine about a easily delimited mid esteemed public wellness losing
    weightiness committee postdating the Sena-BJP’s reinforcement early this year. Our someone, psyche and vigour ply us the sign of looking abs though we ask to know what the best losing weight for men are.

  29. Hi there would you mind letting me know which webhost you’re using? I’ve loaded
    your blog in 3 different web browsers and I must say this blog loads a lot faster then most.

    Can you recommend a good web hosting provider at a reasonable
    price? Many thanks, I appreciate it!

  30. Vimax Detox says:

    Thank you for the good writeup. It in fact was a amusement account
    it. Look advanced to far added agreeable from you! However, how could we communicate?

  31. life cell says:

    I was recommended this blog by my cousin.
    I’m not sure whether this post is written by him as nobody else know such detailed about my trouble. You’re wonderful!
    Thanks!

    http://www.laurieanderson.com/forum/profile.php?mode=viewprofile&u=238822

  32. Flora says:

    I am in fact grateful to the owner of this web site who
    has shared this enormous post at at this time.

  33. Amparo says:

    I always used to read article in news papers but now
    as I am a user of internet thus from now I am using net for content, thanks to web.

    Feel free to surf to my homepage; finance & fitness (Amparo)

  34. Anonymous says:

    Excellent confident synthetic attention for the purpose
    of fine detail and may anticipate problems just before they
    occur.

  35. Thanks for finally writing about > Automatically Remove Links From Blogger Comments With jQuery < Liked it!

  36. Your style is unique in comparison to other folks I’ve read stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I’ll just bookmark this page.

  37. I visited various sites but the audio feature for
    audio songs current at this web page is genuinely superb.

  38. not work again you need update this code 😀

  39. ArchiVip says:

    Tunanmarca es un distrito de Jauja, y en un momento tenía 5000-familes estar dentro de las estructuras de piedra, es decir, hasta que se pelearon con los incas, y los jóvenes guerreros fueron asimilados en el ejército Inca. casas prefabricadas

  40. Rohit says:

    thanks for the tut, helped me soo much :)

  41. Hey just wanted to give you a quick heads up. The words in your article seem to be running off the screen in
    Safari. I’m not sure if this is a format issue or something to do with web browser compatibility but I figured I’d
    post to let you know. The layout look great though! Hope you
    get the problem solved soon. Thanks

    Also visit my blog … Kantor Pengacara Perceraian

Comments will be closed off on this post 365 days (1 year) after it is published. Apologies to this, but it's all about avoiding a growing comment spam problem. See our most recent posts where you can comment here