Have you ever seen your robots.txt file return a match in the Google search results before? Does that upset you? Did you know you can block Google from displaying that file in the search results without blocking Google’s access to that file?
This is not a new topic, in 2008 we polled our readers asking if Google should display the robots.txt file in search results and the overwhelming majority said no, Google should not show the content in the search results.
But here is a picture of the robots.txt file showing up in the search results for this site:
But there are ways to block the robots.txt file from showing up in the search results. John Mueller of Google explained it about five years ago:
Forum discussion at StackOverflow and also that old WebmasterWorld thread.