F
F
felony13twelve2019-11-23 16:21:01
htaccess
felony13twelve, 2019-11-23 16:21:01

How can I prevent the contents of a directory from being shown?

Moderators, I don't know what tags were needed, correct if anything))
How to disable access to this folder! Did on .htaccess then styles, pictures, etc. disappear. How else can you fix it? Or is it not important? Nothing will it harm the site, or hacking?
5dd9323aeec18278139414.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitriy G, 2019-11-23
@felony13twelve

Prevent folder browsing
Options -Indexes

D
DanielMcRon, 2019-11-23
@DanielMcRon

Click , you just had to google, then replace with the name of your folder

W
wisgest, 2019-11-23
@wisgest

But the ability to override this behavior in .htaccess can be disabled in the server settings by a directive, AllowOverrideor the server may not be Apache. There is a simple way out: place the index.html file (it can be empty).

Or is it not important? Nothing will it harm the site, or hacking?
In this case, it does not matter, there is nothing secret there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question