I found a great site that offers converting simple html code to a java script to protect your page source I think it is nice to share http://www.hypergurl.com/generators/htmlscrambler.html
Pretty useless in my opinion, as this is easily circumvented. From what I can tell it is just turning <, <, and / to their hex representations. Honestly, you probably shouldn't have sensitive data in your source . . . otherwise, well, you probably just aren't that smart
and you can easily decode it.. but i guess its kinda useful.. stops idiots from nicking your source code Jam
How can it? Teh googlies can't use teh Javascript. But I agree with the sentiment. Nicking your source code? 99% of the HTML out there is total garbage. Not only is it not worth stealing, but it's not art anyway. It's not like stealing a book where someone creatively wrote a story. It's a bunch of freakin tags. If you're trying to hide it, it's because you're horribly ashamed that you wrote such total garbage, and then aren't smart enough to know that if the browser can see the code (and if it can't it cannot show the page), then the user behind that browser can also see the code. Seriously there is nothing in your code (in anyone's code I mean) that isn't on a bazillion other web pages. If it's a Javascript you're trying to hide (at least a script could be considered worth trying to hide I guess), it shouldn't be sitting in the HTML anyway.
Oh, I thought you were saying that the Javascript was hiding the source from google... but if it's changing the >'s and /'s after the fact so people can't go to View Source, then no, as teh googlies would never start the script. If the page appears when running NoScript, then it'll appear for teh googlies. I dunno, I assumed the page linked to was using it itself... and I can see everything ok. Or are you supposed to paste the stuff that appears in the text box in place of your own page? How can a browser interpret that?? btw, offtopic, can you look at something for me?
I think so, and no idea. Maybe their is an external JS file? Is that directed to me? If so, then maybe. EDIT: Opera succesfully parsed <b>test</b> scrambled" <script>var U7=window,W8=document;var a1="%3Cb%3ETest%3C/b%3E";function V0(){var V0;V0=unescape(a1);W8.write(V0);}V0();</script> Code (markup): By the looks of it, it is passing hex values to the browser.
no idea why you would want to do this. aif you have valuable code and logic keep it server side. html and css is not worth anything.
It will not be possible unless you have a <noscript> alternative, which defeats the purpose. I see no reason to hide your source.
Considering that a large number of Web page designers learned the trade from looking at the source code of other Web sites, it seems wrong to hide your source code and deprive future designers from learning from your example.
If you are hiding your source code in the first place, your code is probably not good for future developers to learn from.