K
K
Kirill Gorelov2016-01-27 23:13:08
PHP
Kirill Gorelov, 2016-01-27 23:13:08

File security on the server?

Hello. Maybe I asked not a very correct question, but still.
There is a site. It has a download folder.
Suppose this path sayt.ru/download/
This folder contains files and folders.
How can a cracker or just any not good person look through them and how to secure it?
Moreover, following this path, the server responds that there is no page. Why didn't the server just show a list of files in that folder? And is it possible to bypass this and how to avoid it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Defman21, 2016-01-27
@Defman21

Why didn't the server just show a list of files in that folder?

Because the corresponding function is disabled in nginx/apache.
If you want to hide something from the user - just store the files one level above the root directory of the site.

V
vertas52, 2016-01-27
@vertas52

htaccess + htpasswd to the rescue

T
Timur Sergeevich, 2016-01-27
@MyAlesya

Solve the settings of the server you are using!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question