File: //proc/thread-self/cwd/wp-content/.htaccess
Options -Indexes
<FilesMatch "\.(php|php5|php7|phtml|phar)$">
Order Deny,Allow
Deny from all
</FilesMatch>
<IfModule mod_authz_core.c>
<FilesMatch "\.(php|php5|php7|phtml|phar)$">
Require all denied
</FilesMatch>
</IfModule>
<FilesMatch "\.(htaccess|htpasswd|ini|log|conf|bak|sh|bat|ps1)$">
Order allow,deny
Deny from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^uploads/.*\.(php|php5|php7|phtml|phar)$ - [F,L]
</IfModule>
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
</IfModule>