Can anyone tell why in all plugins, the index.php
is empty? What's the point of it, i can't understand, as it doesn't add any security at all to website, and makes the plugin structure "1-file" more.
p.s. Themes do have index.php
,
It helps to prevent the contents of the plugins folder from being listed if someone was to browse to it. So, yes, it does provide a form of security.
If someone browses to the plugin folder with their web browser, it will just display a blank page instead of a directory listing.