D
D
ddddd tttt2019-03-10 18:38:09
Apache HTTP Server
ddddd tttt, 2019-03-10 18:38:09

How to put a password on the page (link) and not the entire site .htpasswd?

How to put a password on the page (link) and not the entire site .htpasswd?
You need to close the link /web/api

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2019-03-10
@saboteur_kiev

put .htaccess specifically in /web/api

D
dodo512, 2019-03-10
@dodo512

SetEnvIf Request_URI ^/web/api$ blocked
Deny from env=blocked
Satisfy any

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile полный/путь/на_сервере/.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