Page 1 of 1

Protecting the port 80

PostPosted: 04. January 2011 01:16
by unknown1
I need to Protect My index page with a password But how do i do that???

Re: Protecting the port 80

PostPosted: 04. January 2011 01:20
by Altrea
Your topic is misleading.

There are several possibilities to password protect a site.
It depends on the reasons why, against what and what you want exactly protect. After that we can see whats the right protection for you.

Re: Protecting the port 80

PostPosted: 04. January 2011 01:21
by unknown1
I just need it Protected Cause I'm Developing a CMS and i cant let anyone visit without a password

Re: Protecting the port 80

PostPosted: 04. January 2011 01:24
by Altrea
So you are the only person who needs access to the site?
Than you should have the site in it's own folder and use .htaccess with a HTTP authentification as protection.
Thats the easiest way.

Re: Protecting the port 80

PostPosted: 04. January 2011 01:31
by unknown1
Yeah! But i also want beta tester to test my Site out i dont want Just Random People Able to access it

Re: Protecting the port 80

PostPosted: 04. January 2011 01:36
by Altrea
You can simply give the beta testers the user and password to the site, or create their own username password combination in the htpasswd file.
Do you know any disadvantages for this?

Re: Protecting the port 80

PostPosted: 04. January 2011 02:26
by unknown1
Nope i just want it to be protect

Re: Protecting the port 80

PostPosted: 04. January 2011 02:36
by Sharley
You could use the tools in this link to help you with .htaccess and .htpasswd file creation:
http://www.htaccesstools.com/

Also there are tools in the apache\bin folder that would do the job but much easier to use the above linked files.

You would normally put the .htaccess file in the root folder of the web site you wish to password protect and the .htpasswd file in a non public accessible folder like \xampp\security.

Google may find other helpful tools for this kind of work.

Best wishes and good luck.