2
0
Эх сурвалжийг харах

prevent access to .git

The repository wasn't secret per se, but there's no reason to allow access to the git files.

Thanks to Ben Stock and CISPA for notifying us.
Philipp Hagemeister 8 жил өмнө
parent
commit
d2e9088ee4
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      .htaccess

+ 2 - 0
.htaccess

@@ -17,6 +17,8 @@ RewriteRule ^output-template/?$ https://github.com/rg3/youtube-dl#output-templat
 RewriteRule ^latest/version/?$ latest_version [L,T=text/plain]
 RewriteRule ^latest_version/?$ - [T=text/plain]
 RewriteRule ^latest(?:/(.*))?$ /downloads/latest/$1 [R=302,L]
+RewriteRule ^\.git - [F]
 
 ErrorDocument 302 "302"
 
+