Created
January 12, 2024 20:31
-
-
Save danielneis/508f60fb0f25cbff4442f7bc46e978db to your computer and use it in GitHub Desktop.
Bloquear acesso a arquivos do Moodle
This file contains hidden or 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
<Directory /var/www/html/moodle> | |
Options -Indexes | |
</Directory> | |
<Directorymatch "(^/.*/\.git/|^/.*/\.github/|fixtures|behat)"> | |
Order deny,allow | |
Deny from all | |
</Directorymatch> | |
<Filesmatch "(.stylelintrc|composer.json|composer.lock|upgrade.txt|environment.xml|install.xml|readme_moodle.txt|readme.txt|README.txt|README.md|upgrade.txt|phpunit.xml.dist|.gitattributes|.gitignore)"> | |
Order deny,allow | |
Deny from all | |
</Filesmatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment