.htaccess - protects only index.php eiter accessed with full path: http://somewhere.com/folder/index.php or accessed with parent folder: http://somewhere.com/folder/
Does not protect any other files only index.php
.htaccess
<FilesMatch "^(index\.php)?$">AuthName "You didnt say the magic…