Click to See Complete Forum and Search --> : Source Code
ViSionSinD
July 19th, 1999, 10:11 AM
Please help I have spent the last 8 hours searching the web for a way to hide my source code from prying eyes I need a java script or html to pop up a displayed message saying access denied or something of the sort when people try to view my source code please help or direct me to the right person who can help me thanks.
-=ViSionSinD=-
Dr_Michael
July 19th, 1999, 01:39 PM
I don't have enough knowledge about Internet, but as far as I know there is no way to "lock" your code in case of scripts, but in case of asp, noone can edit that.
Michael Vlastos
Company MODUS SA
Development Department
Athens, Greece
Tel: +3-01-9414900
ViSionSinD
July 20th, 1999, 04:38 AM
The reason I am asking is because awile back I went to some german site and did a right click and a little box came up I just couldn't read it also when I goto some sites when I right click nothing happens I figured they must have some kind of thing to hide their HTML code.
-=ViSionSinD=-
Chris Eastwood
July 20th, 1999, 05:10 AM
Hi
I did find an example of disabling the right mouse click at : http://www.dynamicdrive.com/dynamicindex11/noright.htm.
This won't stop surfers being able to view your code though, it only disables the right click on the browsers window. People can still do a 'Save Target As' on any link to your page - and they can still click on the 'View...Source' from the menu bar.
The only *real* way to hide your code is to either have your pages generated by CGI scripts, or use ASP.
Chris Eastwood
CodeGuru - the website for developers
http://www.codeguru.com/vb
ViSionSinD
July 20th, 1999, 05:22 AM
Thank you very much for your response I went and checked out the site and that is basically what I am looking for! :) However if anyone else can come up with any other ideas I will still be checking back :) thanks again Chris It really does help alot :)
-=ViSionSinD=-
Iulian Iuga
July 21st, 1999, 05:54 AM
You can use
<script ID="S1" language="JavaScript" src='/library/toolbar/toolbar.js'> </script>
for your java scripts file .So, the user can't read your script sources.
ViSionSinD
July 21st, 1999, 07:48 AM
Thank you very much! that will indeed come in handy :) I'm gonna go try it out very shortly :) If you or anyone can come up with any other suggestions it would also be appreciated :) Thanks again!
-=ViSionSinD=-
Lothar Haensler
July 26th, 1999, 02:54 AM
just read in the August issue of MIND
"With version 5.0 of the Microsoft Script Engine and Internet Explorer 5.0, you can now encode your VBSCript and Jscript work so others can't grab it."
The technology is called "Script Encoding"
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.