Programatically, Do you have a way of stopping a Frame Breakout? (I have a site like digg.com and am using frames to show the topics. some sites break the frames, and remove the history of the browser, which I want to stop). (if you don't know what frame breakout is, ignore this post please).
use curl intead of frames... or do iframe within another iframe... most framebreakers out there only reference top.window once...
If the iframed page is yours, you can consider adding javascript to check to see its opened within an iframe (by checking its not viewed directly) and then redirect them to the error page using javascript's window.location. Too make sure they don't simply disable javascript, add no script tags just under the javascript; containing a meta refresh tag pointing to the error page. (so either way - with or without javascript, if they don't view the page within an iframe they get redirected to your error page).
Instead of directly loading the webpage in a frame, Use CURL to fetch the webpage like a proxy script removing the js that breaks the frame. Thanks