mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-07-06 01:11:36 +00:00
11 lines
312 B
ApacheConf
11 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>
|