View Full Version : make it hard for people to see your source code


darkowl
09-25-2003, 12:48 AM
Ok in this tut I'm going to teach you how to "hide" your source code from people.

Ok here we go...

1. Above your source put a message in a commet tag like this: <!-- go away --> Then press the enter key a bunch of times so that it looks like there is nothing to see but your comment tag.

2. Use this tool: http://www.dynamicdrive.com/dynamicindex9/encrypter.htm to encrypt you code. It shoudl look something like this:

<script>
<!--
document.write(unescape("%3Chtml%3E%0D%0A%3Chead%3E%0D%0A%3C/head%3E%0D%0A%3Cbody%3E%0D%0A%3C/body%3E%0D%0A%3C/html%3E"));
//-->
</script>


3. Open notepad and paste the code your code there and remove the <script> <!-- and //--> </script> in the code so it looks like this:

document.write(unescape("%3Chtml%3E%0D%0A%3Chead%3E%0D%0A%3C/head%3E%0D%0A%3Cbody%3E%0D%0A%3C/body%3E%0D%0A%3C/html%3E"));

and save it as a *.js file.

4. Now upload the file onto your server and put this:

<script language="JavaScript" src="youfile.js"></script>

where ever your normel code will go.

Ok all that should stop a normel person from viewing your code. If they do go through all that just to see your code I think they should shoudl keep it.

Ok that's all for now.