| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jun 2006
Posts: 44
|
php login script
I have a quick question... I've got a webcam set up which uploads images via ftp to my site, however I need the page which displays this to be password protected. I've used a simple login script: Code:
It's quite important that this is very secure - my question is, how secure would this be? I'm guessing not hugely... If so has anybody got any suggestions of how to improve the security (prefferably without a great deal of work or expense!). Thanks. |
|
|
|
|
|
#2 (permalink) |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,363
|
Why not just use HTTP auth? That's what it's there for after all. Quick google turned up this little tutorial. |
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Jun 2006
Posts: 44
|
Unfortunately my web hosting provider doesn't seem to be allowing .htaccess (don't fully understand why as it's not been me dealing with them). Does anybody have any other ideas? Also can anybody explain what are the actual security issues involved with my previous php password protection? |
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Nov 2006
Posts: 7
|
PHP Code:
<br /> <h4>T&T Communications Workshop Camera Login</h4> </p> <form name="form" method="post" action="<?php $GoToLoginScript; ?>"> <div align="center"> <center> <table border="0" cellpadding="5" cellspacing="0"> <tr> <td><p>Username</p> </td> <td><input class="password" "type="text" title="Enter your Username" name="txtUsername" /></td> </tr> <tr> <td><p>Password</p> </td> <td><input class="password" type="password" title="Enter your password" name="txtPassword" /></td> </tr> </table> </center> </div> <p align="center"><input type="submit" name="Submit" value="Login" /></p> </form> |
|
![]() |