Skip to content

Instantly share code, notes, and snippets.

@opi
Created March 5, 2012 16:04
Show Gist options
  • Save opi/1979024 to your computer and use it in GitHub Desktop.
Save opi/1979024 to your computer and use it in GitHub Desktop.
Deny acces to txt files on drupal (CHANGELOG.txt, ...) (by @GoZOo)
Les fichiers TXT ne doivent pas être lisibles. Ajouter au .htaccess :
<Files *\.txt>
order allow,deny
deny from all
</Files>
<Files robots\.txt>
order allow,deny
allow from all
</Files>
Dans le fichier sites/default/files/.htaccess, autoriser les .txt :
<Files *\.txt>
order allow,deny
allow from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment