Created
November 4, 2015 07:53
-
-
Save apphp/0e1a8a2aa1cfed8541c3 to your computer and use it in GitHub Desktop.
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
| <script type="text/javascript"> | |
| // Source: Anti iFrame Buster in JavaScript | |
| var prevent_bust = 0; | |
| window.onbeforeunload = function() { prevent_bust++; } | |
| setInterval(function() { | |
| if (prevent_bust > 0) { | |
| prevent_bust -= 2; | |
| window.top.location = 'http://domain.com'; | |
| } | |
| }, 1); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment