How do you password protect a web page?

How do I password protect a webpage?

I have a website that is fully accessible but would like to create some hidden pages for clients to access. These pages should be password protected so they are private.I don't necessarily need to have them encrypted or anythign fancy if that happens to be difficult.

I want to be able to load new information to these pages and I will email the people for them to check the new stuff.

How do I do this? I use dreamweaver and have no programming knowledge except basic HTML stuff.

Please help. Walk me through every step.

Additional Details

20 minutes ago

I use WIndows XP Professional SP2 and the server uses Linux.

It also states extra stuff-

It has Apache version 1.3.37 (UNIX)

Perl Version 5.8.5

I don't know any of that stuff how that works. I don't know what PHP is....I am not a programmer, I work on visual stuff so this is alllllllllllll new to me.

4 Answers

  • Anonymous
    1 decade ago
    Favorite Answer

    THis needs to be configured in the Web Application Server (For example IIS or Apache)

    Generally, there is a keyword like PROTECT that would invoke password checking routines.

    You will need to know how to configure a Web Application Server to make this happen, unless oyu want to do fancy programs to have your programs check and validate users.

    • Commenter avatarLogin to reply the answers
  • 1 decade ago

    put an ".htpasswd" file somewhere in the site containing the user and password in this format:


    then put an ".htaccess" file in the site root directory with the following content:


    AuthType Basic


    Require valid-user

    <Files .htaccess>

    order allow,deny

    deny from all


    of course this is not the safest method... for more documentation, search the web a little about the usage of those two files

    • Commenter avatarLogin to reply the answers
  • 1 decade ago

    Find a tutorial on how you edit your .htaccess file to pw protect pages. if the server uses cPanel, then you can do it there.

    • Commenter avatarLogin to reply the answers
  • Anonymous
    1 decade ago

    Sorry man. You kind of must learn PhP. It's not that hard if you know CSS.

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.