How can I protect source code of my website?

Unfortunately source code can not be protected. Anyone can view site source code by visiting your website and clicking 'View Source Code' button in his browser. It's possible to protect functions/programming code inside PHP files by encrypting them (you can use Zend and Ioncube encrypters for this) but code displayed on website will be visible anyways.

Brighten someone's day!