How can I hide my source code?
It is virtually impossible to make your source code unassailable. Nearly every method suggested to encrpyt, obfuscate or make your source code invisible can be broken by an experienced user, and many methods cause problems for normal users, making your site appear much less professional and encouraging them to go elsewhere. Ask yourself: is my source code really that important?
To illustate, here are some of the main methods used for hiding source code, and their disadvantages:
3* Show pages through a complicated network of chromeless windows, framesets, etc. Again, this can relatively easily be cracked, but the numerous browser/version differences mean it limits who can use your site and causes serious accessibility issues.
No doubt other methods of hiding source code are available, but they almost always mean your page is in violation of accessibility recommendations, and doing that on a commercial site could be construed as illegal and US and UK law (the Americans With Disabilites Act and the Disability Discrimination Act respectively). It really isn't worth the hassle.