This is frame busting. I'm looking for anti frame busting. There's one way which involves calling a page which returns a "nothing" header code when the iframe tries to bust out. Though some sites like stackoverflow even take this into account. I wonder if SO works with optimizely (I'm on iOS, can't test it ATM).
Since optimizely has access to the document, there might be a way to wrap the window.location object and prevent it from changing, before any experiment-site js is loaded.
http://stackoverflow.com/questions/958997/frame-buster-buste...
This keeps getting funnier and funnier :)... that must be the state of the art in recursive busting ;-)... And if someone is so obsessed that his page must not be framed... I guess it is best to leave such a guy alone...