How to close /wp-includes listing?

Found on one of my sites by clicking on the address http://сайт.ru/wp-includes
listing files in directory

276bcddec9744121aa7802ff470e2c7d.pngbut on the other site at this address issues a message of this type

dc7cb3bfb7b546d4be49d2e225005270.png

To what consequences can lead the open directory for viewing?
And maybe someone will tell me how to close? might be enough for an empty file index.html in this folder?
July 2nd 19 at 17:26
3 answers
July 2nd 19 at 17:28
Solution
Empty file index.php in the directory or in code .htaccessin the root directory of the website:
# Disallow directory view
Options-Indexes


I can add:
# Prohibit the display of server responses
ServerSignature Off
# Prohibit the display of server responses
ServerSignature Off

not working, 403 error shows

I would also like to clarify if the folder remains open, it affects the security of the site? - Johnny commented on July 2nd 19 at 17:31
: What do you think, if all will see that you are in the apartment, it will affect the safety of your property? - burley.Wunsch80 commented on July 2nd 19 at 17:34
July 2nd 19 at 17:30
By the way, "empty" index.php in this directory was for these purposes, and someone had removed. Please be careful.
When you install the latest version of wordpress that file is not there - Johnny commented on July 2nd 19 at 17:33
July 2nd 19 at 17:32
Use plugin iThemes Security

Find more questions by tags WordPressHostinghtaccess