You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2020/08/04 06:30:38 UTC

[incubator-echarts-website] branch asf-site updated: fix: prevent from visiting .git

This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 37a9c84  fix: prevent from visiting .git
37a9c84 is described below

commit 37a9c84f72f054acf3d8b5d92257a0fe5cfbf636
Author: 100pah <su...@gmail.com>
AuthorDate: Tue Aug 4 14:14:25 2020 +0800

    fix: prevent from visiting .git
---
 .htaccess | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.htaccess b/.htaccess
index b017eba..8ecbd37 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,3 +1,7 @@
+RedirectMatch 404 /\.git
+RedirectMatch 404 /\.gitignore
+RedirectMatch 404 /\.htaccess
+
 Header set Access-Control-Allow-Origin "https://echarts.apache.org"
 Header set Access-Control-Allow-Methods: "*"
 Header set Access-Control-Allow-Headers: "*"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org