]> git.wh0rd.org Git - tt-rss.git/commitdiff
protect .htaccess and config.php against accessing by strangers
authorHeiko Adams <heiko.adams@gmail.com>
Wed, 12 Aug 2015 19:09:35 +0000 (21:09 +0200)
committerHeiko Adams <heiko.adams@gmail.com>
Wed, 12 Aug 2015 19:09:35 +0000 (21:09 +0200)
.htaccess

index 22b33f000f48df6702965e0ee3d66fbe32e28671..bdf8c201554d20eccb491ab7c9c387c65d1a5857 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,3 +1,16 @@
 AddType image/svg+xml svg
 AddType image/svg+xml svgz
 
+# PROTECT all htaccess files
+<Files ~ "^[\._]ht">
+  Order Allow,Deny
+  Deny from all
+  Satisfy All
+</Files>
+
+# PROTECT config.php
+<files config.php>
+  Order Allow,Deny
+  Deny from all
+  Satisfy all
+</files>
\ No newline at end of file