S
S
Soho2016-11-12 16:54:37
htaccess
Soho, 2016-11-12 16:54:37

How to close /wp-includes from listing?

I found on one of my sites by going to the address http://site.ru/wp-includes a
listing of files in the directory

276bcddec9744121aa7802ff470e2c7d.png

, but on other sites at this address it gives a message of this type

dc7cb3bfb7b546d4be49d2e225005270.png

. What are the consequences of an open directory for viewing?
And maybe someone will tell you how to close it correctly? perhaps an empty index.html file in this folder will suffice?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Edward, 2016-11-12
@focuspro

An empty index.php file in the directory or code in .htaccess , in the root directory of the site:

# Запрещаем просмотр директорий
Options -Indexes

You can also add:
# Запрещаем показ ответов сервера
ServerSignature Off

D
Denis Verbin, 2016-11-13
@rez0n

By the way, the "empty" index.php in this directory was just for these purposes, and someone deleted it. Be careful.

P
predatorscorpion, 2016-11-13
@predatorscorpion

Use the iThemes Security Plugin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question