Block access to tests and .git via browser

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent e82597613a
commit 0ab3354186
  1. 3
      .htaccess

@ -52,3 +52,6 @@ RewriteRule ^badge/(\d{1,})/user/(\d{1,}) main/badge/issued_all.php?skill=$1&use
RewriteRule ^main/exercice/(.*)$ main/exercise/$1 [QSA,L] RewriteRule ^main/exercice/(.*)$ main/exercise/$1 [QSA,L]
# Support old URLs using the newscorm folder rather than lp # Support old URLs using the newscorm folder rather than lp
RewriteRule ^main/newscorm/(.*)$ main/lp/$1 [QSA,L] RewriteRule ^main/newscorm/(.*)$ main/lp/$1 [QSA,L]
# Deny access
RewriteRule ^(tests|.git) - [F,L,NC]

Loading…
Cancel
Save