473,326 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to implement a 'source code hiding' script

77
Im not sure how to implement this script, it should pop the blank window only if someone clicks veiw source in the context menu or the toolbatr. help?

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <SCRIPT>
  4. <!--
  5. /**************************************************
  6. Speed Code Seal v1.5
  7. Created by Howard Chen
  8. Provided & Modified By http://www.DesignerWiz.com
  9. Your Free Complete Web Development Resource Center
  10. Get more JavaScripts at http://start.at/javascripts/
  11. Bugs report to jdeveloper@telebot.net
  12. This script is free as long as the credits above are kept
  13. **************************************************/
  14. //== BROWSER COPY THE CODE BELOW==
  15. code="<H2><b>Access Denied</a></b></H2>" 
  16. //== BROWSER COPYING STOP HERE ==
  17. //== Code Present ==
  18. //== If Present ==
  19. codeabove=""
  20. n = (document.layers) ? 1:0;function init() { if (n) {document.layers['display'].document.open();document.layers['display'].document.write(unescape(code));document.layers['display'].document.close();}if (!n) document.write(unescape(code));
  21. }//-->
  22. </script>
  23. <title>RESTRICTED AREA: YOU ARE BEING TRANSPORTED</title>
  24. </head>
  25. <BODY bgcolor="#ffffff" text="#ffffff" onLoad='init()' onunload ="document.open('code_seal_v1.5_1.htm','','halfscreen,scrollbars')" <!--www.DesignerWiz.com-- -->
  26. <SCRIPT><!--
  27. if (n) document.write("<DIV ID='display' STYLE='position:absolute; top:0; left:0; width:800; height:600'></DIV>")
  28. //-->
  29. </script></script></body></html>
Mar 22 '08 #1
3 1501
ronverdonk
4,258 Expert 4TB
Apart from the questions why (1) you do not want users to see your source - must be very secret - , and (2) why this script does not work, I'd like to put it to you that, since you run on my PC, anything running at my PC is mine!

You can try to protect it from prying eyes, but since it is running on my pc, in my system's storage, and I have full authority over my own storage, you have no say over that. You can only make a a bit more difficult, but it will cost you more effort to hide than it costs me to get at it.

Meaning that it makes no sense to protect your code from exposure to anyone who is determined to have a look at it.

Ronald
Apr 28 '08 #2
gits
5,390 Expert Mod 4TB
that is quite true ... may be you find this article and the related comments useful here ...

kind regards
Apr 29 '08 #3
gits
5,390 Expert Mod 4TB
btw: please remember to use a meaningful threadtitle according to the posting guidelines

kind regards
MOD
Apr 29 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Mark | last post by:
Sorry, I'm a newbie to php ;) I was thinking about using php to write the script file, something like: <script type="text/javascript" src="http://insert_url_here.com/myScript.php"></script> ...
8
by: David Girard | last post by:
I'm getting the following error which is no big deal - the problem is it is LOCATION specific - which has me really baffled... for some reason the error only appears on different machines in...
7
by: Les Juby | last post by:
I have a customer with an extensive intranet which contains a lot of sensitive company data. The client is concerned that any employee could download source code back to removable storage and...
5
by: Amir S. | last post by:
Hi, I'm a newbie to C++ (2 weeks into the course). We were given this assignment to write some code that reads a set of integers (grades) from a file (filename passed by console), outputs them...
38
by: | last post by:
I have a script... ----- <SCRIPT language="JavaScript" type="text/javascript"> <!-- function makeArray() { for (i = 0; i<makeArray.arguments.length; i++) this = makeArray.arguments; } ...
4
by: web_design | last post by:
I put this together from some other scripts I am using on a site. I'm trying to make a better email hiding script. It isn't working. Also, it causes Internet Explorer 6 SP2 to block the script...
9
by: WRH | last post by:
Hello I am new to asp but I made some Jscript functions which work fine. The functions contain some strings used as a registration key for some apps. It is important that these strings not be...
24
by: Roman | last post by:
Hello to everybody, I have some question concerning blocking view source from main menu of IE or MF. I am able to block right click with <body oncontextmenu="return false"> but still missing from...
7
by: Coder | last post by:
Hi I have the following code in java script, it is not giving proper output in FIREFOX but running fine in IE... can anybody help me out to make this run in FIREFOX . <script...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.