Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 13th, 2006, 8:32 PM   #1
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
disable "view source" javascript

I saw some webpage have disabled the "Source" option under the "View" menu item on the menu bar

I already disable the right mouse clicking on my webpage by using JavaScript. I want to know how to disable the view source from select from the menu bar as well.

I want to protect my website so I will not see my new html layout design being periodically "copy&paste" and use on other people's site...

thanks a milllion!!
dbz
DBZ is offline   Reply With Quote
Old Apr 13th, 2006, 8:42 PM   #2
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
wrong forum man. Java aint the same as Javascript. Post in the right forum, and maybe you will get some answers. But what I can tell you right now is, behind the seens, when someone goes to your web page, the server sends them the html, and the browser goes through it, and displays it. Regardless, the page is sent to the client, and it's on there computer. Nothing is stopping them from looking at the code through notepad, or some other program. If you don't want people to see it, if it's truly that confidential, then don't make it public. But if you simply want to disable it, just for fun and for the hell of it, then post in the right forum, cause I don't know the code
Booooze is offline   Reply With Quote
Old Apr 13th, 2006, 8:47 PM   #3
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
Exclamation

Quote:
Originally Posted by Booooze
wrong forum man. Java aint the same as Javascript. Post in the right forum, and maybe you will get some answers. But what I can tell you right now is, behind the seens, when someone goes to your web page, the server sends them the html, and the browser goes through it, and displays it. Regardless, the page is sent to the client, and it's on there computer. Nothing is stopping them from looking at the code through notepad, or some other program. If you don't want people to see it, if it's truly that confidential, then don't make it public. But if you simply want to disable it, just for fun and for the hell of it, then post in the right forum, cause I don't know the code

oops sorry i just realized, sorry can someone move this to javascript forum thxs. but booze what is this?

http://www.crmpicco.co.uk/

it seems that this site has blocked their code............. i dunno how he did this but im still waiting for ppl to know how.......
DBZ is offline   Reply With Quote
Old Apr 13th, 2006, 9:08 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Here's the code for that page:
  
<html>
  <head>
    <title>CRMPicco Presents: Craig's Rangers Page</title>
    <META NAME="description" CONTENT="Build June 2000-2001. My Own personal site dedicated to Glasgow Rangers Football Club">
    <META NAME="keywords" CONTENT="Glasgow Rangers Picco">
    <META NAME="revisit-after" content="5 days">
  </head>

  <frameset rows="100%,*" framespacing="0" border="0" frameborder="0">
    <noframes>
      <body bgcolor="" text="">
      <p>This page uses frames, but your browser doesn't support them.</p>  
      </body>
    </noframes>
    <frame name="main" src="http://www.geocities.com/piccolax00" scrolling="auto">
  </frameset>
</html>
As you can see, it's a frameset. If you want the code for what is in the frames, just read those URLs and go get 'em. You are either extremely hardheaded or a little bit shy on brain cells. You have been told repeatedly that Java isn't Javascript, and you have been told repeatedly that you can't really protect your pages without withholding them entirely. If the browser can access and render them, so can I.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 13th, 2006, 10:29 PM   #5
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
ROFL! That's funny.
Toro is offline   Reply With Quote
Old Apr 14th, 2006, 12:31 AM   #6
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
this is one of the many advantages of server-side scripting.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Apr 14th, 2006, 10:37 AM   #7
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Once again:

~Moved
__________________
&quot;Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children.&quot; - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Apr 14th, 2006, 11:34 AM   #8
mongeau
Newbie
 
mongeau's Avatar
 
Join Date: Apr 2006
Location: Fargo, ND
Posts: 29
Rep Power: 0 mongeau is on a distinguished road
Send a message via MSN to mongeau
Quote:
Originally Posted by bl00dninja
this is one of the many advantages of server-side scripting.
I'm sorry, I don't follow this comment. How is server-side scripting relevant at all in this example?
__________________
I wish I was you, so I could be friends with me.
mongeau is offline   Reply With Quote
Old Apr 14th, 2006, 11:51 AM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
It's relevant in the sense that the page contents cannot be protected by client-side code. This is not an isolated thread.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 14th, 2006, 2:19 PM   #10
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Server side scripting is where the code (in languages such as PHP) is processed before the page is sent to the client. Client side scripting, such as javascript is processed on the client side ( in the browser).
Booooze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:28 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC