Browse Source

Protection app_dev décommenté (oublié)

bastien 12 years ago
parent
commit
dbee3b06de
1 changed files with 9 additions and 9 deletions
  1. 9 9
      web/app_dev.php

+ 9 - 9
web/app_dev.php View File

@@ -1,14 +1,14 @@
1 1
 <?php
2 2
 
3
-//// this check prevents access to debug front controllers that are deployed by accident to production servers.
4
-//// feel free to remove this, extend it, or make something more sophisticated.
5
-//if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
6
-//    '127.0.0.1',
7
-//    '::1',
8
-//))) {
9
-//    header('HTTP/1.0 403 Forbidden');
10
-//    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
11
-//}
3
+// this check prevents access to debug front controllers that are deployed by accident to production servers.
4
+// feel free to remove this, extend it, or make something more sophisticated.
5
+if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
6
+    '127.0.0.1',
7
+    '::1',
8
+))) {
9
+    header('HTTP/1.0 403 Forbidden');
10
+    //exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
11
+}
12 12
 
13 13
 require_once __DIR__.'/../app/bootstrap.php.cache';
14 14
 require_once __DIR__.'/../app/AppKernel.php';