.htaccess 454 B

123456789101112131415
  1. # Admin area – only PHP files are served; all others are blocked.
  2. # Authentication is handled by admin/auth.php (PHP session), NOT HTTP Basic Auth,
  3. # so no AuthType directive is needed here.
  4. Options -Indexes
  5. # Deny access to everything by default, then selectively allow PHP files
  6. <FilesMatch "\.php$">
  7. Require all granted
  8. </FilesMatch>
  9. # Deny everything that is NOT a .php file
  10. <FilesMatch "^(?!.*\.php$)">
  11. Require all denied
  12. </FilesMatch>