.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 word!"
AuthType Basic
AuthUserFile /full/path/to/the/.htpasswd
require valid-user
</FilesMatch>
.htpasswd - generate with this online tool
A bejegyzés trackback címe:
Kommentek:
A hozzászólások a vonatkozó jogszabályok értelmében felhasználói tartalomnak minősülnek, értük a szolgáltatás technikai üzemeltetője semmilyen felelősséget nem vállal, azokat nem ellenőrzi. Kifogás esetén forduljon a blog szerkesztőjéhez. Részletek a Felhasználási feltételekben és az adatvédelmi tájékoztatóban.