Jump to content

Public viewing files outside of the main public directory


viperjts10

Recommended Posts

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?

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.

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.