• 0

Password-protected web page


Question

Hello,

I need to create a password-protected page within my website. ex: www.google.com/protected.html

I don't want my domain to be password-protected, just a page.

What codes should I need to do that?

I want to get a prompt like this one:

<snipped>

Please keep it simple, and easy for me to implement it... since I am not that good in web scripting and programming.

Thanks a lot

VipWoody

Edited by Colin-uk
password prompt removed.
Link to comment
https://www.neowin.net/forum/topic/599464-password-protected-web-page/
Share on other sites

10 answers to this question

Recommended Posts

  • 0

I've been told that I can do this with a .htaccess and a .htpasswd file.

for .htaccess:

AuthName "Restricted Area"

AuthType Basic

AuthUserFile www.wadih-ghsoubi.com/!@#$%/.htpasswd

AuthGroupFile /dev/null

require valid-user

for .htpasswd:

admin1:AC51NHM5rlith

I did what was needed, and I got the prompt pop-up when accessing /extra, but it is not accepting my username and password, even though i am sure that the username and password im typing in is correct.

What do you think is the problem?

  • 0
  mentalindustries said:
The image you posted in your first post is now asking me for the sites username and password.

even if i put the username and password, it keeps on asking again. it doesn't work.

and i am sure that the username and password typed in are 100% correct.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.