Created
January 23, 2019 17:37
-
-
Save dennythecoder/6ce07e514b70c7ef7f48891ec8114e74 to your computer and use it in GitHub Desktop.
Notice
This file contains hidden or 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
| (function(){ | |
| var href = location.href; | |
| if(href.indexOf('logout') !== -1){return ;} | |
| var userAgree = sessionStorage.getItem('user_agree'); | |
| if(userAgree !== 'true'){ | |
| var msg = 'You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.\n' + | |
| 'By using this IS (which includes any device attached to this IS), you consent to the following conditions:\n'+ | |
| '-The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations.\n'+ | |
| '-At any time, the USG may inspect and seize data stored on this IS.\n'+ | |
| '-Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose.\n'+ | |
| '-This IS includes security measures (e.g., authentication and access controls) to protect USG interests--not for your personal benefit or privacy.\n'+ | |
| '-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details.'; | |
| var didUserConfirmAgreement = confirm(msg); | |
| if(didUserConfirmAgreement){ | |
| sessionStorage.setItem('user_agree',true); | |
| }else{ | |
| var logoutPath = window.location.origin + '/logout.do'; | |
| window.location.href = logoutPath; | |
| } | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment