WebFaction
Community site: login faq

I need to upload some personal pdf files on server. How can I make them not to be googled (searched)? Just making .htaccess file is good enough?

asked 26 Apr '11, 08:30

prosseek's gravatar image

prosseek
48211
accept rate: 100%


If you're only concerned about search engines, put all the files in a separate folder and use a robots.txt file to control if they will index those files. Here's an example (the second entry specifically is telling Google to not index that folder):

User-agent: *
Disallow: /mypdfs/
User-agent: Googlebot
Disallow: /mypdfs/

However, this only protects you from search engines that follow the rules. If you want to block all unauthorized users, using htaccess authorization can password protect the entire directory.

permanent link

answered 26 Apr '11, 09:10

parawing742's gravatar image

parawing742
284
accept rate: 100%

edited 25 Feb, 01:57

You would use a robots.txt file to prevent crawlers from accessing all or part of a website which is otherwise publicly viewable. A good explanation of robots.txt is found at http://www.free-seo-news.com/all-about-robots-txt.htm.

If the PDF files are uploaded to your home directory in a location that is not part of a website, you don't need to do anything as they will never be searchable.

permanent link

answered 26 Apr '11, 09:09

maryh's gravatar image

maryh ♦♦
1.2k6
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×15
×6

question asked: 26 Apr '11, 08:30

question was seen: 1,738 times

last updated: 25 Feb, 01:57

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM