Page 1 of 1

Security - htaccess

PostPosted: 12. November 2006 19:31
by alexillsley
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

Re: Security - htaccess

PostPosted: 12. November 2006 22:27
by Izzy
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

PostPosted: 12. November 2006 22:37
by alexillsley
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!

PostPosted: 12. November 2006 23:00
by Izzy
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.

PostPosted: 13. November 2006 20:42
by WorldDrknss
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.