FreewayTalk

billy kimmel

15 Jan 2021, 10:21 pm

[Pro] Password Protected Page

I want to protect with a password a specific page on my website. I want to use htaccess I’ve tried setting this up but am not successful.

Here is my code:

AuthType Basic AuthName “restricted area” AuthUserFile /http://www.smartytest.com/Carol/clients.php/.htpasswd require valid-user

Yes I have a htpasswds file

The page I want to protect is clients.php

Anyone?

Billy

waltd

15 Jan 2021, 11:51 pm

Here’s a set of directions to either protect a single file, multiple files, or a directory. (I thought that this could only work with a directory, not a single file. You learn something every day.)

https://www.hostwinds.com/guide/password-protect-files-directories-htaccess/

Walter

On Jan 15, 2021, at 5:21 PM, billy kimmel <[email protected]> wrote:

I want to protect with a password a specific page on my website. I want to use htaccess I’ve tried setting this up but am not successful.

Here is my code:

AuthType Basic AuthName “restricted area” AuthUserFile /http://www.smartytest.com/Carol/clients.php/.htpasswd require valid-user

Yes I have a htpasswds file

The page I want to protect is clients.php

Anyone?

Billy

Freeway user since 1997

http://www.walterdavisstudio.com