Question

How to jail php in directorty & restrict access from Upper directory?

  • Posted September 20, 2018
  • PHP

i.e. I have: example.com i have there custom php filebrowser ( /home/runcloud/webapps/example.com/filebrowser.php )

that can access all in my vps (upper-directories, files, anything almost).

How can i restrict php to disallow access to upper directories? so, it can only go up to maximum i.e. webapps

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

i’ve found some stackoverflow links. tnx.