Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Print
Topic: How to Password a directory  (Read 1567 times)
« on: December 07, 2004, 06:20:36 PM »
PointFive
Guest

I need help. How can i put a password on just one of the folders of my FTP site so that only people with the password can get into it. Somebody please help me.
Report to moderator   Logged

 
« Reply #1 on: December 07, 2004, 06:36:41 PM »
adragons
Guest

you need .htaccess
But those are not enabled on freehost, you can password protect each page however.
Report to moderator   Logged
« Reply #2 on: December 07, 2004, 06:47:31 PM »
PointFive
Guest

how?Huh??/
Report to moderator   Logged
« Reply #3 on: December 07, 2004, 06:58:59 PM »
adragons
Guest

If you need a session type thing like what forums and various other sites use where you login and you password/name is kept until you log out so your password is not asked for on each page (inhale) visit http://ca3.php.net/session for more info

if you dont need 'heavy duty'

<?
$pass $_GET['pass'];

if(
$pass=="password"){
echo(
"This is the accessed part of your page with the right password :rolleyes: ");
}else{
echo(
"You have entered the wrong password :mad: ");
}
?>
<form method="get">
<input name="pass">
<input type="submit">
</form>
Report to moderator   Logged
 
Pages: [1]
Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC