password protect a file not directory

<FilesMatch mitglieder.php>
AuthType Basic
AuthName "Mitglieder Bereich"
AuthUserFile /path/.htpasswd
require valid-user
</FilesMatch>

source

Leave a Reply