Skip to content

Instantly share code, notes, and snippets.

@intchloe
Last active May 20, 2016 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intchloe/2fb90cac49cba4e438a772c223ec5cac to your computer and use it in GitHub Desktop.
Save intchloe/2fb90cac49cba4e438a772c223ec5cac to your computer and use it in GitHub Desktop.
function (using_our_domain) {
var domains = ["c3dlaGFjay5vcmc=", "d3d3LnN3ZWhhY2sub3Jn", "c3dlaGFja216eXMyZ3BtYi5vbmlvbg=="];
var current = document.domain;
if (current != atob(domains[0]) && current != atob(domains[1]) && current != atob(domains[2])) {
document.getElementById('site-nav').innerHTML += '<br><b><center><font color="red">YOU ARE NOT USING ONE OF OUR DOMAINS!</b></font> CLICK <a href=https://'+atob(domains[0])+'>HERE</a> TO USE THE RIGHT ONE.';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment