jemminger: are you kidding? has no effect on my browsers.
Well, if a pointer to an FAQ ain't gonna help, then I'll happily suggest a fictional, yet very real-sounding tag that will be exactly as effective as any other "trick" (ie: not-at-all), yet be easier to implement!
I guess an easier solution would be to write "Okay, I've already taken care of it.
Alacazam -- you're JavaScript is encoded! You can see it, of course, because it's your code, but no one else can. And let this be our little secret..." Ah, the Mystery of Magic...
enak, what you're asking is flatly impossible. Anyone attempting to tell you otherwise is either ignorant or deceitful and in neither case will you benefit from their advice.
The pointer to the FAQ is real, of course, and my little joke pokes fun at the variety of "partial" solutions that people may offer. These partial solutions will sound something like "well, you can hide it from a lot of people by..." and so on. It's not possible. Most of these "partial" solutions do
not hide your source code, but instead make your site annoying or difficult to use by legitimate users.
(for one small contract, I had to grab samples of images from a client website. The owner importantly told me he would contact their webmaster to arrange it so I could view their source code. I informed him that viewing source code and extracting images is pretty much child's play. At first, he was concerned his security had been breached, but by the end of the very short conversation, he was convinced he had been bamboozled by his webmaster, which was, in fact, the truth.)
Because there is
no effective way to hide code -- HTML or JavaScript -- then if you
must do something, do something that is the least amount of work. Such as adding the fictitious tag above.
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
You can always put it inside a set of <bot></bot> tags (
Boss
Ordered
This).
Cheers,
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
Edward
"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door