Browse Source

add protection

andre 4 years ago
parent
commit
9f5d3e9705
1 changed files with 2 additions and 2 deletions
  1. 2 2
      admin.php

+ 2 - 2
admin.php

@@ -40,8 +40,8 @@ $stats = true;
 $tok = new token;
 $tok = new token;
 $act = new action;
 $act = new action;
 
 
-if($tok->isListed($_SERVER['REMOTE_ADDR'])) {
-    http_response_code(404);
+if($act->isListed($_SERVER['REMOTE_ADDR'])) {
+    http_response_code(403);
     exit;
     exit;
 }
 }
 print_r($_SERVER['REMOTE_ADDR']);
 print_r($_SERVER['REMOTE_ADDR']);