Posted By

digitalzoomstudio on 06/14/11


Tagged

js protection codecanyon


Versions (?)

Domain sniff


 / Published in: JavaScript
 

URL: digitalzoomstudio.net

  1. var sw=false;
  2. function misc(){var a=[];a.push("zoom");a.push("flashden");a.push("codecanyon");a.push("activeden");a.push("envato");a.push("localhost");a.push("127.0.0.1");for(i=0;i<a.length;i++)window.location.toString().indexOf(a[i])>-1&&(sw=!0);sw==!1&&jQuery("body").css("display","none")}jQuery(document).ready(misc);
  3.  
  4. var sw=false;
  5. function misc() {
  6. var _allowedDomainList = [];
  7.  
  8. _allowedDomainList.push("zoom");
  9. _allowedDomainList.push("flashden");
  10. _allowedDomainList.push("codecanyon");
  11. _allowedDomainList.push("activeden");
  12. _allowedDomainList.push("envato");
  13. _allowedDomainList.push("localhost");
  14. _allowedDomainList.push("127.0.0.1");
  15.  
  16. for (i = 0; i < _allowedDomainList.length; i++)
  17. if ((window.location).toString().indexOf(_allowedDomainList[i]) > -1)
  18. sw = true;
  19.  
  20. if (sw == false)
  21. jQuery("body").css('display', 'none')
  22. }
  23. jQuery(document).ready(misc);

Report this snippet  

You need to login to post a comment.