Reputation: 41919
What code could I put in an htaccess file that would prevent anyone from being able to access sensitive information (i.e. passwords etc) in another file. Pretend this other file is named "passwords.php"
Upvotes: 0
Views: 68
Reputation: 21357
I believe (but haven't tested):
<File passwords.php>
Deny from all
</File>
Upvotes: 1