I want Google to be able to access my file robots.txt but I don't want it to be shown in the search search results, check the link below: https://www.google.com/search?q=".com/robots.txt" Is there a way to do that? Will "Disallow: /robots.txt" work?
No I haven't. That's why I am asking here if anyone else has. My intention is to implement this on a very large website so I need to be sure that it won't cause any harm.
Why not just send a HTTP header of noindex for robots.txt? I have never tried a disallow on robots.txt and wouldn't feel comfortable doing it (even if Google handled it OK, it doesn't mean other SEs will). Edit: Examples here for X-Robots-Tag (at the bottom): https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag