Solved

Disable View Source

Posted on 2001-08-28
12
404 Views
Last Modified: 2009-12-16
How do you disable the view source menu option in Internet Explorer and Netscape?
0
Comment
Question by:jflemin
  • 6
  • 3
  • 2
  • +1
12 Comments
 
LVL 12

Accepted Solution

by:
ahosang earned 50 total points
ID: 6432948
0
 
LVL 12

Expert Comment

by:ahosang
ID: 6432956
And countless PAQ's on this site will confirm that, if you use the search tool here to look for this topic you will see.
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6433209
Anybody think we can get EE to set up a 'don't ask these questions -- we've already answered them a zillion times' FAQ? ;-)

Spend 10 pts, get the answers to all your print/hide code/change user settings questions.. ;-)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:de_britto
ID: 6433943
make your java script file as .js file and put in seperate directory to avoid others to see. For html source as its all common no need to hide.

0
 
LVL 1

Author Comment

by:jflemin
ID: 6434001
I've seen this done on many web pages, so it can't be impossible. How did they do it?
0
 
LVL 1

Author Comment

by:jflemin
ID: 6434004
By the way. I did do a search on this topic, but EE timed out every time I did a search.
0
 
LVL 1

Author Comment

by:jflemin
ID: 6434012
By the way. I did do a search on this topic, but EE timed out every time I did a search.
0
 
LVL 1

Author Comment

by:jflemin
ID: 6434013
By the way. I did do a search on this topic, but EE timed out every time I did a search.
0
 
LVL 1

Author Comment

by:jflemin
ID: 6434054
I appreciate the url that explained the view source. I have been to sites that do have the view source option grayed out. Do you know how they did this?

Any ideas would be appreciated.
0
 
LVL 1

Author Comment

by:jflemin
ID: 6434060
I don't remember submitting the same text three times.

???
0
 
LVL 12

Expert Comment

by:ahosang
ID: 6434119
Give me any 'HTML' page on the web and I'll give you the source.
BTW, if you hit refresh button, EE will reprint your comment. You should use the reload question link at the top right.

Back to topic. Please give me the URL and I'll investigate - I don't specialise in IE-specific code so I don't know about ActiveX changing the browser but there is no cross-browser disabling(and I have many browsers).

You only requested IE and Netscape and even between them 2 you wouldn't have a hope.
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6434515
The only way I know to disable view source is to force the user to open a PDF file, in IE, have Acrobat 5 (not anything else), and then go to your page.

Of course, you have no control over any of that... ;-)

And, they STILL could make a page, put a link to your page on it, right click, and save it.

Kinda hard to stop that. ;-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question