S
S
snovazabilparol2017-10-03 23:55:44
PHP
snovazabilparol, 2017-10-03 23:55:44

Analogue of open_basedir only faster?

Good day. Actually, sabj.
More:
It is necessary to restrict PHP's access to the server's file system (specifically, to prohibit leaving the home directory).
This can be quite simply implemented through the open_basedir directive , however, in this case, the scripts start to work slower than usual, in particular, some users claim that the delay in queries to the database is more than a second per 1 request.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
just_hank_moody, 2017-10-09
@just_hank_moody

As an option - Build a docker container in which the php project will run. Even if someone tries to go beyond the home directory through PHP, he will not see anything, because the scripts work inside the container.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question