tags:

views:

97

answers:

2

Possible Duplicate:
How to prevent IFRAME from redirecting top-level window

<iframe width="980px" frameborder="0" marginheight="0" marginwidth="0" height="1500px" src="http://www.torrentz.com/search?q=&lt;?php echo $_GET['search'] ?>" ></iframe>

I have a frame like this.Now when i run tun this in my page..its startes redirecting my to "torrentz.com"..

Have any idea how to stop it ?

+2  A: 

It's doing something known as "framebusting."

While you can stop that from happening, you really shouldn't do it. If a website has framebusting code, they don't want their site to be in frames. So you should respect that and don't embed it.

Related: How to prevent iframe from redirecting top-level window, Block iframe from setting parent.location, How can I stop child Iframes from redirecting

NullUserException
So it doesn't allow me to put frames ? Of that website alone ?
5416339
only this website.
Tim
A: 

I guess that torrentz.com does some unboxing from the iframe (prob. with javascript). In the setup you describe you can't avoid it.

mbanzon