I'm trying to prevent users from reading any of my scripts, which live in their own directory, using .htaccess.
My file consists of the following:
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName DenyViaWeb
AuthType Basic
<Limit GET>
order allow, deny
deny from all
</Limit>
It works fine, but I get a "500 Internal Server Error" message if I try to access one of the files. Shouldn't I be getting a different message - access denied or something?
I tried without the first four lines with the same result.
Also, wondering if limiting "GET" is all I need to do?
Out of curiosity, what method does PHP use to include files? The Apache manual suggests <LIMIT EXCEPT> is a safer way to go than <LIMIT>, since it restricts everything except specified methods.
Note that I'm not trying to provide password-protected access or anything, just keep people from reading any of the files.
Thanks,
Bob