Prevent .git being served by Webserver
Securitything: Prevent .git-directory being served/exposed
这个提交包含在:
父节点
b1a535b259
当前提交
131abcce7d
共有 1 个文件被更改,包括 2 次插入 和 0 次删除
|
|
@ -10,3 +10,5 @@ RewriteRule ^(.*)$ /index.php?/$1 "[L,QSA,B= ?,BNP]"
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^(.*)$ /index.php?/$1 "[L,QSA,B= ?,BNP]"
|
RewriteRule ^(.*)$ /index.php?/$1 "[L,QSA,B= ?,BNP]"
|
||||||
|
|
||||||
|
RedirectMatch 404 ^/\.git
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用