Forum Moderators: open
I can't find any information on how to disable the option from the actual tool bar. Everything I've read says it's impossible, yet I've seen it in action.
I'm well aware that disabling a person to view the code is a controversial topic, this is not a discussion for that issue. I'm just wondering if anyone else as seen this or knows how to do it.
Thanks.
> I've been to a handful of websites where when I click on the "view" button in my tool bar, the "view source" option is not an option. I can still read it, but it's not clickable.
I've never seen this, do you have an example?
You can "Sticky Mail" me the URL.
What I do know is that all sites are hosted by godaddy.com. But no where on the site is any information as to whether or not, or how they disable the function.
::scratching my head::
Could it be merely that they are calling their page information from a different location than the domain/server?
If you run a search on "function DisableViewSource" you should get a bit more info. There is a Delphi tools package, called IE5Tools, that details the particular registry setting required to achieve this 'effect'.
When people try to block right-click, I usually get a javascript warning the it has been disabled, but afterwards the menu pops up anyway, so it is not blocked.
There is no way to block View Source in Netscape/Mozilla, so these attempts at protecting the html source will only work against the very simplest attempts at copying.
Anybody with the slightest clue will be able to download any file whatsoever using the program wget and specifying the user-agent they want to fake.
René
In my view view source is a feature, not a problem! It helps people learn from others on how to display information to others. Of course, no matter it is easy to do, stealing creative property is just that - stealing! - so its there for people to learn from, but not copy and use for their own non-peronal uses. I would guess that most code behind webpages was originally copied from somewhere else anyway and then modified. Starting striaght from a HTML or other coding manual is pretty uncommon these days.
Of course best way of hiding code is by using service side scripting like php or cfm or whatever.
Agree with all the others. Those who relaly do want to see your code can do so just by downlaoding the page as html and viewing it in a text editor.
Can you still not view the source by downloading it and looking at the site source on your own software?
Thank you stevedob:
The issue wasn't whether or not the stated effect is useful, sensible or secure, but HOW it is achieved. The answer to THAT question has been given above.
I realize everything you pointed out seindal & chiyo. This post wasn't about those issues, merely a curiosity for how the effect was acheived. Sheesh, I tried to be clear.
I'll do a search on the things you mentioned stevedob, maybe you should share some of your coffee with everyone ;)
Now people will always be able to view your code, however if you want to prevent them from reading it accurately, you can always condense it onto one or two lines or something. I do not recommend this, however if you are that paranoid be my guest.
The issue wasn't whether or not the stated effect is useful, sensible or secure, but HOW it is achieved.
So, please, let's stay on the topic of this thread. There are several other threads that discuss the pros and cons of trying to hide source code. Thanks everyone.
I stated in my original post:
I'm well aware that disabling a person to view the code is a controversial topic, this is not a discussion for that issue. I'm just wondering if anyone else as seen this or knows how to do it.
I never once stated that I wanted to achieve this effect for myself. Why would I? Aside from the already well known facts that chiyo & MWpro have been so kind as to re-point out to me, my html is rudimentary at best & chock full of errors. Anyone is welcome to it. Perhaps the code-snatcher could correct it all & send it back to me so that my pages are viewable in all browsers? LOL.
Simply curious,
diaperfabricmom
[webmasterworld.com...]
Believe it or not there are a great number of reasons why the IE view source button can break, withotu this being the intention of the page author - here's a pretty good breakdown of reasons:
[generation.net...]