Skip to content

Instantly share code, notes, and snippets.

@pbojinov
Created September 24, 2014 20:15
Show Gist options
  • Save pbojinov/c5f75d7d1e96e3559253 to your computer and use it in GitHub Desktop.
Save pbojinov/c5f75d7d1e96e3559253 to your computer and use it in GitHub Desktop.
frame jacking frame killers
// 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