Procházet zdrojové kódy

Secure the server: prevent the users from browsing/getting files from the data and log directories. With Apache, it is still a must to enable htaccess with the spec "AllowOverride All". The index.php files are here to prevent from browsing whatever the HTTP server config.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3675 a333f486-631f-4898-b8df-5754b55c2be0
romainq před 9 roky
rodič
revize
5a2f75f457
6 změnil soubory, kde provedl 22 přidání a 0 odebrání
  1. 1 0
      data/.htaccess
  2. 2 0
      data/index.php
  3. 8 0
      data/web.config
  4. 1 0
      log/.htaccess
  5. 2 0
      log/index.php
  6. 8 0
      log/web.config

+ 1 - 0
data/.htaccess

@@ -0,0 +1 @@
+Deny from all

+ 2 - 0
data/index.php

@@ -0,0 +1,2 @@
+<?php
+echo 'Access denied';

+ 8 - 0
data/web.config

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+  <system.web>
+          <authorization>
+                  <deny users="*" /> <!-- Denies all users -->
+          </authorization>
+  </system.web>
+</configuration>

+ 1 - 0
log/.htaccess

@@ -0,0 +1 @@
+Deny from all

+ 2 - 0
log/index.php

@@ -0,0 +1,2 @@
+<?php
+echo 'Access denied';

+ 8 - 0
log/web.config

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+  <system.web>
+          <authorization>
+                  <deny users="*" /> <!-- Denies all users -->
+          </authorization>
+  </system.web>
+</configuration>