Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

password protect a directory, but let googlebot in to search

83 views
Skip to first unread message

golf....@gmail.com

unread,
Jul 17, 2007, 9:05:04 PM7/17/07
to Apache .htaccess
Using .htaccess, I want to password protect a directory of research
articles (using aigaion) to preserve copyright 'fair use'; however, I
want google to be able to search and index the content so I can find
information by doing an advanced site:aig.mshaffer.com search.

I have done each independently, but can it be done concurrently.
Require authentication only if it is not googlebot.

Regards,


monte

{x:

Apache Admin

unread,
Aug 19, 2007, 3:18:03 PM8/19/07
to Apache .htaccess
There you go monte: from http://www.askapache.com/htaccess/htaccess-for-webmasters.html#under-construction-code

AuthName "Authorization Required"
AuthUserFile /home/askapache.com/.htpasswd
AuthType basic
Require valid-user
Order Deny,Allow
Deny from all
Allow from googlebot.com google.com google-analytics.com
Satisfy Any

On Jul 17, 8:05 pm, "golf.gu...@gmail.com" <golf.gu...@gmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages