• Y
  • List All
  • Feedback
    • This Project
    • This Group
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
2025_PROJECT / mjgo_git star
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB
  • Files
  • Commit
  • Branches
mjgo_gitsrcmainjavaitncomcmmutilIpUtil.java
Download as .zip file
File name
Commit message
Commit date
DATABASE
first commit
2025-12-15
src/main
토스페이 캐시 적립/가상계좌 입금 콜백 구현 및 라이브 키 적용
06-26
.codetogether.ignore
first commit
2025-12-15
.gitignore
first commit
2025-12-15
pom.xml
build name 수정
03-17
File name
Commit message
Commit date
java
토스페이 캐시 적립/가상계좌 입금 콜백 구현 및 라이브 키 적용
06-26
resources
토스페이 캐시 적립/가상계좌 입금 콜백 구현 및 라이브 키 적용
06-26
webapp
토스페이 캐시 적립/가상계좌 입금 콜백 구현 및 라이브 키 적용
06-26
File name
Commit message
Commit date
egovframework
first commit
2025-12-15
itn
토스페이 캐시 적립/가상계좌 입금 콜백 구현 및 라이브 키 적용
06-26
File name
Commit message
Commit date
com
5733 메인배너 이미지관리 좌표 추가
04-24
let
토스페이 캐시 적립/가상계좌 입금 콜백 구현 및 라이브 키 적용
06-26
web
first commit
2025-12-15
File name
Commit message
Commit date
api/web
first commit
2025-12-15
cmm
first commit
2025-12-15
sym/log/ulg
first commit
2025-12-15
usr/search/web
first commit
2025-12-15
uss
5733 메인배너 이미지관리 좌표 추가
04-24
utl
first commit
2025-12-15
File name
Commit message
Commit date
aspect
first commit
2025-12-15
captcha
first commit
2025-12-15
filter
first commit
2025-12-15
interceptor
first commit
2025-12-15
service
first commit
2025-12-15
session
first commit
2025-12-15
taglibs
first commit
2025-12-15
util
first commit
2025-12-15
web
first commit
2025-12-15
AltibaseClobStringTypeHandler.java
first commit
2025-12-15
ComDefaultCodeVO.java
first commit
2025-12-15
ComDefaultVO.java
first commit
2025-12-15
EgovComCrossSiteHndlr.java
first commit
2025-12-15
EgovComExcepHndlr.java
first commit
2025-12-15
EgovComOthersExcepHndlr.java
first commit
2025-12-15
EgovComTraceHandler.java
first commit
2025-12-15
EgovMessageSource.java
first commit
2025-12-15
EgovMultiPartEmail.java
first commit
2025-12-15
EgovWebUtil.java
first commit
2025-12-15
ImagePaginationRenderer.java
first commit
2025-12-15
ImagePaginationRendererWeb.java
first commit
2025-12-15
JsonResult.java
first commit
2025-12-15
LoginVO.java
first commit
2025-12-15
MjonFTSendVO.java
first commit
2025-12-15
MjonMsgSendVO.java
first commit
2025-12-15
OptimalMsgResultDTO.java
first commit
2025-12-15
ReadVO.java
first commit
2025-12-15
RestResponse.java
first commit
2025-12-15
SessionVO.java
first commit
2025-12-15
UserVO.java
first commit
2025-12-15
File name
Commit message
Commit date
ContextUtil.java
first commit
2025-12-15
Criteria.java
first commit
2025-12-15
DateUtils.java
first commit
2025-12-15
EgovBasicLogger.java
first commit
2025-12-15
EgovDoubleSubmitHelper.java
first commit
2025-12-15
EgovResourceCloseHelper.java
first commit
2025-12-15
ExcelDownloadUtil.java
first commit
2025-12-15
ExcelUploadUtil.java
first commit
2025-12-15
FaxUtil.java
first commit
2025-12-15
FileUtil.java
first commit
2025-12-15
IpUtil.java
first commit
2025-12-15
MJUtil.java
first commit
2025-12-15
MsgSendUtils.java
first commit
2025-12-15
Order.java
first commit
2025-12-15
OsProcessCheckUtil.java
first commit
2025-12-15
PayUtils.java
first commit
2025-12-15
PdfUtil.java
first commit
2025-12-15
RedirectUrlMaker.java
first commit
2025-12-15
SlackMessageFormatUtil.java
first commit
2025-12-15
StringUtil.java
first commit
2025-12-15
StringUtil2.java
first commit
2025-12-15
TokenUtil.java
first commit
2025-12-15
WebUtil.java
first commit
2025-12-15
XssFilterUtil.java
first commit
2025-12-15
hehihoho3@gmail.com 2025-12-15 7152e15 first commit UNIX
Raw Open in browser Change history
/* * Copyright 2008-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package itn.com.cmm.util; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import javax.servlet.http.HttpServletRequest; public class IpUtil { public static String getClientIP(HttpServletRequest request) { String userip = request.getHeader("X-Forwarded-For") == null ? request.getHeader("X-Forwarded-For") : request.getHeader("X-Forwarded-For").replaceAll("10.12.107.11", "").replaceAll(",", "").trim(); // 아이피 가져오기 아파치 아래에 웹로직이 있을경우 if ( userip == null || "".equals(userip) ) { // 아이피 가져오기 , 바로 웹로직이 있을경우 userip = request.getRemoteAddr(); } if ( userip == null || "".equals(userip) ) { return ""; } String[] userips = userip.split(","); return userips[0]; } public static String getBrowser(HttpServletRequest request) { String header = request.getHeader("User-Agent"); System.out.println("header:"+header); if (header.indexOf("MSIE") > -1 || header.indexOf("rv:11.0") > -1) { return "MSIE"; }else if (header.indexOf("Opera") > -1 || header.indexOf("OPR") > -1) { return "Opera"; }else if (header.indexOf("Chrome") > -1) { return "Chrome"; }else if (header.indexOf("Firefox") > -1) { return "Firefox"; } return "Firefox"; } public static String getStr(HttpServletRequest request,String str) throws UnsupportedEncodingException { String header = request.getHeader("User-Agent"); String browser; if (header.indexOf("MSIE") > -1 || header.indexOf("rv:11.0") > -1) { browser = "MSIE"; } else if (header.indexOf("Chrome") > -1) { browser = "Chrome"; } else if (header.indexOf("Opera") > -1) { browser = "Opera"; } else { browser = "Firefox"; } if (browser.equals("MSIE")) { str = URLEncoder.encode(str, "UTF-8") .replaceAll("\\+", "%20"); } else if (browser.equals("Firefox")) { str = new String(str.getBytes("UTF-8"), "8859_1"); } else if (browser.equals("Opera")) { str = new String(str.getBytes("UTF-8"), "8859_1"); } else if (browser.equals("Chrome")) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > '~') { sb.append(URLEncoder.encode("" + c, "UTF-8")); } else { sb.append(c); } } str = sb.toString(); } else { str = "Not supported browser"; } return str; } }

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up