I'm experiencing problems with indexed pages which were (probably) never linked to. Here's the setup:

  1. Data-Server: Application with RESTful interface which provides the data
  2. Website A: Provides the data of (1) at http://website-a.example.com/?id=RESOURCE_ID
  3. Website B: Provides the data of (1) at http://website-b.example.com/?id=OTHER_RESOURCE_ID

So the whole, non-private data is stored on (1) and the websites (2) and (3) can fetch and display this data, which is a representation of the data with additional cross-linking between those.

In fact, the URL /?id=1 of website-a points to the same resource as /?id=1 of website-b. However, the resource id:1 is useless at website-b. Unfortunately, the google index for website-b now contains several links of resources belonging to website-a and vice versa.

I "heard" that the google crawler tries to determine the URL-pattern (which makes sense for deciding which page should go into the index and which not) and furthermore guesses other URLs by trying different values (like "I know that id 1 exists, let's try 2, 3, 4, ...").

Is there any evidence that the google crawler really behaves that way (which I doubt). My guess is that the google crawler submitted a HTML-Form and somehow got links to those unwanted resources.

I found some similar posted questions about that, including "Google webmaster central: indexing and posting false pages" [link removed] however, none of those pages give an evidence.

  • 6
    Althought I don't have an answer to your question, the correct way to deal with the issue is to use robots.txt - google is very well behaved in that regards. Feb 6, 2012 at 19:31
  • 2
    Thanks Mark Henderson. However, restricting the resources by robots.txt is not possible as the resource-IDs are dynamic and the pattern id=X is perfectly valid.
    – Dominik
    Feb 6, 2012 at 19:35
  • @Dominik, see this answer on SO about robots.txt and dynamic URL's stackoverflow.com/a/1495507/804087
    – Anagio
    Mar 7, 2012 at 18:27
  • @Anagio: How it that supposed to solve the problem? Example: While /?id=1 is a valid resource and should be indexed, /?id=2 is not. I can't see how a robots.txt can help here.
    – Dominik
    Mar 10, 2012 at 1:23

2 Answers 2


Our experience is that google does seem to 'guess' URL parameters.

We used to have a legacy url structure main.php?id=1 etc. and changed this a year ago to a more SEO friendly structure.

We noticed that items recently entered were still being indexed by google at main.php?id=1234 rather than our spiffy new SEO optimised URL even though this page never existed when we had our old legacy structure. We nowhere, otherwise, had a link to these pages using this old URL.

We reviewed our server logs and noticed someone looking at our pages in a sequential manner using our old legacy url, i.e. main.php?id=1, 2, 3 etc. They would go upwards in batches about 150 or so, and then come back a few hours later and do another 150. We tracked the IP address of the request and found it was a standard google bot IP.

The old legacy URL still worked, as we had not disabled it - we just never referred to it and never had thought anyone would try this.

We solved the problem by putting a 301 redirect in our index.php whenever a URL containing a new page was called. A few hours coding, but it seems to have resolved our issue - new pages added to google seem to contain our SEO URL and we have had no attempted use of our old legacy URL for several weeks.

We can only conclude that the google bot is aware of parameters and does indeed try them even if no real link occurs.

  • Thank you very much for your detailed answer! Your depiction corroborates my assumption .We'll maybe solve this issue by adding an additional parameter which specifies the "scope" where the specific resource is valid.
    – Dominik
    Apr 4, 2012 at 19:44
  • Very surprising and very interesting information! Apr 4, 2012 at 23:56

If you have Webmaster Tools setup I would go into the URL parameters section under Site Configuration and see what parameters they have setup by default for your site. My site being WordPress google recognizes some of the parameters, but interestingly for the live chat script and a few other random scripts I use it's also guessed some of the parameters.

I would use noindex nofollow as well as robots.txt where possible.

  • Thanks for your answer. I might ask the owner of the website to have a look into google webmaster url parameters. Maybe it'll give a clue. However, using "nofollow" and/or "noindex" isn't an option, as some of those resources are perfectly valid and should be indexed.
    – Dominik
    Mar 10, 2012 at 1:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.