Last active
April 22, 2016 13:17
-
-
Save yamoo9/2a4c74584e0f506720cd to your computer and use it in GitHub Desktop.
XP, IE10 미만 브라우저 접근 금지
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ko-KR"> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<meta charset="UTF-8"> | |
<title>XP, IE10 미만 브라우저 접근 금지</title> | |
<script> | |
(function(){ | |
var OSV = navigator.appVersion, | |
OSName="Unknown OS"; | |
if (OSV.indexOf("Windows NT 6.2") > -1) OSName = "Windows 8"; | |
if (OSV.indexOf("Windows NT 6.1") > -1) OSName = "Windows 7"; | |
if (OSV.indexOf("Windows NT 6.0") > -1) OSName = "Windows Vista"; | |
if (OSV.indexOf("Windows NT 5.1") > -1) OSName = "Windows XP"; | |
if (OSV.indexOf("Windows NT 5.0") > -1) OSName = "Windows 2000"; | |
if (OSV.indexOf("Mac") > -1) OSName = "Mac/iOS"; | |
if (OSV.indexOf("X11") > -1) OSName = "UNIX"; | |
if (OSV.indexOf("Linux") > -1) OSName = "Linux"; | |
if (OSName == 'Windows XP' || OSName == 'Windows 2000') { | |
// 접근 불가능 코드 !!!!!!!!!!!!!!! | |
(document.documentElement || document.body).className += ' access-ban'; | |
} | |
}()); | |
</script> | |
</head> | |
<body> | |
<!-- 브라우저 업그레이드 권장--><!--[if lte IE 9]> | |
<p class="notice-upgrade">사용 중이신 브라우저는 오래된 버전의 브라우저이기에 보안 및 성능 문제가 있습니다.<a href="http://www.whatbrowser.org/intl/ko/" target="_blank">빠르고 안전한 최신 브라우저로 업그레이드</a>하시면 보다 빠르고 안전하게 웹을 이용하실 수 있습니다.</p><![endif]--> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank u ~