diff options
author | Izzy Galvez <i@igalvez.net> | 2015-10-26 18:15:52 +0300 |
---|---|---|
committer | Izzy Galvez <i@igalvez.net> | 2015-10-26 18:15:52 +0300 |
commit | f6b02e8ee1e22d395ea1c2d556d8bc95610cac9c (patch) | |
tree | 770f9019199151cf15ffb544054e0ac3eb609e2d | |
parent | ad5d091292c4661709a2e79f466df39dad1d02c7 (diff) |
throw a 404 error in place of 403 forbidden for .logs and .git folder/files. This is more secure.
-rwxr-xr-x | .htaccess | 3 | ||||
-rw-r--r-- | .logs/.htaccess | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -1,3 +1,6 @@ +RedirectMatch 404 /\.git +RedirectMatch 404 /\.logs + # Disable index.html per http://serverfault.com/a/434056 # If running Apache 2.4, you can set the following instead: # DirectoryIndex disabled diff --git a/.logs/.htaccess b/.logs/.htaccess deleted file mode 100644 index 5a928f6..0000000 --- a/.logs/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Options -Indexes |