OK, they have no nested iframes, so this should be easy. What they are currently using:
Code:
<script language="JavaScript"><!--
if (parent != self) top.location.replace(self.location.href);
//--></script>
Which should be:
Code:
<script type="text/javascript">
<!--
if (parent != self) top.location.replace(self.location.href);
// -->
</script>
Could be (untested, but it's the basic idea):
Code:
<script type="text/javascript">
<!--
if (parent != self && !/^http:\/\/((www\.)|())yourdomain\.com/.test(top.location.href)
) top.location.replace(self.location.href);
// -->
</script>
which requires (if I've written it correctly) the top page (if different than their own) to have http://www.yourdomain.com or http://yourdomain.com at the beginning of its address. Pretty fool proof.
In fact, if they had a list of allowed domains, that could be configured as well, using an array of the allowed domains.
Bookmarks