浏览代码

add protection

andre 4 年之前
父节点
当前提交
9f5d3e9705
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      admin.php

+ 2 - 2
admin.php

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