English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How do you disable people to view the source from View>>Source ?? I know i know, theres no real way to prevent people from viewing your source, they can use other browsers, unsrcamble your encrypted, use 3rd-person parties, access from other places, etc.

but i just need it to prevent my classmates from seeing how my website come about ^.^ only 1 or 2 of them are smart enough to get pass disable right click and disable view>>source... so anyways... can anyone provide that code/script/etc. ??

2007-03-28 04:26:14 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

If you just want to fool classmates do this:

Place your cursor at the beginnings of your source code.
Hold the enter key down for a while.

View>>Source will still show your code BUT...it will appear as a blank page when first opened because your code will be several (hundred) lines down. Unless the classmates scroll to the bottom they won't see anything but white space.

If you don't like that idea, google 'disable view source' and you'll likely find a little script.

have fun

2007-03-28 07:50:10 · answer #1 · answered by rod 6 · 0 1

Here is a simple code that does it: http://www.angelfire.com/fl5/html-tutorial/rclickcode.htm

Of course, this only disables right-click. Nothing else...

Some especially inept users will also be fooled by the "whitespace trick" - just put a bunch of line breaks before your first line of HTML code, and they won't notice the scroll bar in Notepad.

2007-03-28 07:32:51 · answer #2 · answered by Rex M 6 · 0 0

fedest.com, questions and answers