Welcome to WebmasterWorld Guest from 54.226.241.8

Forum Moderators: mack

Message Too Old, No Replies

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

     

JS_Harris

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

WebmasterWorld Senior Member 5+ Year Member



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?

youfoundjake

3:28 am on Sep 18, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



javascript frame buster works, I have one on mine, and it pops right out.. stickymail sent with how i did it..

youfoundjake

3:31 am on Sep 18, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



<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..

dstiles

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

WebmasterWorld Senior Member dstiles is a WebmasterWorld Top Contributor of All Time 5+ Year Member



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

lavazza

12:10 am on Sep 22, 2009 (gmt 0)

5+ Year Member



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
  • youfoundjake

    3:17 am on Sep 22, 2009 (gmt 0)

    WebmasterWorld Senior Member 5+ Year Member




    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..
     

    Featured Threads

    Hot Threads This Week

    Hot Threads This Month