doblej

javascript_proteger_webs_clon

Jun 19th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <script>
  2.  
  3. window.onload = function proteger()
  4. {
  5. var dominio_ejecuntandose = window.location.hostname;
  6. var dominio_permitido = window.atob("ZWxwYWlzLmVz"); //Usa http://www.utilities-online.info/base64
  7.  
  8. if (dominio_ejecuntandose != dominio_permitido)
  9. {
  10. document.body.innerHTML = "";
  11. }
  12. }
  13.  
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment