Jump to content

Password Protected Folder


benaust

Recommended Posts

Hi There Guys

 

I am trying to make a folder which the files should be only accessible through php upload script in that folder and PHP force download script.

 

I like to put PDF, Excel and Word files in there. And staffs that have been registered could download or upload which are registered in mysql.

 

I have tried htaccess htpasswd but I have no idea now. None worked for me.

 

I tried to make a custom htaccess login with php and that didn’t work either.

 

Client like the fodder to be only accessible with registered staff and not through internet openly.

 

Thanks Guys, any help appreciated.  :D :-\ ???

Link to comment
https://forums.phpfreaks.com/topic/137303-password-protected-folder/
Share on other sites

I believe .htaccess should be the one u r looking for, because PHP cannot protect files that are in the directory, but htaccess can protect the entire directory that u place the files in..

See the second post in this thread: http://netfriending.co.cc/forum/viewthread.php?threadid=26

I am not sure why it doesnt work for u, if u still have trouble, let me know, id be glad to help :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.