Ooh! Good answer ZeroOne. PHP is a great way of protecting what's yours, because you can have the PHP do anything you want before the headers are passed to the browser, and all that the end user will see is the resultant HTML.

Unfortunately, the resultant HTML is all you really need to create a page that looks exactly like the one you're trying to protect, and not many people read source code to find out who really wrote the page.

Hmm...You could control your entire site through a CGI script. You could have every link point back to the CGI and have the CGI dynamically render each page. But even then, every page would have the resultant HTML that gets sent to the browser.

There really isn't a way to stop someone doing what you mentioned. Therein lies the dilemma of the web. Everything must be shared -- copyrighted or not. Anyone can copy your index page and pass your site off as theirs, and most people would buy it because they're not looking for copyrights. However using the PHP or CGI method to assign a copyright on the bottom of every page could definitely help you if you wanted to take the joker to court for copyright infringement.