English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

The domain is running on a linux server, and what I'm trying to accomplish is have a robots.txt file that search engine crawlers can read but the any user can't access/view via the browser.

2006-08-26 04:17:25 · 1 answers · asked by Omnis 1 in Computers & Internet Internet

The whole point of using a robots.txt file is to hide folders/files from ending up in search results in google, yahoo, etc, which in turn the public can access. Even though it hides folders/files from search engine crawlers, the actual robots.txt file is still accessible through http://www.domain.com/robots.txt, which displays all the folders/files I'm trying to hide, unless you can place robots.txt file in the actual directory your trying to hide? I know you can password directories and thats what I intend to do as well.

2006-08-26 16:21:38 · update #1

1 answers

No they can't.

You could however use something like RewriteCond to detect the user-agent string Mozilla and then rewrite robots.txt to some other file. You would have to exclude the two or three bots that include Mozilla in the user-agent string though. Easy enough but why would you want to do this?

2006-08-26 06:07:21 · answer #1 · answered by memetrader 6 · 0 0

fedest.com, questions and answers