From aca0bf78fcd38528b19931457824a074c6bbe1a8 Mon Sep 17 00:00:00 2001 From: "cn.yimian.xyz" Date: Wed, 27 Jan 2021 22:05:54 +0800 Subject: [PATCH] addIpBlock-1000 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 5d2213e..2576957 100755 --- a/index.php +++ b/index.php @@ -99,7 +99,7 @@ if($type == "moe"){ $redis->set($__num, $_num+1); $redis->set($__ip, $_ip+1); - if((!in_array($__from, $whiteList) && ($_num > 50 || $_ip > 100)) || ($_ip > 1000)) { + if((!in_array($__from, $whiteList) && ($_num > 200 || $_ip > 400)) || ($_ip > 1000)) { header("Location: https://api.vvhan.com/api/acgimg"); yimian__log("log_api", array("api" => "img", "timestamp" => date('Y-m-d H:i:s', time()), "ip" => ip2long(getIp()), "_from" => get_from(), "content" => 'https://api.vvhan.com/api/acgimg')); die();