Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

As it looks like, post revisions are public.

Sometimes, a new user (or somebody who did not think long enough) posts code samples that contain real-world data that should probably not have been there in the first place. Like in this question:

Now when the person corrects the mistake and uses harmless data instead, search engines will still happily index the old revision, so somebody might find data through a regular search that was never really intended to be public.

Adding "nofollow" to the links that point to revision pages would prevent that kind of disclosure. So:

  1. Did I get the facts right (about search engines seeing revisions)?
  2. Would it make sense to prevent this for protection of the lightheaded (and the third-parties that do not even know that their data has been disclosed)?
  3. Would it break useful functionality?
share|improve this question
Aren't all links in a post body nofollowed? Or are internal links not subject to this? – Grace Note Jul 15 '10 at 16:53
Hmm... this has been discussed before, but not in this light; see Questions with proprietary or confidential information. – Pops Jul 15 '10 at 16:59
up vote 4 down vote accepted

This is already handled through robots.txt so revisions are not indexed.

Typical revision url:


User-Agent: *
Disallow: /posts
Disallow: /posts/
share|improve this answer
Ah, I see. Thanks. – Tomalak Jul 15 '10 at 17:30
That'll teach me to go off of what I know is correct from memory rather than checking. (Actually, it probably won't.) This is a little disappointing though, for my use case of searching for an old post. Am I the only person who associates SO posts -- among other things -- with random words/phrases that were on the page? – Pops Jul 15 '10 at 17:46

nofollow could help in the situation you describe, but that's security through obscurity, and contains some holes. Humans can still — intentionally or otherwise — view the history and see the sensitive stuff. Malicious or stupid web crawlers could still do so as well.

Furthermore, it might be nice for search engines to see history of pages that don't contain sensitive info. Sometimes I come across a problem and immediately think "I saw something about that on SO eight months ago!" If the post has been edited since then, I still want to be able to find it.

Seems to me the solution is having the team do a hard sanitize.

share|improve this answer
While non-conforming crawlers would ignore robots.txt, it is unlikely that they are the base of any widely-used search engine. I was thinking about the "somebody enters a person's name into Google"-case, where results with personal data could show up. A user that knows where to look can of course still find it, but this case is wildly improbable in comparison. Sure it is "security through obscurity", strictly speaking. But anything about robots.txt or rel="nofollow" is, really. Nevertheless, it's a convention that works. What you can't find through Google does not exist. – Tomalak Jul 15 '10 at 17:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .