How To No-Follow All External Links In Your Blog or Website in 3 simple steps?


Let us show you how you can No-Follow all external links in your blog or website through this simple JavaScript.

Google is on a penalty spree and it is knocking down search engine rankings – serps of websites and blogs left right and center. If you are facing loss in traffic, it maybe that you have too many dofollow links which Google is considering as link sales.

Below are 3 simple steps to take care of your dofollow links and make them nofollow.

Step 1: Open your header file 
Step 2 : Copy-paste this simple JavaScript code mentioned below into your header file :

<script type=”text/javascript”>jQuery(document).ready(function () {jQuery(‘a[href*=”http://”]:not([href*=”http://www.yourwebsitename.com“])’).attr(‘rel’, ‘nofollow’);jQuery(‘a[href*=”https://”]:not([href*=”https://www.blogging.co.in“])’).attr(“target”, “_blank”);});</script>

 Step 3 : Save your File 

Voila, you have no-followed all your external links. 

You must be thinking, will this count in Google. Does Google bot read JavaScript ? Yes, technology has advanced and Google bot can now read JavaScript and understand that the links are nofollow. 

If you have any questions, feel free to ask in the comments below or just comment and tell us how the implementation went for you.

What's Your Reaction?

Like Like
0
Like
Love Love
0
Love
Cry Cry
0
Cry
Cute Cute
0
Cute
Damn Damn
0
Damn
Dislike Dislike
0
Dislike
Lol Lol
0
Lol
Win Win
0
Win
WTF WTF
0
WTF

Comments 0

Your email address will not be published. Required fields are marked *

CommentLuv badge

How To No-Follow All External Links In Your Blog or Website in 3 simple steps?

Log in

Become a part of our Blogger community!

Don't have an account?
Sign up

reset password

Back to
Log in

Sign up

Join Blogging Community

Back to
Log in
Choose A Format
Personality quiz
Series of questions that intends to reveal something about the personality
Trivia quiz
Series of questions with right and wrong answers that intends to check knowledge
Poll
Voting to make decisions or determine opinions
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Open List
Open List
Ranked List
Ranked List
Meme
Upload your own images to make custom memes
Video
Youtube, Vimeo or Vine Embeds
Audio
Soundcloud or Mixcloud Embeds
Image
Photo or GIF

Send this to friend