xpowereddragonz
06-18-2003, 12:35 AM
hey, i am asking how to make a pssword...not like the ones that are cheep.(as in you can go to view soucre and find the password)
Is there a way?
If there is no way, thank you anyways.
do a search for "htaccess" and "htpasswd" and that will cover most of it.
LOL. htaccess is stupid.
Make a page thats going 2 have the login box on it. Put this on it:
<form name=login action="/password.php" method=post>
Password:
<input type=password name=password style="width:150">
<input type=submit style="width:134; background-color: #red;" target="_self" value="GO!"></td>
</form>
Then, make a page called password.php. Put this on it:
<?PHP
$password = $_POST['password'];
$good="http://www.good.com";
$bad="http://www.bad.com";
if($password == "PASSWORD GOES HERE")
{
Header ("Location: $good");
}
else{
Header ("Location: $bad");
}
?>
xpowereddragonz
06-22-2003, 01:02 AM
it does not work..
thx anyways
Dude128
06-22-2003, 01:53 AM
are you sure your host supports PHP?
if it does, check with them on what file extension you need to use- with some configurations you may need to use .php3, .php4, or .phtml instead of .php on all files that contain PHP code.
kicker91
06-22-2003, 09:57 PM
if you know php, i think you can easily figure out the password by going to the page...and anyway i would recommend gatekeeper for passwords. you can get it on the javascript source (http://www.javascript.internet.com). just search the site :D HTH
Dude128
06-23-2003, 02:30 AM
how can you "easily figure out the password by going to the page"?
when you view the source of that page, you won't see the PHP code- it will have been parsed, and HTML would be sent back to the browser. that's why PHP is more secure than something like JavaScript, because the password is not available in the code, if that's what you meant.
bellportal
06-23-2003, 01:33 PM
I think that '.htaccess' is your best bet, but check with your host that it is supported. As suggeted, try searching for this.
HTH,
xpowereddragonz
06-23-2003, 05:46 PM
I dont know if the page has PHP
it is Brinkster?
Do you guys know?
bellportal
06-28-2003, 03:29 PM
Send an e-mail to Brinkster's support people and check any documentation you have.
HTH,