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!
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
-
How can i check which inbound links to my site go to 404 pages?
I have external links coming into my site going to 404 pages, but i cant seem to find a way to search all broken links pointed at my website.
On-Page Optimization | | NickJPearse0 -
Listing and Linking Brands from Homepage
We have the popular brands that we sell listed on our homepage. We currently have them in just plain text at the moment but we want to know if it would be best to: Leave them in plain text Link each to the most relevant page on our website Link each out to the actual brands website Link some to internal page, others out to brands website, some blank Not have a list of brands We do have a webpage that lists all of our brands but there are hundreds we carry so we narrowed down the 40 most popular known brands that people will be looking for on the homepage. Thanks for your help!
On-Page Optimization | | petsofoz0 -
Should I nofollow certain outbound links?
Hi, All of our outbound links are currently follow.I've read that the only case where nofollow should be used, according to Google, is for paid links, crawl prioritization & untrustworthy sites.The kinds of websites we are linking to from our blog include:- Websites with great content & high authority that is relevant to the topic we've written about that would enhance the user experience- Partners/companies we have a strong relationship with who also have decent authority- Social media profiles of industry people not within our organisation - Websites with definitions/wikipedia/soundcloud/published statistics/news sites and other large well known sites. I am wondering if we should put the nofollow attribute on the last 2 points (social media profiles of people we've referenced, websites with definitions/wikipedia/soundcloud/published statistics/news sites and other large well known sites.)Or do you think it's totally fine that all our links are follow provided the websites are legitimate, trustworthy and have some authority?Thanks in advance!
On-Page Optimization | | PGAUE0 -
Two links to different page with same link label
What will be the impact in Google if I have two links in the same page pointing to different pages, but with the same label.
On-Page Optimization | | kjerstibakke0 -
Can we rank website without main keywords on its homepage?
For example my company website on Google Search Engine... Web Design Company & Digital Agency in Jakarta
On-Page Optimization | | Japracool
coriate.com/
Coriate is a website design & Internet marketing firm in Indonesia. We offer the best web solutions, digital advertising, and SEO Services in the industry. Can I do backlink to it, but different keywords? Like Social Media Management or Facebook Like?0 -
Can you see multiple title elements
This came back in my on page grade for this url. http://www.towelsrus.co.uk/blog/choosing-the-right-towels.aspx Avoid Multiple Page Title Elements Web pages are meant to have a single title, and for both accessibility and search engine optimization reasons, we strongly recommend following this practice. Recommendation: Remove all but a single page title element. I can't see it, can you?
On-Page Optimization | | Towelsrus0 -
Links to Product pages
Hello all, I am still rather new to SEO and learning a lot every day. I do have a question. On our product search result pages (example http://shop.ferguson.com/search/bathroom-lighting)
On-Page Optimization | | Ferguson
It is currently set up so the image, text, price etc of a product is linking to that product page. Our question is, if we were to link the image and the product name - will this be seen as two links to the same page? Is this a bad thing having multiple links to the same page? I searched around to see how other ecommerce sites have similar pages setup and it seems they link the image and also the product name, and the description is not click-able, which allows a user to "Highlight" the text (this is not possible on ours) Which would be to correct approach for SEO as well as User Interface, the way we have it set up, or by going with the method of the question I asked, Thank you for any information on this! Nick0 -
Internal Links & Title Tags, Which Page Benifits?
The best way I can explain why question is with an example. Lets say I have a parent parent page that is focusing on a broad keyword.
On-Page Optimization | | donford
I also have a sub-page which is focused more on long-tail keyword variations. When I make an internal link and give it a title tag, should I give it the long-tail keyword for the juice, or should I use the broad keyword for the parent page's relevancy? Thanks for any help, advise or pointers.0