Yes, directory indexing can be disabled on WordPress by editing the .htaccess file and adding the line Options -Indexes to enhance site security.| GS Plugins
Download Notepad++ v8.7.4| notepad-plus-plus.org