by nathandelane on Wed Jul 23, 2008 8:09 am
([msg=8058]see Re: page source[/msg])
Yeah it's more important that you worry about writing your web page code in such a way as to hide anything that you wouldn't want others to see. For example if you are authenticating user names and passwords, you'll want some server-side scripts, possibly not in your web directories to take care of that. Obviously writing secure software needs to take priority over securing the code in some way. Don't worry about disabling right-click or whatever -- the only way you can do that is with JavaScript, but if the user of your web page turns off JavaScript on their browser then they still have full access to your web page HTML, JavaScript, and CSS. In my opinion it is very lame when people/companies try to either obfuscate or encrypt, or otherwise secure their code, either web or application. For one thing, it is flattering when somebody copies my code. Not that that has ever happened yet, and once again, if you need security then learn how to write your code to handle the security things securely. That is much more important. Now that I've said everything twice, I hope you understand what your priorities should be, and what your responsibility is in order to keep yourself from being exposed by would-be crackers.