J
J
jony7212021-06-23 22:02:06
PHP
jony721, 2021-06-23 22:02:06

How to make localhost secure?

Often you have to download God knows what client sites and run them on your own. Site files are divided into folders and are located in the htdocs folder. I think so, if there is malicious code, then it can do such miracles for me.

Question:
How to create a sandbox for each project? That is, so that scripts that run in the project_1 folder are limited to the project_1 folder. At the same time, scripts that are running in subfolders (for example, project_1/subfolder/subfolder ) could go up to the root, that is, project_1

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lillipup, 2021-06-23
@jony721

Use docker

R
Romi, 2021-06-23
@romicohen

https://habr.com/ru/post/309556/
or just look in the direction of https://itelmenko.ru/working-environment/laradock/ anyway, then you will come to this))

L
lolrofl01, 2021-06-24
@lolrofl01

Or vagrant or docker. If there are many projects, a vagrant is better. It is more convenient to start everything at once and work. If 1 project at a time, then docker is better, it will gobble up fewer resources.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question