Skip to content

Instantly share code, notes, and snippets.

@annelyse
Last active August 3, 2023 15:38
Show Gist options
  • Save annelyse/decaed0e2a2d8319f7e65c350cdb722c to your computer and use it in GitHub Desktop.
Save annelyse/decaed0e2a2d8319f7e65c350cdb722c to your computer and use it in GitHub Desktop.
#15 – Bloquer l’accès au fichier readme.html
#Les fichiers readme.html et license.txt peuvent révéler des informations sur la version de WordPress utilisée sur votre site. Utilisons le fichier .htaccess afin d’en bloquer l’accès :
<files readme.html>
deny from all
</files>
<files license.txt>
deny from all
</files>
# Deny access to all .htaccess files
<files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfy all
</files>
//htacces inside wpuplaod :
deny all execution php
<Files ~ ".ph(?:p[345]?|t|tml)$">
Order Deny,Allow
Deny from All
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment