Created
March 14, 2013 02:02
-
-
Save chriscummings/5158219 to your computer and use it in GitHub Desktop.
Prevent JS hot linking.
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
if(window.location.href.indexOf("yourdomain.net")<0){ | |
window.location.href = "http://yourdomain.net"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment