viperjts10 Posted July 13, 2010 Share Posted July 13, 2010 Is it possible for users to view files which are not in the main public root directory which I've created? On my test server, if I type in the url with the ".." notation to go down a directory, I am able to go into my directories which are outside of the public directory. Is there a way to prevent this, or is there no better way to secure the files in the outside directories to prevent users from accessing them? Link to comment https://forums.phpfreaks.com/topic/207580-public-viewing-files-outside-of-the-main-public-directory/ Share on other sites More sharing options...
gwolgamott Posted July 13, 2010 Share Posted July 13, 2010 Are you testing this locally on that machine? I ask because if not on the actual machine (or otherwise remote connected to it) hosting it, you shouldn't be able to view anything outside of the web folders. Unless you've other folders in the web directory, and that's a matter of changing permissions. Link to comment https://forums.phpfreaks.com/topic/207580-public-viewing-files-outside-of-the-main-public-directory/#findComment-1085373 Share on other sites More sharing options...
viperjts10 Posted July 13, 2010 Author Share Posted July 13, 2010 Ok, thanks for the info. I suppose once I upload my files to the actual host, this won't be accessible because yes I'm testing on the same machine that I'm currently using, so it makes sense then. Link to comment https://forums.phpfreaks.com/topic/207580-public-viewing-files-outside-of-the-main-public-directory/#findComment-1085434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.