Created
May 21, 2010 20:49
-
-
Save jdunck/409401 to your computer and use it in GitHub Desktop.
Anti-clickjacking code recommended by http://seclab.stanford.edu/websec/framebusting/
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
<style> | |
html {visibility:hidden;} | |
</style> | |
<script> | |
if(self==top) { | |
document.documentElement.style.visibility='visible'; | |
} else { | |
top.location=self.location; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recommended by http://seclab.stanford.edu/websec/framebusting/