It is impossible to protect your web page source code but some people sell products for hundreds of dollars that claim to do just that. Instead of wasting your money you might consider the code offered on some of the below pages which is at least as effective as anything you can pay for. That has the added advantage that when you see how easy all the "protection" is to bypass all you will have spent is a little time.
So here are some pages on how easily the above techniques and those used by software costing hundreds of dollars can be bypassed.
- How to Disable 'View Source'
The most effective way to stop people from being able to read your page source.
- More on View Source
Why you can't hide the source code of an HTML page - 14 ways that such "protection" can be bypassed, one of which ALWAYS works.
- Purchasing HTML Source Protection
Don't waste your money on programs offering ineffective web page protection that can be bypassed in a few seconds by those that know how.
- Why Encrypt?
Since encrypted pages are so easily decrypted why would you bother.
- Protecting Images
What you can and can't do to protect the content of your web page.
- Blocking View Source - Yet Again
A further discussion on how pointless it is to try to block people from viewing your HTML source.