Created
November 8, 2013 20:45
-
-
Save andershaig/7377349 to your computer and use it in GitHub Desktop.
Make it a little more difficult to view a page outside of an iframe
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
// Top = Self we are not in an iframe | |
if (top === self) { | |
top.location.replace('https://url/to/redirect/to'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment