# Uploaded pictures only. Nothing in this folder may ever be executed.
#
# Two directives here are module-specific, and an unknown directive in
# .htaccess answers EVERY request in this folder with 500. On real hosting
# (LiteSpeed, PHP-FPM, CGI) there is no mod_php, and on old Apache 2.2 there is
# no mod_authz_core - so both are wrapped and a 2.2 fallback is given.
<IfModule mod_php.c>
  php_flag engine off
</IfModule>
<IfModule mod_php7.c>
  php_flag engine off
</IfModule>
<IfModule mod_php5.c>
  php_flag engine off
</IfModule>

RemoveHandler .php .phtml .php3 .php4 .php5 .php7 .phps
AddType text/plain .php .phtml .php3 .php4 .php5 .php7 .phps

<FilesMatch "\.(?i:php|phtml|php[3-7]|phps|pl|py|cgi|asp|aspx|jsp|sh|htaccess)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>

Options -Indexes
