Forum Moderators: phranque

Message Too Old, No Replies

Iframe Busting / Hijacking

How To Stop It

         

BlaKKJaKK

4:54 am on Nov 19, 2007 (gmt 0)

10+ Year Member



Ok, I found this website through this thread [webmasterworld.com...]

I have tried the java scripts listed (I see it in the source page so I know the cache is not stopping it from working). Didn't work.

I tried modifying my .htaccess file as described as well. Didn't work.

Any ideas?

My site is
<snip>

This this the site that is iFraming me.
<snip>

This is the first time someone has done this so I am little lost as to how to block it.

[edited by: physics at 6:15 pm (utc) on Nov. 20, 2007]
[edit reason] Removed URLS - See Terms of Service link at bottom of page [/edit]

physics

6:17 pm on Nov 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Anyone have some tips?

londrum

9:41 pm on Nov 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



here's the little bit of javascript that i use. works alright for me

if(parent.frames.length>0){top.location.replace(document.location);}

Achernar

1:48 am on Nov 21, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



You can't directly test top.location. Your frame doesn't have the rights to read the value (unless top page and frame are from the same domain). But you can test to see if your page is framed:

if (window!=top) top.location=window.location;