--- src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp
+++ src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp
... | ... | @@ -13,6 +13,23 @@ |
| 13 | 13 |
<script src="/publish/js/swiper.min.js"></script> |
| 14 | 14 |
|
| 15 | 15 |
<script type="text/javascript"> |
| 16 |
+<% |
|
| 17 |
+String clientIp = request.getHeader("X-Forwarded-For");
|
|
| 18 |
+if (clientIp == null || clientIp.isEmpty() || "unknown".equalsIgnoreCase(clientIp)) {
|
|
| 19 |
+ clientIp = request.getRemoteAddr(); |
|
| 20 |
+} |
|
| 21 |
+ |
|
| 22 |
+log("clientIp :: " + clientIp); // JSP 내장 메서드
|
|
| 23 |
+ |
|
| 24 |
+if (!"119.193.215.98".equals(clientIp)) {
|
|
| 25 |
+ response.sendRedirect("http://localhost/publish/maintenance.html");
|
|
| 26 |
+ return; |
|
| 27 |
+} |
|
| 28 |
+%> |
|
| 29 |
+ |
|
| 30 |
+</script> |
|
| 31 |
+ |
|
| 32 |
+<script type="text/javascript"> |
|
| 16 | 33 |
let cookieCache = null; // 쿠키 데이터를 캐시할 변수 |
| 17 | 34 |
|
| 18 | 35 |
$(document).ready(function() {
|
--- src/main/webapp/publish/maintenance.html
+++ src/main/webapp/publish/maintenance.html
... | ... | @@ -19,9 +19,11 @@ |
| 19 | 19 |
<body> |
| 20 | 20 |
<div class="textbox"> |
| 21 | 21 |
<h1>문자온 시스템 점검중입니다.</h1> |
| 22 |
- <h3>· 점검일시 : <strong>2025년 4월 28일(월) 08:30 ~ 08:35</strong> (약 5분간)</h3> |
|
| 23 |
- <p>현재 홈페이지 인증서 교체 작업을 위한 시스템 점검중에 있습니다.</p> |
|
| 24 |
- <p><span>(기)예약 설정 건은 정상 발송되며, <br>작업 이전 '발송대기'건은 작업 완료 후 발송 시도됩니다.</span></p> |
|
| 22 |
+ <h3>· 점검일시 : <strong>2025년 6월 21일(토) 14:00 ~ 6월 23일(월) 08:00</strong> </h3> |
|
| 23 |
+ <p>현재 홈페이지 시스템 백업 작업 중에 있습니다.</p> |
|
| 24 |
+ <p><span>중단 시작 5분 전부터 신규 발송이 제한됩니다.</span></p> |
|
| 25 |
+ <p><span>작업 이전"발송대기" 건은 작업 완료 후 발송시도 합니다.</span></p> |
|
| 26 |
+ <p><span>백업 작업 조기 완료 시 즉시 서비스 재개 예정입니다.</span></p> |
|
| 25 | 27 |
<p>항상 더 나은 서비스 제공을 위해 노력하겠습니다.<br> |
| 26 | 28 |
감사합니다.</p> |
| 27 | 29 |
</div> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?