======================================================================== Lib.IpCountry.asp 수정본 작성일 : 2026-09-08 대상 : /common/lib/Lib.IpCountry.asp ======================================================================== [변경 내용] 1. 함수 진입 즉시 iP_Ret_CountryCode = "" 로 초기화 -> 어떤 경로로 빠져나가도 Empty 가 아닌 문자열을 반환한다. 이 한 줄이 이번 장애의 재발을 막는 핵심이다. 2. setTimeouts 추가 -> 기존에는 타임아웃이 없어 API 무응답 시 다운로드 요청이 그대로 매달렸다. 3. http:// -> https:// 4. 응답 상태·본문 검증 후에만 JSON 파싱 -> JSON 이 아니면 For Each 를 시도하지 않는다. 5. Dim 으로 변수 명시 선언 (기존에는 query, serviceKey, answer 등이 전역으로 샜다) ======================================================================== [교체 코드] 아래 전체를 기존 iP_Ret_CountryCode 함수와 맞바꾼다 ======================================================================== 'IP로 해당 국가 확인 API Function iP_Ret_CountryCode(sIp) Dim proxip, proxip_arry, xmlhttp, sResponse, oJSON, row, this Dim serviceKey, api_url ' [핵심] 어떤 경우에도 Empty 를 반환하지 않는다. ' Empty 가 AddParam 으로 넘어가면 ADO 가 해당 파라미터를 ' "미공급"으로 처리해 INSERT 전체가 실패한다. ' (2025-12-05 DOWN_LOG 적재 중단의 직접 원인) iP_Ret_CountryCode = "" On Error Resume Next 'AWS 프록시 서버 통신 일경우 체크 : 체인의 첫 번째가 실제 클라이언트 proxip = Request.ServerVariables("HTTP_X_FORWARDED_FOR") & "" If proxip <> "" Then proxip_arry = Split(proxip, ",") sIp = Trim(proxip_arry(0)) End If If Trim(sIp & "") = "" Then Exit Function serviceKey = "rqND5%2BMKZUuww7c4LoBFj2GtHxFUmFxd8DiJd4F%2BJ7UBk08SZSbUFn90iigWB7mi8Dx0pt42yuePqUNTXCAqdQ%3D%3D" ' serviceKey 는 이미 URL 인코딩된 값이므로 다시 인코딩하지 않는다. api_url = "https://apis.data.go.kr/B551505/whois/ip_address" & _ "?serviceKey=" & serviceKey & _ "&query=" & Server.URLEncode(sIp) & _ "&answer=json" Set xmlhttp = Server.CreateObject("Msxml2.ServerXMLHTTP") If Err.Number <> 0 Then Err.Clear : Exit Function ' [추가] 무한 대기 방지 (resolve, connect, send, receive / ms) xmlhttp.setTimeouts 2000, 2000, 3000, 3000 xmlhttp.Open "GET", api_url, False xmlhttp.setRequestHeader "Content-Type", "application/json; charset=UTF-8" xmlhttp.setRequestHeader "Accept", "application/json" xmlhttp.send If Err.Number <> 0 Then Err.Clear Set xmlhttp = Nothing Exit Function End If If xmlhttp.Status <> 200 Then Set xmlhttp = Nothing Exit Function End If sResponse = xmlhttp.responseText Set xmlhttp = Nothing ' JSON 이 아니면(에러 XML 등) 파싱 자체를 시도하지 않는다. If InStr(sResponse, "{") = 0 Then Exit Function Set oJSON = New aspJSON oJSON.loadJSON(sResponse) If Err.Number <> 0 Then Err.Clear Set oJSON = Nothing Exit Function End If For Each row In oJSON.data("response") If row = "whois" Then Set this = oJSON.data("response").item(row) iP_Ret_CountryCode = this.item("countryCode") & "" End If Next If Err.Number <> 0 Then Err.Clear Set oJSON = Nothing On Error Goto 0 END Function
△ Collaboration aims to revolutionize robot-friendly building security business by combining AI access control and robotics
SEOUL, KOREA March 20, 2025 – Suprema, a global leader in AI-powered biometric and security solutions, announced today the signing of a Memorandum of Understanding (MOU) with Hyundai Motor Group. This partnership will focus on the development of AI and robotics-based total security solutions
This agreement aims to create innovative business models in robotics and physical security by combining Suprema’s globally-leading AI-based integrated security solutions with Hyundai Motor Group Robotics LAB’s advanced robotics technology. The key areas of cooperation between the two companies will include the development of total security solutions that integrate AI and robotics, the implementation of autonomous robot services by connecting robots with infrastructure, the development of new security services utilizing robotics technology, and the promotion of standardization in these fields.
The collaboration is expected to lead to the commercialization of next-generation AI-based building security services that combine AI security and robotics. These solutions will be applied to a variety of robot-friendly building projects, including prime office buildings, general hospitals, and luxury hotels. Suprema’s AI-based integrated security platform will have the capability to control security and infrastructure across entire buildings, creating an environment where humans and robots can safely coexist. This will enable the autonomous navigation of robots and provide a range of robot-friendly building services.
Together, Suprema and Hyundai Motor Group Robotics LAB have already successfully developed and deployed a security solution that integrates Suprema’s AI-based facial authentication access control technology with autonomous robots at Factorial Seongsu, Korea’s first commercialized robot-friendly building. Building on this success, the companies plan to focus on the continued development of new security services. This includes the implementation of specialized security form factors using robotics hardware and software technologies to further enhance physical security.
“This partnership marks a significant milestone as we open a new era of unmanned security services that integrate AI and robotics. We plan to expand our collaboration with Hyundai Motor Group Robotics LAB to develop AI-driven, robot-friendly building security solutions.”, said Hanchul Kim, CEO of Suprema Inc., “Our system will seamlessly integrate cloud technology, robotics, AI, various sensors, and on-site response solutions. Furthermore, we aim to establish ourselves as a global leader in integrated security platforms featuring AI-driven automation, including advanced technologies such as AI drones and acoustic detection systems.”
“Access control serves a critical function in developing intelligent robot-friendly spaces. Through integration with access control solutions, we will propose a new industry standard in which robots with humans overcome infrastructural issues and take advantage of greater mobility and seamless services,” said Dong Jin Hyun, Hyundai Motor Group Vice President and Head of Robotics LAB. “We aim to expand offerings beyond the existing static form factors within the physical security industry and create new business opportunities through Robotics LAB’s RTS (Robotics Total Solution) model.”
About Suprema, Inc.
Suprema Inc. is a global leader in AI-based security solutions. Over the past two decades, Suprema has demonstrated its expertise and technical superiority in AI security and biometric authentication. Suprema has led groundbreaking innovations in the industry, introducing an integrated security platform, deep-learning based AI solutions, biometric access control systems, cloud solutions, mobile access solutions, and embedded fingerprint modules. With a presence in over 140 countries, Suprema has established itself as a premium global brand. Suprema is recognized among the world's top 50 security manufacturers and holds the top market share in biometric access control across Europe, Middle East, and Africa region.