I would like to know the answer too. Anyone here know what is the answer. I'll do some Googling and get back to you if I got an decent answer. You should email the people at iPage as they probably know..
Well if you go there you can hide any form of serverside code. but that doesn't change the fact that you can't grey out view->source.
Hence his question?.
Without using ASP..
However, it remains a garbled blur for most..
Offhand I would not use even "encrypted" (garbled) source code for sensitive information like passwords..
For other purposes (just to throw novices, etc) I would not recommend you do it either.. after all, you probably learned by viewing other people's source code and you should probably allow others the same previledge..
For both reasons above I recommend you leave your source code as is, and if security is a concern, consider server side languages (php, asp, perl, phyton, etc)..
It is impossible to hide source code..
Html and js are impossible to hide..
[... edited ...]....
Lol - you don't even need to do that. Another member in the forums had tried to encrypt their page - but when you click on "Save" and open the file from the hard drive, all the encryption was gone..
Hiding HTML code is against everything that the internet was designed to do. It was first set up to be a completely open exchange of information. Why would they the allow you to hide that information?.
I realise some people get very protective of their work, and do not wish anyone to steal it. Hey, I write stories and would get very angry if someone I showed it to ripped it off and put it out as their own work. That is why we have copyright laws and international agreements..
<down from soapbox>..
The same with images on webpages.. a lot of people put up no-right-click scripts, use transparent images to cover their regular images, etc except that you can easily go to your temporary internet files folder and find the image and then copy it wherever you want....
Also images can easily be copied by using the capture function in some graphics programs..
So the objective of hiding anything is really mute....
So the google-bot would leave with it's tail between it's legs..
OK - THX for very good comments/thoughts into this issue!.
I have an answer, believe it or not, that may surprise you!!.
We agree that hiding source code is virtually impossible! BUT.
I can right a VC++ program that will disable VIEW/SOURCE menu option, then user can see that option, but can not be able to click it!, That way no body can see the code!.
How about that!.
Q - How is it done!.
A - Create a windows hooks dll that will identify IE window based on Classname/ID; and than create a timer which will provide windows message(system) hooks that will disable it instantly, other optiiions are all available except View/Source! U will need to find out windows message that option is sending thru SPY++!.
Problem - This is dll has to be present on the PC where you are browsing - it is on client side; therefore need to be resident on the machine, meaning installed on the PC; There is a privacy issue here if you do that. But for your own use or your group od intranet use, this can be achieved..
If I were to open my temporary Internet files I could have a little look at your source still... or if all else fails then have a look in Opera..
Installing a client side dll/ app is a mute point. Thats like saying click here to make sure you can't see the source code of this site. Uhm, okay.... whatever..
If you could put these things client side, you could disable TONS of features on pcs. We have a corporate intranet with locked down pcs... to the point of no address bar, no right clicking, no file menu and tons more. There is no way for the user to to these things (even if they upgrade browsers). Noone had to write any fancy code to get the job done either, they just use the IE registry file and adjusted things, then gave the pcs the locked version of IE(which is irreversible)..
Still, from an internet point... it's mute. I wouldn't install that on my pc just so that you can feel better about hiding code that we can figure out anyway. Most websites aren't cool enough to even warrant this kind of protection... and the ones that are are written in flash or server side coding...
I could have told you that. in fact all you had to do was to make a ActiveX dll and do the samething,.
When you do this you.
Talking about internet anymore but the users machine. I agree with doc, if it was an intranet thing then yeah go for it or there are better ways besides a dll fix, but for the internet then it is a waste of time...
LOL. I've looked at codes to some interesting looking web pages and to be honest, It's all Garble to me. Way too Advanced. Maybe someday I'll be able to determine what it all means...