Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Possible Duplicate:
How to protect PDF file from indexing?

Hi guys,

Really basic question here I'm sure - I'm not a webmaster however am thrown into it sometimes!!

We have a particular file this is available for download on our site, however this file shows up in a Google search. My manager wants to make this file hidden from google if possible. Can anybody point me in the right direction for this?

Right now the file is sitting with the following URL:

http://www.example.com/document.pdf

The site is running on IIS7.

Any help would be appreciated, Thanks.

share|improve this question

marked as duplicate by John Conde Jun 1 '11 at 12:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 1 down vote accepted

To hide it from Google (and other search engines who use it) you need to create a robots.txt file (if you don't have one already) and add a line to exclude that document. For more information see http://www.robotstxt.org/.

Another way is to password protect it and make sure that the web page that points to the document says what the username and password is. See this question for how to do that: Is there a simple way to protect my webpage by password?

share|improve this answer
    
Hi @paulmorriss. Thanks for the reply. There didn't appear to be a robots.txt file in the directory so I will put one in there. Thanks for your help. –  109221793 Jun 1 '11 at 11:24

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