# ---------------------------------------------------------------------- # Security: Block access to backup and source files # ---------------------------------------------------------------------- Order allow,deny Deny from all Satisfy All # ---------------------------------------------------------------------- # Security: Hardening headers # ---------------------------------------------------------------------- Header set X-XSS-Protection "1; mode=block" Header always append X-Frame-Options SAMEORIGIN Header set X-Content-Type-Options nosniff # ---------------------------------------------------------------------- # Security: Block XMLRPC as it is deprecated # ---------------------------------------------------------------------- Order Allow,Deny Deny from all # ---------------------------------------------------------------------- # Security: Redirect author=n scans to prevent user enumeration # ---------------------------------------------------------------------- RewriteCond %{QUERY_STRING} author=([0-9]*) [NC] RewriteRule .* https://example.com/? [L,R=301]