|
| |
|
|
adman_9000
Posts: 1 Joined: 12/19/2004 Status: offline
|
protecting folder access - 12/19/2004 15:32:14
Hi, Don't know if this is a simple question to answer or not but here goes.. I'm currently putting together a site which incorporates an open-source php forum and a folder containing images and files uploaded by members which can only be viewed by other members. I need a way to prevent access to this folder by anyone who isn't logged in to the website. I could probably use htaccess and have htpasswd updated whenever someone new joins but then they'd have to re-enter their details to get into the folder. Or I could put the folder above the root directory & use PHP readfile() to view the files, but would it be a bad idea to have people uploading there?
|
|
|
|
Giomanach
Posts: 6136 Joined: 11/19/2003 From: England Status: offline
|
RE: protecting folder access - 12/28/2004 21:01:58
Welcome To Outfront I'm afraid there is no sure-fire way of doing this. The only possible option would be to use CHMOD, but then that is very restrictive. Sorry!
_____________________________
|
|
|
|
BobbyDouglas
Posts: 5479 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: protecting folder access - 12/28/2004 22:28:13
First thing I would do is turn indexing off on the images folder. Also, why couldn't you just use cookies and give access to the folder through that? It is like hiding a forum for non registered users. It will be hard to do, and cost quite a bit, but if you really need it, I think it can be done...
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|