Created
September 24, 2014 20:15
-
-
Save pbojinov/c5f75d7d1e96e3559253 to your computer and use it in GitHub Desktop.
frame jacking frame killers
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
// Most common | |
<script type="text/javascript"> | |
if (top != self) top.location.replace(location); | |
</script> | |
// Modern Framekiller | |
// http://seclab.stanford.edu/websec/framebusting/framebust.pdf | |
<style> html{display:none;} </style> | |
<script> | |
if (self == top) { | |
document.documentElement.style.display = 'block'; | |
} else { | |
top.location = self.location; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment