Security - htaccess

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Security - htaccess

Postby alexillsley » 12. November 2006 19:31

I want to protect my some of webpages hosted my xampp using the same method the xampp folder is protected by.

I have seen that xampp folder is protected using an htaccess and the users / passwords are stored in xampp.users file .

I have made an htacess refrencing the file test.users and a made a php script to write the test.users file which writes the username and password but as the passwords are encrypted i do not know how to encrypt at all.

How can i encrypt the password so that it protects a folder properly?

Thanks,
Alex
alexillsley
 
Posts: 3
Joined: 12. November 2006 19:12

Re: Security - htaccess

Postby Izzy » 12. November 2006 22:27

alexillsley wrote:How can i encrypt the password so that it protects a folder properly?

You use xampp\apache\bin\htpasswd.exe in a command line console Start/Run.../cmd.exe
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby alexillsley » 12. November 2006 22:37

Thanks, how can i make a php encrypt it? i need to make a webpage to add users?

By the way that program did not work :? it said
C:\Program Files\xampp\apache\bin\htpasswd.exe is not a valid win32 appilcation!
alexillsley
 
Posts: 3
Joined: 12. November 2006 19:12

Postby Izzy » 12. November 2006 23:00

alexillsley wrote:By the way that program did not work :? it said
C:\Program Files\xampp\apache\bin\htpasswd.exe is not a valid win32 appilcation!

What said...
C:\Program Files\xampp\apache\bin\htpasswd.exe is not a valid win32 appilcation!


If you are having difficulties understanding how to use the command prompt then I put together a few links to little progs that may help you out:
http://community.apachefriends.org/f/viewtopi ... 8827#88827

Try using Google for your php question. I came accross this using Google but there were many more pages returned:
http://koivi.com/php-http-auth/
The search term I used was:
encryption htaccess and htpasswd using php
You could try keywords to reflect more of what you are looking for.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby WorldDrknss » 13. November 2006 20:42

Members and guest visitors to these forums should exercise extreme caution when using unofficial third party XAMPP help sites. You should use the XAMPP help files and facilities available from the official ApacheFriends web site, XAMPP Tutorials and from within the various configuration files in the form of item comments.
http://wdguides.org - XAMPP Tutorials & MORE!!!!
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 140 guests