How to Automatically No follow All External Links in WordPress

92
198

Nofollow All External Link

What rel=”no follow” link  really means

How to Automatically No follow All External Links. Everywhere you see online there’s a link to click that leads you somewhere as a result of we’ve been trained by Google to believe that link is important to rank our sites in search results. But that’s only partially true. If you want to have good SEO and get that link juice from Google, you need to understand two things: no follow links and follow links (sometimes referred to as dofollow links).

Automatically no-follow all external links with a WordPress plugin. Alternately, to try this, paste the following code on your WordPress theme’s functions.php file.

The no-follow link may be an advanced SEO technique, wherever your journal doesn’t get an effect on by Google updates on link building.

How-to-Automatically-No-follow-All-External-Links-in-WordPress

 

Use No-follow Links in WordPress with Code

add_filter('the_content', 'auto_nofollow');

function auto_nofollow($content) {
//return stripslashes(wp_rel_nofollow($content));

return preg_replace_callback('/<a>]+/', 'auto_nofollow_callback', $content);
}

function auto_nofollow_callback($matches) {
$link = $matches[0];
$site_link = get_bloginfo('url');

if (strpos($link, 'rel') === false) {
$link = preg_replace("%(href=S(?!$site_link))%i", 'rel="nofollow" $1', $link);
} elseif (preg_match("%href=S(?!$site_link)%i", $link)) {
$link = preg_replace('/rel=S(?!nofollow)S*/i', 'rel="nofollow"', $link);
}
return $link;
}

How Can You Get Free Backlinks 2019

92 COMMENTS

  1. Greetings from Ohio! I’m bored to tears at work so I decided to browse your website on my iphone during lunch break.
    I love the information you present here and can’t
    wait to take a look when I get home. I’m
    surprised at how quick your blog loaded on my cell phone ..
    I’m not even using WIFI, just 3G .. Anyways, great site!

  2. Howdy! I know this is kind of off topic but I was wondering if you
    knew where I could find a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having trouble finding one?
    Thanks a lot!

  3. A motivating discussion is definitely worth comment.

    I believe that you ought to write more on this subject, it may not be a taboo matter but generally people don’t speak
    about these subjects. To the next! Many thanks!!

  4. Wow! This blog looks exactly like my old one! It’s on a completely different topic but it has pretty
    much the same layout and design. Great choice of colors!

  5. Hi there just wanted to give you a quick heads up and
    let you know a few of the pictures aren’t loading correctly.

    I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same results.

  6. I do not even know how I ended up here, however I
    thought this submit was once good. I don’t recognise who you’re however definitely you’re going to a famous blogger if you aren’t already.
    Cheers!

  7. I think that what you published was actually very logical.
    But, what about this? what if you typed a catchier title? I mean, I don’t wish to tell you
    how to run your blog, however suppose you added a post title to possibly grab people’s attention? I mean How
    to Automatically No follow All External Links in WordPress – WTF is a little boring.
    You ought to glance at Yahoo’s front page and watch how they create post titles to grab viewers to open the links.
    You might try adding a video or a pic or two to get readers interested about what you’ve got to say.
    Just my opinion, it would bring your posts a little livelier.

  8. I love your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to
    do it for you? Plz answer back as I’m looking to construct my own blog and would
    like to know where u got this from. kudos

  9. I know this if off topic but I’m looking into starting my own blog and was curious
    what all is needed 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% positive. Any recommendations or advice would be greatly appreciated.
    Appreciate it

  10. I like the valuable information you provide in your
    articles. I will bookmark your weblog and check again here
    regularly. I am quite sure I’ll learn a lot of new stuff right
    here! Good luck for the next!

  11. Hmm it seems like your website ate my first comment (it was
    extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.
    I too am an aspiring blog blogger but I’m still new to the whole thing.
    Do you have any recommendations for inexperienced blog writers?
    I’d definitely appreciate it.

  12. Hi there! This blog post couldn’t be written any better!
    Looking through this post reminds me of my previous roommate!

    He continually kept talking about this. I’ll forward this post to him.
    Fairly certain he’s going to have a very good read. Thank you for sharing!

  13. Hello there! I could have sworn I’ve been to this website
    before but after reading through some of the post I realized it’s new to me.

    Nonetheless, I’m definitely delighted I found it and I’ll be bookmarking and checking back often!

  14. Have you ever thought about including a little bit more than just your articles?
    I mean, what you say is important and all. Nevertheless think about if
    you added some great visuals or video clips to give your posts more,
    “pop”! Your content is excellent but with images and videos, this website could certainly be one of the best in its
    niche. Wonderful blog!

  15. You could certainly see your skills in the work you write.
    The arena hopes for even more passionate
    writers like you who are not afraid to mention how they believe.
    All the time follow your heart.

  16. I am no longer positive the place you are getting your info, but
    good topic. I needs to spend a while finding out
    more or understanding more. Thanks for excellent information I used to
    be in search of this info for my mission.

  17. I must thank you for the efforts you’ve put in penning this website.
    I am hoping to check out the same high-grade content from you later on as well.

    In fact, your creative writing abilities has
    encouraged me to get my own, personal site now 😉

  18. We stumbled over here different web address and thought I might as well check things out.
    I like what I see so now i am following you.
    Look forward to looking into your web page for a second time.

  19. Remarkable issues here. I am very glad to peer your post.

    Thanks so much and I am having a look forward to touch you.
    Will you kindly drop me a mail?

  20. An outstanding share! I’ve just forwarded this onto a coworker
    who was doing a little research on this. And he actually ordered me
    lunch simply because I stumbled upon it for him… lol.
    So let me reword this…. Thanks for the meal!! But yeah, thanks for
    spending time to talk about this matter here on your blog.

  21. Hmm it seems like your blog ate my first comment (it was extremely long)
    so I guess I’ll just sum it up what I wrote and say, I’m thoroughly enjoying your blog.
    I too am an aspiring blog blogger but I’m still new to the whole thing.
    Do you have any tips for first-time blog writers? I’d really appreciate it.

  22. Amazing! This blog looks exactly like my old
    one! It’s on a completely different topic but it has
    pretty much the same page layout and design. Superb choice of colors!

  23. Hi, I do think this is an excellent website. I stumbledupon it 😉 I may return yet again since I
    bookmarked it. Money and freedom is the best way to change, may you be rich and
    continue to help other people.

  24. Hi! Do you know if they make any plugins to assist with Search Engine Optimization? I’m trying
    to get my blog to rank for some targeted keywords but I’m not seeing very good results.

    If you know of any please share. Many thanks!

  25. Great goods from you, man. I’ve understand your stuff previous to and you are just too great.
    I really like what you have acquired here, certainly like what you’re saying and
    the way in which you say it. You make it entertaining and you still
    take care of to keep it smart. I can’t wait to read much more
    from you. This is actually a great site.

  26. I think everything said was very logical. But, what about this?

    what if you wrote a catchier post title? I ain’t saying your content is not solid, however what if you added something that
    grabbed folk’s attention? I mean How to Automatically No
    follow All External Links in WordPress – WTF is a little boring.
    You might peek at Yahoo’s home page and note how they create article headlines to grab people to click.
    You might try adding a video or a related pic or two
    to grab readers excited about what you’ve got to
    say. Just my opinion, it might make your website a little bit more interesting.

  27. Pretty section of content. I just stumbled upon your site and in accession capital to assert that I get actually enjoyed account your
    blog posts. Any way I will be subscribing to your feeds and even I achievement you
    access consistently rapidly.

  28. I think this is among the most significant information for me.
    And i am satisfied reading your article. However want to statement
    on few common things, The web site style is perfect, the articles is in point of fact
    excellent : D. Good task, cheers

  29. I really like your blog.. very nice colors & theme.
    Did you make this website yourself or did you hire someone to do
    it for you? Plz answer back as I’m looking to design my
    own blog and would like to find out where u
    got this from. thanks a lot

  30. Admiring the hard work you put into your site and detailed information you offer.
    It’s great to come across a blog every once in a while that isn’t the same out of date rehashed information. Excellent read!

    I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

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

  32. I will immediately snatch your rss as I can’t to find your email subscription link or e-newsletter service. Do you’ve any? Kindly let me understand in order that I may just subscribe. Thanks.

  33. Thanks for every other informative website. The place else may just I get that type of information written in such an ideal manner?
    I’ve a undertaking that I’m simply now working on, and I
    have been on the look out for such information.

  34. You are so awesome! I don’t suppose I’ve truly read anything like that before. So good to discover someone with a few genuine thoughts on this subject matter. Really.. thank you for starting this up. This website is something that is needed on the web, someone with some originality!

  35. A fascinating discussion is worth comment. There’s no doubt that that you should write more on this subject,
    it may not be a taboo matter but typically people don’t discuss
    such issues. To the next! All the best!!

  36. Today, I went to the beach front with my children. I found a sea shell and gave it to my 4 year old daughter and said
    “You can hear the ocean if you put this to your ear.” She put the
    shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is completely off topic but I had to tell someone!

LEAVE A REPLY

Please enter your comment!
Please enter your name here