IFrame - Stop Site Being Added To IFrame?

Aussie-Dave

Former AGD Member
Joined
Nov 24, 2007
Messages
684
Reaction score
3
Hi,

I've found a site that is using an iframe to pull my URL onto its page.
Although it's not an issue now, I could see it developing into a drama if the webmaster starts adding banners to casinos on the page my site is being iframed into.

I've searched Google but can't seem to locate a mean to either prevent this happening or to automatically break out of an iFrame.

Does anyone have any suggestion?
Thanks.


Cheers

:)

Dave
 

slotplayer

Affiliate Guard Dog Member
Joined
Aug 8, 2008
Messages
1,843
Reaction score
307
Google frame buster code or frame busting code

place inbetween the head tags

HTML:
<script type="text/javascript">

if (top !=self) {
   top.location=self.location;
}

</script>

another variation
HTML:
<script type="text/javascript">
if(top.location != location) {
	top.location.href = document.location.href;
}
</script>
 
Top