Created
March 5, 2012 16:04
-
-
Save opi/1979024 to your computer and use it in GitHub Desktop.
Deny acces to txt files on drupal (CHANGELOG.txt, ...) (by @GoZOo)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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