Hiding HTML -
For HTML:
HTML cannot be hidden from the browser. The browser needs that information to display the page. I have heard of "no right click" or "no view source" scripts, but I have never actually seen one- and certainly not a working one.
JavaScripts:
You can protect a javascript to some degree if you use an external .js file for your scripts. You can see more on how to do this at:
www.pageresource.com/jscript/jxtern.htm
CGI:
CGI scripts should be protected as long as they are in the proper cgi-bin directory for your server. This way, the file permisions don't allow snoopers into the script area.
Perhaps someone can prove me wrong on the HTML part? If such a thing reallyexists, it would be interesting to see it.
------------------
John Pollock
www.pageresource.com
www.javascriptcity.com
[This message has been edited by John Pollock (edited April 29, 1999).]
myriad posted this at 16:21 — 30th April 1999.
They have: 88 posts
Joined: Mar 1999
I am currently trying to boost security
for a website that I've just designed and
wanted to stop users looking at the HTML &
Scripts. Does anyone know if this is possible?
I would appreciate any assistance given.
Regards
Steve
John Pollock posted this at 01:36 — 2nd May 1999.
He has: 628 posts
Joined: Mar 1999
Nifty scripts
The source can still be viewed by using the View->Source menu option at the top though.
It does eliminate one possibility though, and might keep out a few unwanted eyes.
------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
myriad(uk) posted this at 22:15 — 2nd May 1999.
They have: 11 posts
Joined: Jan 1999
Thanks for your replies - however it must be
me but I can still view the source using the
right click on the mouse. I've tried putting it in several places: at the very top before <html>/after <head>/in the body etc but it still doesn't seem to want to work.
It is probably something that i'm doing wrong - should there be a space between the
myriad(uk) posted this at 22:17 — 2nd May 1999.
They have: 11 posts
Joined: Jan 1999
woop's - forgot to put the page down - doh
http://www.itseller.com
MsTaz posted this at 02:20 — 3rd May 1999.
They have: 13 posts
Joined: Mar 1999
I tried both tags in the <head> area and neither one worked for me! I could still view the source with right clicking and the toolbar...
------------------
MsTaz's Little Corner
http://www.geocities.com/NapaValley/Vineyard/6108
myriad(uk) posted this at 21:35 — 3rd May 1999.
They have: 11 posts
Joined: Jan 1999
Same here - sorry can't seem to get it
to work for me either. I've taken out the spaces as suggested and have put it in the
<head> part with no success.
Any Ideas? Thanks for your help!
Regards
steve
JP Stones posted this at 23:56 — 3rd May 1999.
They have: 2,390 posts
Joined: Nov 1998
I can't see the point in this script as you can easily go to view/source to grab the code anyway...
JP
------------------
The Webmaster Promotion and Resource Site
www.what-next.com
The NEXT step in Designing and Promoting your Website
tony97 posted this at 22:36 — 13th May 1999.
They have: 45 posts
Joined: Apr 1999
I believe that script only works on Internet Explorer 5.0! Hopefully this helps.
xrs posted this at 00:41 — 14th May 1999.
They have: 98 posts
Joined: Apr 1999
I agree with JP Stones - these types of scripts are absolutely pointless unless only newbies visit your website and then still...it's so simple to press View - Source
----------
Rory Smith - Webmaster of XRS.Net
http://www.xrs.net - The Xtreme Resource Services Network
R Smith
The XRS Network - Webmaster and Developer Resources, Tools, etc.
XRSolutions - Professional yet Affordable Design and Development.
Unified - An Extensive Site Dedicated to Creed.
Anonymous posted this at 16:17 — 14th May 1999.
They have: 5,633 posts
Joined: Jan 1970
If you have a real paranoia do th following.
Make a JavaScript file that does nothing else but document.write your whole page.
Its not pretty, Its not fast, but it should work
----------
Malte Ubl - Germany
http://goKewl.com/
JP Stones posted this at 18:50 — 14th May 1999.
They have: 2,390 posts
Joined: Nov 1998
Malte,
Will this really slow the download time?
JP
----------
The Webmaster Promotion and Resource Center.
http://www.what-next.com
tazman posted this at 20:32 — 18th June 1999.
They have: 99 posts
Joined: May 1999
Depending what you want to do, you can load the javascript into a frame of size zero and document.write to the other frames.
Anonymous posted this at 01:22 — 24th June 1999.
They have: 5,633 posts
Joined: Jan 1970
found this on a site
it's ok to stop newbe's.
i just copied and pasted it as is
god i love finding out new stuff
AAARRRRrrrrrrrrooooo
<script language="JavaScript">
<!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// [email protected]
// Don't delete this header!
var message="Sorry\n\nThe photographs contained on this page are Copyrighted and are not available for download or use. \n\nThe Wolf Dunn"; // Message for the alert box
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
Voltec posted this at 02:01 — 24th June 1999.
They have: 220 posts
Joined: May 1999
You can actually Encode the page using Javascript but I wouldn't recommend it. For those that would like to see this in action, go here and go to the sample page. You can decypher the page with a bit of time but it certainly keeps most away from the source.
http://www.vmirror.com/forums/load/html/msg0423460411988.html
Have fun... but don't forget, if you want the page to get indexed by search engines, what effect would this have?
Matt
----------
1-On-1 Free Basketball Game - Wanna Play?
http://basketball-game.com
1-On-1 Free Basketball Game - Wanna Play?
http://basketball-game.com/
Thousands of Players around the World compete weekly!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.