PDA

View Full Version : htaccess


Tanasja
10-03-2003, 06:41 AM
Q: Is it possible with PhpDig to search in files that are protected by .htaccess?

Charter
10-05-2003, 09:51 AM
Hi. If you want to search files protected by .htaccess, you could try to crawl the following:

username:password@domain.com

but personally I wouldn't recommend it.

Tanasja
10-10-2003, 02:02 AM
Can you tell me why not?

Charter
10-11-2003, 04:53 AM
Hi. I wouldn't do it because other people may be able to read the username and password if sent via plain text. If you are trying to crawl files in a .htaccess protected directory, maybe remove the .htaccess file, make the crawl, and then restore the .htacess file. That way the contents can be searched but when a user clicks a related link, they would get the prompted for a username and password. However, if the files in the .htaccess protected directory are for members only, and you do a crawl like suggested above, then it could be possible for non-members to read your protected content if they can find the files in the text_content directory.

Tanasja
10-11-2003, 06:29 AM
Thanks for your help so far.
I will keep on thinking for a solution.
Suggestions still welcome...