From c1bbce1114c518c36121a3f97816686d0e6d8ec9 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 28 May 2025 11:26:10 +0900 Subject: [PATCH] =?UTF-8?q?KG=EC=9D=B4=EB=8B=88=EC=8B=9C=EC=8A=A4=20?= =?UTF-8?q?=EA=B0=80=EC=83=81=EA=B3=84=EC=A2=8C=20=EC=97=90=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A1=9C=20IP=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/settle_inicis_common.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/shop/settle_inicis_common.php b/shop/settle_inicis_common.php index bf5cabf5c..e6069e049 100644 --- a/shop/settle_inicis_common.php +++ b/shop/settle_inicis_common.php @@ -14,10 +14,19 @@ $INIpayLog = false; // 로그를 기록하려면 true 로 수 //********************************************************************************** -$PG_IP = get_real_client_ip(); +$allowed_ips = array( + "203.238.37.3", // TX5, TX4 + "203.238.37.15", // PC가상계좌(노티), 모바일 가상계좌, 에스크로 + "203.238.37.16", // + "203.238.37.25", // + "203.238.37.32", // 에스크로 + "183.109.71.153", // PC가상계좌(노티), 모바일(노티), 에스크로 + "118.129.210.25", // 모바일(노티) + "39.115.212.9" // PC가상계좌(노티) +); + +if (in_array($_SERVER['REMOTE_ADDR'], $allowed_ips)) { //PG에서 보냈는지 IP로 체크 -if( $PG_IP == "203.238.37.3" || $PG_IP == "203.238.37.15" || $PG_IP == "203.238.37.16" || $PG_IP == "203.238.37.25" || $PG_IP == "183.109.71.153" || $PG_IP == "118.129.210.25" || $PG_IP == "39.115.212.9" ) //PG에서 보냈는지 IP로 체크 -{ $msg_id = $msg_id; //메세지 타입 $no_tid = $no_tid; //거래번호 $no_oid = $no_oid; //상점 주문번호