Posted on 2006-03-30
How would one go about protecting a folder on a webserver using PHP? I'm not able to use .htaccess for some reason on the servers I use for hosting my website. I'm using GoDaddy.com's package and that seems to not let me use .htaccess. Maybe I'm using it wrongly or something. But is this a fact, that GoDaddy doesn't accept .htaccess?
Anyway, I'd like to be able to have a simple login screen where poeple login with a username/password and it gives them access to the folder+links in the folder that has pages in it (and all it's subfolders). Also, it shouldn't let people surf directly to a link in the folder (eg. http://www.site.com/admin/loggedin.php)
Can anyone help me with this problem?