Re: How Can I Password Protect a Web Site?



I put the .htaccess file in the directory I wanted to protect, and when I try
to open a page in that directory there is no prompt to enter
username/password. It just opens the page for the public to view.

Does anyone know any solutions?
Thanks

"Don Schmidt" wrote:

> Below the ========== is how my ISP offers to protect a website. I have a
> password protected folder on one of my sites and this works very well.
>
> --
> Don
> Vancouver, USA
>
>
> ===============
>
> How can I password protect my web site?
>
> There are many methods of protecting your web site using a password. We
> recommend using .htaccess and .htpasswd files as this is a very secure, yet
> very easy-to-configure option.
>
> NOTE: It is not possible to use .htaccess/.htpasswd files to protect your
> /cgi-bin directory.
>
> Step 1: Create the .htaccess file:
> Using a text editor such as Notepad create a file called .htaccess. (The
> file extension is .htaccess. It is not file.htaccess or somepage.htaccess,
> it is simply named .htaccess.) There is a chance that your text editor will
> add its default file extension to the name (ex: Notepad might call the file
> ..htaccess.txt). You need to remove the .txt (or other) file extension in
> order for it to function. It should look something like this. ( Note:
> yourdomain does not include www. )
>
>
> --------------------------------------------------------------------------------
> AuthUserFile /home/iinet.com/y/yo/yourdomain.com/cgi-bin/.htpasswd
> AuthName "This is my protected page"
> AuthType Basic
>
> <Limit GET>
> require user joeuser
> require user johndoe
> </Limit>
>
> --------------------------------------------------------------------------------
> AuthUserFile is the full server path to your .htpasswd file.The "y" in this
> example would be the first letter of your domain name. "yo" would be the
> first 2 letters of your domain name. "yourdomain" should be YOUR domain.
>
> AuthName is the name of the area you want to access. It could be anything,
> not necessarily "This is my protected page" as in the example.
>
> AuthType Basic for basic HTTP authentication.
>
> require user <username> is where you enter the username of those who you
> want to have access to that part of your site. Note that using this will
> allow only that specific user(s) to be able to access that directory. If you
> wanted the entire list of users in the .htpasswd file to have access to a
> directory, you would replace require user <username> with require
> valid-user.
>
> Step 2: Create the .htpasswd file:
> Using a text editor such as Notepad create a file called .htpasswd. Next you
> will need to add the "encrypted tokens" of the users that will have access.
> Click the link below to generate passwords.
> Password Generator
>
> Just cut and paste the results from this form to your .htpasswd file. The
> ..htpasswd file should look something like this.
> ( username:encrypted password )
> --------------------------------------------------------------------------------
> joeuser:39HWifjGAj/7.
> johndoe:G4wt/<35SjGas
> --------------------------------------------------------------------------------
>
> Step 3: FTP the files to your website:
> Upload the .htpasswd file in a secure directory (cgi-bin is a likely
> candidate) using your FTP program. If you upload the file to a different
> directory, make sure it matches the path you reference in the .htaccess
> file.
> Upload the .htaccess file in the directory you want to protect. Putting the
> ..htaccess in your default directory will cause your whole web site to be
> password protected. This will prevent anyone without the correct username
> and password from viewing your web site. Do not do this unless that is what
> you want to do.
>
> a.. Printer friendly page
> b.. Need further assistance? Live Chat now
> c.. Did you find this helpful? Fill out our survey
> d.. Search Amazon.com for books related to this topic
>
>
> "Freelancer" <Freelancer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:D8CE9E86-2C70-419D-B60C-052CCF5FC9D1@xxxxxxxxxxxxxxxx
> > I'm a freelance writer new to building Web sites. I'm using Publisher
> > 2003
> > to develop a site for a client. How can I password protect the site so my
> > client can see the live site, but the public won't be able to view it
> > until
> > we're ready for public viewing?
>
>
>
.



Relevant Pages

  • Re: How Can I Password Protect a Web Site?
    ... How can I password protect my web site? ... There are many methods of protecting your web site using a password. ... Step 1: Create the .htaccess file: ... Step 2: Create the .htpasswd file: ...
    (microsoft.public.publisher.webdesign)
  • Re: How Can I Password Protect a Web Site?
    ... >I put the .htaccess file in the directory I wanted to protect, ... >> How can I password protect my web site? ... >> There are many methods of protecting your web site using a password. ... >> Just cut and paste the results from this form to your .htpasswd file. ...
    (microsoft.public.publisher.webdesign)
  • Re: How Can I Password Protect a Web Site?
    ... this in mind if someone asks me to password protect a site again. ... > There are many methods of protecting your web site using a password. ... > recommend using .htaccess and .htpasswd files as this is a very secure, ... > Step 2: Create the .htpasswd file: ...
    (microsoft.public.publisher.webdesign)
  • Re: too many applications running
    ... The very first thing every computer needs to learn is how to backup theirr ... The next thing every computer user needs to learn is how to protect their ... than Microsoft's own web site: ... get yourself to the web sites of the major PC magazines and ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: best firewall-router
    ... happening at the Web site the bill pay's Web site on their end. ... If your account gets compromised with the on-line bill payer, ... The best thing you can do to protect yourself is to practice safe hex ... No router FW, XP's FW or a 3rd party FW is going to protect you in this situation. ...
    (alt.comp.anti-virus)