Welcome to WebmasterWorld Guest from 54.167.46.29

Forum Moderators: mack

Message Too Old, No Replies

Breaking my site out of Bing's image search frame.

     
2:11 am on Sep 18, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:July 29, 2007
posts:1523
votes: 9


Is there an efficient way of stopping Bing from opening my site inside a frame on their site when someone clicks on one of my images in Bings image search?
3:28 am on Sept 18, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Apr 28, 2006
posts:1043
votes: 1


javascript frame buster works, I have one on mine, and it pops right out.. stickymail sent with how i did it..
3:31 am on Sept 18, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Apr 28, 2006
posts:1043
votes: 1


<script type=”text/javascript”>
if (top !== self) top.location.href = self.location.href;
</script>

The above code in should be added before the /head tag..

8:57 pm on Sept 21, 2009 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member dstiles is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:May 14, 2008
posts: 3091
votes: 2


Apart from the several million users of Firefox's NoScript. And several million others with JS disabled. :)
12:10 am on Sept 22, 2009 (gmt 0)

Preferred Member

5+ Year Member

joined:May 29, 2007
posts: 578
votes: 0


Apart from the several million users of Firefox's NoScript. And several million others with JS disabled. :)
True!

Furthermore, its worth remembering that 'browsers' are also known as a 'user agents' - not 'author agents'; they belong to the users

Consider that - on occasion - some people might want to read the content of site-A from within a frame on site-B

If you must incorporate a script:

  • include <noscript> tags around a human-friendly message prompting visitors to enable scripts
  • give visitors - perhaps using a javascript confirm() (OK/Cancel) - the option to either break out of the frame or stay where they are
  • 3:17 am on Sept 22, 2009 (gmt 0)

    Senior Member

    WebmasterWorld Senior Member 5+ Year Member

    joined:Apr 28, 2006
    posts:1043
    votes: 1



    Apart from the several million users of Firefox's NoScript. And several million others with JS disabled. :)
    True!

    I tried the image search with javascript turned off, and the page would not load.
    So, those that have javascript turned off, will not be able to visit your site through a frame after clicking on an image unless they specifically allow it..
    bummer, i still like the framebuster though..