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

September 20, 2018 475 views
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

1 Answer

i've found some stackoverflow links.
tnx.

Have another answer? Share your knowledge.