V
V
vixon2014-10-28 16:58:41
htaccess
vixon, 2014-10-28 16:58:41

How to block access using htaccess not to a folder, but to a specific file?

How to block access using htaccess not to a folder, but to a specific file?
For example, a file at the root / abc.html
Who will tell you?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Zhgulev, 2014-10-28
@e_s_l

did that mean? htaccess should be next to the file

<Files "abc.html">
Order Allow,Deny
Deny from all
</Files>

V
vixon, 2014-10-28
@vixon

Not really.
Already decided by myself.
For those who are interested.
AuthType Basic
AuthName "Private zone."
AuthUserFile /var/www/password file path/.htpasswd
require valid-user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question