Leahcim
Leahcim

Reputation: 41919

htaccess to provide security

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

Answers (1)

mgiuca
mgiuca

Reputation: 21357

I believe (but haven't tested):

<File passwords.php>
    Deny from all
</File>

Upvotes: 1

Related Questions