Skip to content

Is it possible to protect a single page with htaccess/htpasswd? #132

Answered by glasen
glasen asked this question in Ask a question
Discussion options

You must be logged in to vote

@markseu:
Sounds good. I already wanted to extent my PHP-skills and a "protected site"-feature sounds like a nice extension to Yellow.

BTW:

I found a solution for my problem. It is possible to protect a specific URL with htaccess:

AuthType Basic
AuthName "Restricted Area"
AuthUserFile /home/sgls22/public_html/.htpasswd
Require valid-user
SetEnvIf Request_URI "(vorlesungen/skriptsprachen)$" deny
Deny from env=deny
Satisfy any

Replies: 0 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by annaesvensson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants