.htaccess /includes, Sucuri vs. ww.wp.xz.cn ?
-
Hello
I recently discovered an error after upgrading to WP 5.2, Investigating it lead me to sites talking about a hack. And yes, i found some extra files in the /includes dir.
Then on to protecting it. Sucuri does it one way and ww.wp.xz.cn tells another story. Which is the better and what’s the difference ?
This is Sucuri: Hardening via the plugin
——<FilesMatch "\.(?i:php)$"> <IfModule !mod_authz_core.c> Order allow,deny Deny from all </IfModule> <IfModule mod_authz_core.c> Require all denied </IfModule> </FilesMatch> <Files wp-tinymce.php> <IfModule !mod_authz_core.c> Allow from all </IfModule> <IfModule mod_authz_core.c> Require all granted </IfModule> </Files> <Files ms-files.php> <IfModule !mod_authz_core.c> Allow from all </IfModule> <IfModule mod_authz_core.c> Require all granted </IfModule> </Files> ------This is ww.wp.xz.cn: https://ww.wp.xz.cn/support/article/hardening-wordpress/
——# Block the include-only files. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / 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] </IfModule> -------All the best
Carsten, Denmark
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The topic ‘.htaccess /includes, Sucuri vs. ww.wp.xz.cn ?’ is closed to new replies.