--- src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp
+++ src/main/webapp/WEB-INF/jsp/web/main/mainPage.jsp
... | ... | @@ -13,19 +13,6 @@ |
| 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("https://www.munjaon.co.kr/publish/maintenance.html");
|
|
| 26 |
- return; |
|
| 27 |
-} |
|
| 28 |
-%> |
|
| 29 | 16 |
|
| 30 | 17 |
</script> |
| 31 | 18 |
|
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?