Avoiding Duplicate Content with Used Car Listings Database: Robots.txt vs Noindex vs Hash URLs (Help!)
-
Hi Guys,
We have developed a plugin that allows us to display used vehicle listings from a centralized, third-party database. The functionality works similar to autotrader.com or cargurus.com, and there are two primary components:
1. Vehicle Listings Pages: this is the page where the user can use various filters to narrow the vehicle listings to find the vehicle they want.
2. Vehicle Details Pages: this is the page where the user actually views the details about said vehicle. It is served up via Ajax, in a dialog box on the Vehicle Listings Pages.Example functionality: http://screencast.com/t/kArKm4tBo
The Vehicle Listings pages (#1), we do want indexed and to rank. These pages have additional content besides the vehicle listings themselves, and those results are randomized or sliced/diced in different and unique ways. They're also updated twice per day.
We do not want to index #2, the Vehicle Details pages, as these pages appear and disappear all of the time, based on dealer inventory, and don't have much value in the SERPs. Additionally, other sites such as autotrader.com, Yahoo Autos, and others draw from this same database, so we're worried about duplicate content. For instance, entering a snippet of dealer-provided content for one specific listing that Google indexed yielded 8,200+ results: Example Google query.
We did not originally think that Google would even be able to index these pages, as they are served up via Ajax. However, it seems we were wrong, as Google has already begun indexing them. Not only is duplicate content an issue, but these pages are not meant for visitors to navigate to directly! If a user were to navigate to the url directly, from the SERPs, they would see a page that isn't styled right.
Now we have to determine the right solution to keep these pages out of the index: robots.txt, noindex meta tags, or hash (#) internal links.
Robots.txt Advantages:
- Super easy to implement
- Conserves crawl budget for large sites
- Ensures crawler doesn't get stuck. After all, if our website only has 500 pages that we really want indexed and ranked, and vehicle details pages constitute another 1,000,000,000 pages, it doesn't seem to make sense to make Googlebot crawl all of those pages.
Robots.txt Disadvantages:
- Doesn't prevent pages from being indexed, as we've seen, probably because there are internal links to these pages. We could nofollow these internal links, thereby minimizing indexation, but this would lead to each 10-25 noindex internal links on each Vehicle Listings page (will Google think we're pagerank sculpting?)
Noindex Advantages:
- Does prevent vehicle details pages from being indexed
- Allows ALL pages to be crawled (advantage?)
Noindex Disadvantages:
-
Difficult to implement (vehicle details pages are served using ajax, so they have no tag. Solution would have to involve X-Robots-Tag HTTP header and Apache, sending a noindex tag based on querystring variables, similar to this stackoverflow solution. This means the plugin functionality is no longer self-contained, and some hosts may not allow these types of Apache rewrites (as I understand it)
-
Forces (or rather allows) Googlebot to crawl hundreds of thousands of noindex pages. I say "force" because of the crawl budget required. Crawler could get stuck/lost in so many pages, and my not like crawling a site with 1,000,000,000 pages, 99.9% of which are noindexed.
-
Cannot be used in conjunction with robots.txt. After all, crawler never reads noindex meta tag if blocked by robots.txt
Hash (#) URL Advantages:
- By using for links on Vehicle Listing pages to Vehicle Details pages (such as "Contact Seller" buttons), coupled with Javascript, crawler won't be able to follow/crawl these links. Best of both worlds: crawl budget isn't overtaxed by thousands of noindex pages, and internal links used to index robots.txt-disallowed pages are gone.
- Accomplishes same thing as "nofollowing" these links, but without looking like pagerank sculpting (?)
- Does not require complex Apache stuff
Hash (#) URL Disdvantages:
- Is Google suspicious of sites with (some) internal links structured like this, since they can't crawl/follow them?
Initially, we implemented robots.txt--the "sledgehammer solution." We figured that we'd have a happier crawler this way, as it wouldn't have to crawl zillions of partially duplicate vehicle details pages, and we wanted it to be like these pages didn't even exist. However, Google seems to be indexing many of these pages anyway, probably based on internal links pointing to them. We could nofollow the links pointing to these pages, but we don't want it to look like we're pagerank sculpting or something like that.
If we implement noindex on these pages (and doing so is a difficult task itself), then we will be certain these pages aren't indexed. However, to do so we will have to remove the robots.txt disallowal, in order to let the crawler read the noindex tag on these pages. Intuitively, it doesn't make sense to me to make googlebot crawl zillions of vehicle details pages, all of which are noindexed, and it could easily get stuck/lost/etc. It seems like a waste of resources, and in some shadowy way bad for SEO.
My developers are pushing for the third solution: using the hash URLs. This works on all hosts and keeps all functionality in the plugin self-contained (unlike noindex), and conserves crawl budget while keeping vehicle details page out of the index (unlike robots.txt). But I don't want Google to slap us 6-12 months from now because it doesn't like links like these ().
Any thoughts or advice you guys have would be hugely appreciated, as I've been going in circles, circles, circles on this for a couple of days now. Also, I can provide a test site URL if you'd like to see the functionality in action.
-
Perhaps those URLs were indexed before you blocked them. If you have them blocked now, either by robots.txt and/or by robots meta noindex tag, you can use Google's URL Removal Tool in GWT to get them out of the index. It may take awhile though.
I see nothing wrong with adding a nofollow tag to those href links. Go for it. If nothing else, it could help you salvage your crawl budget.
-
Oh, I was under the mistaken impression that nofollowing the links would conserve that pagerank--a pretty outdated thought, I now realize. Thanks for clearing that up!
However, would you see any negatives to nofollowing the links just to keep Google from indexing the pages they lead to? Just so we avoid a zillion of those "A description for this result is not available because of this site's robots.txt" pages?
Unfortunately, my developers are having trouble figuring out how to retain the functionality we have without href tags, so it's looking like we're going to keep those links.
Again, thank you so much for lending your time and knowledge, Everett--you rock!
-
Nofollowing them won't help you conserve any of that pagerank for other links on the page. Instead, you would seek to make those something other than href tags. I'm not a developer, but here is one example that might help explain what I'm trying to say: http://www.quackit.com/javascript/popup_windows.cfm . Notice the javascript for the pop-up window on that page does not contain an href tag.
-
Everett,
Thank you so very much for the thoughtful and really helpful answer. We will implement the robots.txt disallow statements you suggested, and I will discuss with my developer the ability to reference just the id portion of the url. We've begun the URL removal process in Webmaster Tools, and fortunately, in the vast majority of cases, the content hasn't been indexed due to robots.txt--just the URL.
As far as all of the hrefs diluting pagerank, what are your thoughts on nofollowing these links? We've had this on the table for some time, but haven't been able to come to a decision. It would curb the pagerank dilution, and it would probably keep Google from indexing those robots-disallowed pages. It's good to know these pages probably wouldn't ever trip a Panda/dupe content filter, but it still seems cleaner/neater for them not to be indexed at all. That said, I'm afraid nofollowing the links could look suspicious to Google. All combined, it would result in 25-35 nofollowed internal links on each page, with about the same amount dofollowed (if you include navigation, etc).
Thank you again for lending your time and expertise to this answer. It is truly, truly, truly appreciated.
-
The javascript you shared would allow Google to fairly easily access the page ending in dtc_inventory_ajax.php?id=29935291. If that's the page you want them to not be able to access, perhaps you'd be better off referencing just the id portion of the URL, which should be enough for the database to take the user to the right page.
Regardless, you "should" be OK with just the robots.txt block, though all of the href tags are sort of diluting the amount of pagerank you can send to other pages from whatever page you're on.
The robots.txt disallow statement you provided might be improved upon.
Disallow: /*?
The one above seems to me like it would only work on URLs that were in the root directory. Try this one instead of, or in addition to, the one above:
Disallow: /?id=*
Also I'd add this one to any Wordpress site, which in itself should take care of the issue if the URL in your script is an example of those that you're concerned about:
Disallow: /wp-content/plugins/
You can use the URL Removal Tool in Google Webmaster Tools to get the ones that have already been crawled out of the index. You can do it at the URL level, or at the directory level.
Lastly, if you're blocking Google and the SERP says unable to display because of the robots.txt file I don't think you need to worry about the content on those pages affecting your site with regard to a Panda penalty or anything like that. However, if Google had already indexed the content on those pages you will want to remove the URLs via Webmaster Tools as described above.
-
Yes, I hear you on Google seeming to be able to crawl anything. Here is the million-dollar question: if Google is finding the links but not crawling the pages to get any content, are these pages still going to part of any Panda filter? Could we be penalized for robots-disallowed pages? My worry is yes.
What are your thoughts on implementing rel=nofollow on these links? That, combined with robots.txt, combined with the javascript, should have the intended effect. I'm just a little reluctant for us to nofollow ~25-30 internal links on each page like this.
As far duplicate content, no the pages are not exact duplicates, and there are things we could do to set them apart from everybody else. We have some good ideas for functionality, actually. But...I have to say I don't have enough faith in Google that this will keep us safe. I'm afraid we could still trip some filter, and CRASH there goes the traffic.
-
I think the JavaScript implementation might still be able to be crawled by Google. Any more, I'm becoming convinced that Google can crawl just about anything. But, I'll be curious to see what the results are. Definitely update this thread with what ends up happening from that approach.
As for the robots.txt message, that would indicate that they are finding the link to the page but not crawling the page to get any content.
As for duplicated content concerns, just to take a step back, are the pages 100% the same or are you making alterations to the text? If you can do easy things that make that page different from the other sites (even if it is functionality), then the page isn't a true duplicate and there might be some good reasons why people could want to find those pages in the search results.
Ultimately, you have the same page, but you are making the page better than those other websites. If that is the case, then you should be safe letting those pages rank. Where having the same content as your competitor really hurts (in my experience, anyway) is when you aren't offering anything different than any other sites.
Hope that helps.
-
Matthew, thank you so much for the thoughtful response!
We do not currently have a fallback solution for users with Javascript disabled, mainly because--as you said--Google could then access it, and we'd have the same problem we have now. We implemented the Javascript solution this weekend, resulting in button code like this:
[Contact Seller](javascript:void(0);)
We don't know yet if Google will be able to access this. Any ideas? We've uploaded this version of our plugin to a new test site, in order to see what happens.
As for the robots.txt solution, Google actually indexed the urls after the robots.txt file was uploaded, and we did test the file in Webmaster Tools to confirm that it worked prior to uploading it. We used Disallow: /*? to try and keep Google from crawling/indexing our Ajax urls, which all have question marks in them (like the data-url link in the code above).
Some of the indexed pages look normal in the SERPs--like any indexed page with a normal description, etc--and others have the message: "A description for this result is not available because of this site's robots.txt." I believe, from my research, that Google is indexing these pages based on the internal links to them.
It wouldn't be a tragedy if users navigated directly to the vehicle details pages, as we could make sure the pages are styled for them. The bigger issue is that these pages are not really unique, given that multiple companies are pulling from the same database.
Any thoughts on the Javascript implementation?
-
Hey,
This is definitely a complicated issue, and there is some risk in making a move in the wrong direction.
Here are my thoughts which might help you out. Feel free to private message me or shoot me an email (see my profile) and I'd be happy to talk more.
On the hash solution, would that require JavaScript be enabled in order to access those pages or would you have a fallback solution for those without JavaScript?
If you don't have a fallback solution for those without JavaScript, you might negatively affect visitors with disabilities. For instance, some types of Ajax are challenging for people with disabilities to access (see here to start digging into that: http://webaim.org/techniques/javascript/).
Thing is, if you have a fallback solution, Google could still access those. However, Google may still be able to access those pages with JavaScript as Google can execute some forms of JavaScript. Given that, the more appropriate solution would be to use the robots.txt file. You mentioned, though, that the command you put in didn't seem to work since Google kept indexing those pages. Couple questions:
First, did Google index those pages after the change or had those pages been indexed prior to the robots.txt change? Things take time, so I'm wondering if you didn't give them enough time to adjust.
The other question would be whether or not you tested the robots.txt file in Google Webmaster Tools? That just gives you an extra verification that it should work.
Also, you mentioned something interesting about the Vehicle Detail pages: "these pages are not meant for visitors to navigate to directly!" Given that is the case, is it possible for your developers to add some sort of server-side check to see if people are accessing the detail pages from the listing pages?
For instance, on some sites I've worked a cookie is set when you've reached the listing page that says "this person is okay to reach the detail page" and then the visitor can only reach the detail page if that cookie is set. Without that cookie, the visitor is redirected back to a listing page. Not sure how exactly that would work on your site, but it might be a way to keep visitors who find those pages in a Google search result from seeing the incorrectly styled page.
I hope that helps. Like I said, feel free to email me or private message me if you'd like me to take a look at your site or chat with you about more particulars.
Thanks!
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
-
Robots.txt Help
I need help to create robots.txt file. Please let me know what to add in the file. any real example or working example.?
Intermediate & Advanced SEO | | Michael.Leonard0 -
Help with duplicate pages
Hi there, I have a client who's site I am currently reviewing prior to a SEO campaign. They still work with the development team who built the site (not my company). I have discovered 311 instances of duplicate content within the crawl report. The duplicate content appears to either be 1, 2, or 3 versions of the same pages but with differing URL's. Example: http://www.sitename.com http://sitename.com http://sitename.com/index.php And other pages follow a similar or same pattern. I suppose my question is mainly what could be causing this and how can I fix it? Or, is it something that will have to be fixed by the website developers? Thanks in advance Darren
Intermediate & Advanced SEO | | SEODarren0 -
On Page Content. has a H2 Tag but should I also use H3 tags for the sub headings within this body of content
Hi Mozzers, My on page content comes under my H2 tag. I have a few subheadings within my content to help break it up etc and currently this is just underlined (not bold or anything) and I am wondering from an SEO perspective, should I be making these sub headings H3 tags. Otherwise , I just have 500-750 words of content under an H2 tag which is what I am currently doing on my landing pages. thanks pete
Intermediate & Advanced SEO | | PeteC120 -
WordPress Duplicate URLs?
On my site, there are two different category bases leading to the exact same page. My developer claims that this is a common — and natural — occurrence when using WordPress, and that there's not a duplicate content issue to worry about. Is this true? Here's an example of the correct url. and... Here's an example of the same exact content, but using a different url. Notice that one is coming from /topics and the other is coming from /authors base. My understanding is that this is bad. Am I wrong?
Intermediate & Advanced SEO | | JasonMOZ1 -
Robots.txt vs noindex
I recently started working on a site that has thousands of member pages that are currently robots.txt'd out. Most pages of the site have 1 to 6 links to these member pages, accumulating into what I regard as something of link juice cul-d-sac. The pages themselves have little to no unique content or other relevant search play and for other reasons still want them kept out of search. Wouldn't it be better to "noindex, follow" these pages and remove the robots.txt block from this url type? At least that way Google could crawl these pages and pass the link juice on to still other pages vs flushing it into a black hole. BTW, the site is currently dealing with a hit from Panda 4.0 last month. Thanks! Best... Darcy
Intermediate & Advanced SEO | | 945010 -
Brackets vs Encoded URLs: The "Same" in Google's eyes, or dup content?
Hello, This is the first time I've asked a question here, but I would really appreciate the advice of the community - thank you, thank you! Scenario: Internal linking is pointing to two different versions of a URL, one with brackets [] and the other version with the brackets encoded as %5B%5D Version 1: http://www.site.com/test?hello**[]=all&howdy[]=all&ciao[]=all
Intermediate & Advanced SEO | | mirabile
Version 2: http://www.site.com/test?hello%5B%5D**=all&howdy**%5B%5D**=all&ciao**%5B%5D**=all Question: Will search engines view these as duplicate content? Technically there is a difference in characters, but it's only because one version encodes the brackets, and the other does not (See: http://www.w3schools.com/tags/ref_urlencode.asp) We are asking the developer to encode ALL URLs because this seems cleaner but they are telling us that Google will see zero difference. We aren't sure if this is true, since engines can get so _hung up on even one single difference in character. _ We don't want to unnecessarily fracture the internal link structure of the site, so again - any feedback is welcome, thank you. 🙂0 -
Duplicate content for hotel websites - the usual nightmare? is there any solution other than producing unique content?
Hiya Mozzers I often work for hotels. A common scenario is the hotel / resort has worked with their Property Management System to distribute their booking availability around the web... to third party booking sites - with the inventory goes duplicate page descriptions sent to these "partner" websites. I was just checking duplication on a room description - 20 loads of duplicate descriptions for that page alone - there are 200 rooms - so I'm probably looking at 4,000 loads of duplicate content that need rewriting to prevent duplicate content penalties, which will cost a huge amount of money. Is there any other solution? Perhaps ask booking sites to block relevant pages from search engines?
Intermediate & Advanced SEO | | McTaggart0 -
All Thin Content removed and duplicate content replaced. But still no success?
Good morning, Over the last three months i have gone about replacing and removing all the duplicate content (1000+ page) from our site top4office.co.uk. Now it been just under 2 months since we made all the changes and we still are not showing any improvements in the SERPS. Can anyone tell me why we aren't making any progress or spot something we are not doing correctly? Another problem is that although we have removed 3000+ pages using the removal tool searching site:top4office.co.uk still shows 2800 pages indexed (before there was 3500). Look forward to your responses!
Intermediate & Advanced SEO | | apogeecorp0