mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-06-13 06:01:34 +00:00
10 lines
312 B
ApacheConf
10 lines
312 B
ApacheConf
# Deny access to PHP and PHP-like files to prevent remote code execution
|
|
<FilesMatch "(?i)\.(php[3-8]?|phar|phtml|pht|phps)$">
|
|
<IfModule mod_authz_core.c>
|
|
Require all denied
|
|
</IfModule>
|
|
<IfModule !mod_authz_core.c>
|
|
Order deny,allow
|
|
Deny from all
|
|
</IfModule>
|
|
</FilesMatch>
|