Skip to content
Snippets Groups Projects
Commit bb16c54a authored by ale's avatar ale
Browse files

Harden htaccess for /wp-includes/ direct access

parent da2813ca
No related branches found
No related tags found
1 merge request!54Harden htaccess for /wp-includes/ direct access
......@@ -27,6 +27,13 @@ RewriteRule ^gallery/[0-9]+/(.*)$ wp-includes/ms-files.php?file=2010/08/$1 [L]
RewriteRule ^resource/[^/]+/preview/(.*)$ wp-includes/ms-files.php?file=2010/08/$1 [L]
RewriteRule ^resource/[^/]+/download/(.*)$ wp-includes/ms-files.php?file=2010/08/$1 [L]
# hardening of wp-includes
RewriteRule ^wp-admin/includes/ - [F,L]
RewriteRule !^wp-includes/ - [S=3]
RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
RewriteRule ^wp-includes/theme-compat/ - [F,L]
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
AddDefaultCharset UTF-8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment