The short answer: No, it's not possible.
The relatively long answer: The web browser that your visitors are using obviously has to be able to read the source of your pages in order to display them. So even if it is encrypted or obfuscated, it would be with a relatively simple algorithm that could be reversed almost instantly. Therefore, the determined user will be able to view your HTML code, regardless of what you do with it. A lot of people try things like disabling right-click or placing a large number of blank lines at the top of their document to try and confuse the user; but really, these things amount to nothing.
As has been suggested, there
are ways of 'encrypting' your code using weak algorithms; but as has also been noted, search engines such as Google are unable to read JavaScript, so will not add your site to their index. However, this doesn't matter to some people, so if you don't mind not being listed in the major search engines, then you might consider looking into such methods. Although, as I've said, it won't throw the determined user off entirely, it will make things slightly more difficult for them.
Reply