Advertisement
rAthus

[Wordpress] harden "/wp-content" and "/wp-includes" folders

Jan 6th, 2016
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # Ajouter à la racine de "/wp-content" et "/wp-includes" un fichier ".htaccess" contenant le code suivant :
  2. <FilesMatch "\.(?i:php)$">
  3. <IfModule !mod_authz_core.c>
  4. Order allow,deny
  5. Deny from all
  6. </IfModule>
  7. <IfModule mod_authz_core.c>
  8. Require all denied
  9. </IfModule>
  10. </FilesMatch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement