The Little Guy Posted January 14, 2007 Share Posted January 14, 2007 I let users upload php files, however I do not want them to be able to include or do anything with any files that are outside their directory. Example: [b]/mysite/username/public_html/users/bob/file.php[/b] I do not want bob to be able to access (include, mess with, anything) the file [b]/mysite/username/file.php or /mysite/username/public_html/file2.php[/b]. Link to comment https://forums.phpfreaks.com/topic/34182-disallowing-access-from-certain-directories/ Share on other sites More sharing options...
ToonMariner Posted January 15, 2007 Share Posted January 15, 2007 you either put .htaccess & .htpassword protection in plaace or you have some method to monitor via mysql and php.This would require you giving each memeber their own folder and only allowing them to include stuff in that folder. If you allow them to put php files in there then you must also ensure that any coed they put in it doesn't include files outside their directory.Good Luck. Link to comment https://forums.phpfreaks.com/topic/34182-disallowing-access-from-certain-directories/#findComment-160829 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.