If you don't like the extra overhead of loading multiple pages that is associated with using frames then this tip is for you.
if (top.location != self.location) top.location = self.location;
To set up the HTTP header to specify that your pages should not be displayed in someone else's frames you need to specify one of the following using whichever language you usually use to specify HTTP headers.
Frame-Options : deny
Frame-Options : sameorigin
Note that the second of these still allows you to display the pages within your own frames and there is a third option for where you only want to allow your pages to be displayed in frames on a specific web site.
This article written by Stephen Chapman, Felgall Pty Ltd.