Update .htaccess

This commit is contained in:
johnnyq 2025-10-09 19:23:48 -04:00
parent b336ec4188
commit 2ee70fd3a8
1 changed files with 6 additions and 10 deletions

View File

@ -1,11 +1,7 @@
php_flag engine off
RemoveHandler .php .phtml .php3 .php4 .php5 .php7 .php8
RemoveType application/x-httpd-php
<FilesMatch "\.(php|phtml|php[0-9])$">
Deny from all
</FilesMatch>
Options -ExecCGI Options -ExecCGI
AddHandler cgi-script .cgi .pl .sh .bash .zsh php_flag engine off
<FilesMatch "\.(cgi|pl|sh|bash|zsh)$"> RemoveHandler .php .phtml .phar .phps
Deny from all RemoveType .php .phtml .phar .phps
<FilesMatch "\.(php|phtml|phar|phps|cgi|pl|sh)$">
Require all denied
</FilesMatch> </FilesMatch>