Skip to content

Instantly share code, notes, and snippets.

@danielneis
Created January 12, 2024 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielneis/508f60fb0f25cbff4442f7bc46e978db to your computer and use it in GitHub Desktop.
Save danielneis/508f60fb0f25cbff4442f7bc46e978db to your computer and use it in GitHub Desktop.
Bloquear acesso a arquivos do Moodle
<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