V
V
Vasily Nezhalkin2014-10-21 16:53:54
PHP
Vasily Nezhalkin, 2014-10-21 16:53:54

How to deny access to the folder which is above?

Let's say there is a folder called "here" and located at the address site/something/somewhere/here
There are files in the "here" folder. Including a very vulnerable program. How to make it so that it is not possible to access the folders located above the "here" folder - namely, the "something" "somewhere" and "parent directory of the site" folders

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2014-10-21
@FanatPHP

If I understood the task correctly, then we put the “vulnerable program” somewhere in a virtual machine, which, it’s not a pity, with its own web server, and broadcast requests to it with a curl.
But the answer is very approximate, since it is completely unclear from the question who needs to be protected from whom. It seems that both the author and the answerers have a hard time distinguishing a website visitor from the server account under which the web server is running.

U
ugodrus, 2014-11-06
@ugodrus

In principle, you can try using Files or FilesMatch by the reverse method. But in my opinion it's better to just shift the protected content.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question