1 Replies - 1530 Views - Last Post: 10 March 2011 - 08:22 PM

#1 y0da  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 62
  • Joined: 08-November 06

Source code hider

Posted 30 November 2006 - 10:15 AM

Description: Hides your source code of your website so people can't steal it. Although there is ways around it it will be harder for them. I'm working on something that will scramble the source when they look at it...
<script language="Javascript" type="text/javascript">
<!-- Beginning of Javascript -

// CREDITS:
// Turn source-code-thieves into source-code-buyers
// By Urs Dudli and Peter Gehrig.
// Copyright (c) 1999 Peter Gehrig and Urs Dudli. All rights reserved.
// This script and others available free at http://www.lissaexplains.com
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com.
// [email protected]
// 1/10/00

// IMPORTANT: 
// If you add this script to a script-library or script-archive 
// you have to add a link to http://www.24fun.com on the webpage 
// where this script will be running.

function buttoncheck(e) {
     if (document.all && event.button==2) {
          document.all.orderwindow.style.visibility="visible"
          alert("Please order my HTML-source by email!")
          return false
     }
     if (document.layers && e.which==3) {
          document.orderwindow.visibility="visible"
          alert("Please order my HTML-source by email!")
          return false
     }
}

function sendmail() {
     if (document.all) {
          document.all.orderwindow.style.visibility="hidden"
          document.forms[0].submit()
     }
     if (document.layers) {
          document.orderwindow.visibility="hidden"
          document.orderwindow.document.forms[0].submit()
     }
}

function closewindow() {
     if (document.all) {
          document.all.orderwindow.style.visibility="hidden"
     }
     if (document.layers) {
          document.orderwindow.visibility="hidden"
     }
}

if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=buttoncheck;
// --> 
</script>




Is This A Good Question/Topic? 0
  • +

Replies To: Source code hider

#2 Rigwang17  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 07-February 11

Re: Source code hider

Posted 10 March 2011 - 08:22 PM

It didn't work.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1