How can I nofollow my affiliate links?
-
I have a lot of affiliate links and I need to find an efficient way to nofollow them. I have over 500 blog posts and most have an affiliate link. I use Wordpress and Genesis. Any advice?
-
That would take forever! Seriously! But I have no programming skills whatsoever.
-
I used http://wordpress.org/plugins/nofollow-for-external-link/ or SEO Smart Links before just to do mass no follow. For affiliate sites that i didnt want to bother with anymore.
-
The other way is a manual way where you have to get in to every post and add rel = 'nofollow' on each affiliate link but if you have programming skills and can create a PHP script then go for the idea suggested above!
-
You can either create a script to go over the posts, recognize some pattern on the links and add the nofollow attribute, or edit post by post adding the nofollow.
As you mentioned Wordpress, a PHP script should do the work very fast and easily using an html DOM parser.
Here's an example: http://simplehtmldom.sourceforge.net/
and run something like:
foreach ($html->find('a') as $a) {
if(!checkUrl($a->href)) {
$a->rel = 'nofollow';
}
}checkUrl is a function you should write to recognize those affiliates links...
Hope that helps!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Pyramid link structure - how to noindex, nofollow
I'm talking about this article: https://moz.com/learn/seo/internal-link Take this sample: HOME --> Shirts --> Plain shirt --> shirt#1 Product page: noindex, follow all links except 1 from breadcrumbs to nearest category (plain shirts). SubCategory page (plain shirts): noindex, follow all links except 1 link from breadcrumbs to nearest category (shirts) and all products belonging to current subcategory. Category page (shirts): noindex, follow all links except 1 link from breadcrumbs to front page (site.com) and links to own subcategories. Front page: noindex, follow all links except 12 links to main categories (shirts, pants etc.) Is it correct? If I noindex some parts of website, will it be harmful?
On-Page Optimization | | SilverStar10 -
Can I use nofollow to limit the number of links on a page?
My website is an ecommerce and we have on homepage about 470 links ! 1. We have a top bar with my account, login, faq, home, contact us and link to a content page. 2 . Then we have multistore selection 3. Then we have the departament menu, with several parants + child category links 4. Then we have a banner 5. Then we have a list of the recently sold and new products. 6. then we have an image grid with the most important cms/content pages (like faq, about us, etc) 7. then we have footer, with all info pages, contact us, about us, my account etc. There are some links that are repeted 2, 3 times. For a user it is easier to find the informations but I'm not sure how search bots (google) deal with that. So I was thinking on how can I have around 150 links to be followed. To remove the links from the page is not possible. What about to add nofollow to repeted links and some child category, as the spider will crawl the father and will access child on the next page? Is this a good strategy?
On-Page Optimization | | qgairsoft0 -
Too Many On-Page Links error
Hello, I am new to this. The crawl of y website reveals that "Too Many On-Page Links" were found on many pages of the website. However, when I check those pages, not more than 5 links are found- I have not included links outside of the post (sidebar/comments/related posts - are these counted in the crawl report ?). I do use SEO SmartLinks Plugin where in some keywords point to Wordpress Categories but am not sure whether that could be the problem at all. Can someone guide what the issue could be and how to debug ?
On-Page Optimization | | sradhey0 -
The "100 links/page recommendation" - Do Duplicate Links Count?
We have way too many links on our homepage. The PageRank Link Juice Calculator (www.ecreativeim.com/pagerank-link-juice-calculator.php) counts them to 300. But all of them are not unique, that is some links point to the same URL. So my question: does the "100 links/page recommendation" refer to all anchors on the page or only to unique link target URLs? I know "100" is just a standard recommendation.
On-Page Optimization | | TalkInThePark0 -
No Follow Internal Links
Hi Mozzers, I know that this has been asked a few times and answered as well, I would just like to know some more on the internal link count on a page. I ran the SEOmoz report and many of the pages on the website have more than 150+ internal links. Now, should I use the rel=nofollow tag on some pages that I feel are not important? I have a list of pages which are not important from the SEO point of view, but from the usability factors they need to be there so I cannot remove the links to them. So, would be OK to place the rel=nofollow tag on them. My whole purpose is to reduce the count of internal links on the page as seen by SE's. Now, some say that the rel=nofollow tag does not lower the link count, but it can definitely (I believe) prevent the bots time in getting to those pages, which SEOmoz report also quotes. (__When search engine spiders crawl the Internet they are limited by technology resources and are only able to crawl a certain number of links per webpage. ) So, probably I can save their time. Does anyone have any views on this, Cheers,
On-Page Optimization | | RanjeetP0 -
No links or traffic to our articles
Hello, Our articles are written by a professional in the field, taylored to what we think our ecommerce customers would most want to know about. But there is no traffic to our articles and almost no inbound links. We have 15 articles around 500 words (roughly) each. We've got a right sidebar banner about our FAQ and articles and a rotating banner with one slde about our articles. Also, we have a tab at the top. We've had a good article section for 5 months, and a descent one for a couple of years Could it be our industry, or what can we do?
On-Page Optimization | | BobGW0 -
Re-optimizing onsite SEO, can it hurt?
We finished the re-design of our website a few months ago. We have hired a few freelance SEO guys that were horrible. We then decided to pull the SEO work in-house. I got nominated to do the SEO work. I started with what I thought was pretty good on-site SEO. At that time, with no experience, I was pretty proud of myself. I managed to get a bunch of our pages at top SERPs for long-tail keywords. Good enough for then. Now when I go look at the pages, I'm embarrassed to admit that it's my work. Please be kind. 🙂 Since then I have been trying to learn as much as possible about SEO. I'm certainly far ahead of where I was a few months ago. For the past few weeks I've been trying to focus my efforts on creating original keyword rich original content. Our competitors all have tried this, but their content is hardly readable by humans. Anyhow, we finished our fist article, it got indexed by G almost immediately and started to push our keyword SERPs up within just a few days. Now for my question. I have a much better understanding of on-page SEO and realize that I could make many improvements to ALL of our other pages. However, these pages are already doing fairly well with the SERPS and are moving up a few ranks a week. I'm very tempted to throw caution to the wind and completely redo all of our on-page SEO for our entire site. Is this a good strategy?
On-Page Optimization | | dmac
Should I expect our SERPs to drop a little, a lot, or not at all? I look forward to your response. DMac0 -
Are Forum Links To Website Causing Rankings To Drop ?
For many years our top keywords hve ranked in top 5. Usually top 3 for a few in particular. The last few months those particular keywords have dropped to 25 +. Our other rankings are doing pretty decent and are remaiing the same. We are members of about 6 forums since they relate to our website and sometime we have contests on them. I do know that the forums are based on those particular keywords and are linking to our website, as well as other forum members linking to us. Each forum has roughly 300 links to our website. It does not seem as if our competitors are affected by this, as they are members of the forums as well. What could be causing this for these certain keywords? If those forums were affected by Google's new algorythm would this have an affect on our website?
On-Page Optimization | | hfranz0