[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

Disable source viewing option?

How can "view source" option for a HTML document be disabled?
0
srividya_kris
Asked:
srividya_kris
1 Solution
 
mayhewCommented:
You can't.

The best you can do is open a new browser with no menu bar.

But that will only work with inexperienced web users.

Anyone can view the source of a page sent over the web.

If you send it, it's viewable.
0
 
oubelkasCommented:
Yep, like mayhew says,

because html pages are client sided they can be viewed all over the world, though you can adapt some tricks, but nothing can totally prevent viewing your source.

Some tricks :
-disabling right click
-opening window without menubar like mayhew says
-encrypt your code

Though like I said it's not fully protective.

Joseph
0
 
xabiCommented:
Encrypt your code with any of the utilities around. Here you'll have one of the best:

http://psyral.com/

It's not a 100% secure method and only works with javascript enabled browsers.

xabi
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
nathansCommented:
Maybe our question to you should be what are you trying to hide?

HTML?
JavaScript?
or
What?
0
 
DreamMasterCommented:
actually every kind of source can be put in iclude files making them unviewable...but there's always gonna be a smartass that will be able to view it!
0
 
chewymonCommented:
See the question ablut two down from yours titled:

disabling html code to browsers

There is no way to 100% hide the source code because the browser has to "see" the code in order to render it.  that means there is a copy of the page on the client machine to play with that can eventually lead to the code.
0
 
konektorCommented:
If you want to hide some tricks, you've made code it in java. there's no way to see code.
0
 
cepedareCommented:
Actually a good way to prevent anyone from stealing your hard work html is to do it in Flash. The Html Page reads from a .swf Page and noone can see your work even if they really wanted to, not even if you are an experienced Web User.
0
 
CyberSoftCommented:
Not even SWF files are safe from people wanting to get into the source. I have seen utilities on the Internet that allow you to unlock and open SWF files into their native FLA format. Sorry to burst your bubble cepedare.
0
 
cepedareCommented:
The best you all can do is do your homepage in Flash. all your work and images are safe and nobody can steal them. For you all that don't know what flash is just do a quick search.
0
 
CyberSoftCommented:
Cepedare, read my comment just before yours. If you publish stuff on the Internet - it's not safe. Period.
0
 
cepedareCommented:
oh sorry for missing your comment CyberSoft. I wasn't aware of those utilities. But all I am trying to say is that by doing it in flash is more safer than html. Do you agree?
0
 
CyberSoftCommented:
Yes, I do agree that Flash files are safer than HTML. But the point remains that anything you publish on the Internet is open-source. If you want to prevent someone from (well not physically but legally) you need to apply for local and international copyrights for whatever it is you are publishing on the Internet.

Regards,
CyberSoft
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now