Isandria

I.P. Blocking Script

Mar 6th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <script type = "text/javascript" src="http://l2.io/ip.js?var=ip"></script>
  2. <script type = "text/javascript">
  3. window.onload = init();
  4. function init() {
  5. var blocklist = ["x.x.x.x"];
  6. for (var i = 0; i < blocklist.length; i++) {
  7. if (blocklist[i] == ip) {
  8. document.body.style.background = "white";
  9. document.body.innerHTML = "<br/><br/>Get off my blog.";
  10. //window.location.replace("http://www.republiquedesmangues.fr/");
  11. break;
  12. }
  13. }
  14. }
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment