Browse Source

try some access restrictions

andre 5 years ago
parent
commit
02ba1e89c0
1 changed files with 0 additions and 4 deletions
  1. 0 4
      zimbraAddressAvailable.php

+ 0 - 4
zimbraAddressAvailable.php

@@ -1,8 +1,4 @@
 <?php
-define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) &&      strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');
-if(!IS_AJAX) {
-    die(print_r($_SERVER));
-}
 $pos = strpos($_SERVER['HTTP_REFERER'],getenv('HTTP_HOST'));
 if($pos===false) {
     die('Restricted access');