473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Framebuster... buster?

I would like to find a way to get around framebusters. If you're
unfamiliar with a framebuster, its code looks something like:

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

and their purpose is to redirect to the page so that any frames that
might exist dissappear.

I want to have a frame that always remains there even if the other
frame in the window goes to a site with the framebuster script. Any
workarounds or ways to circumvent it?

Thanks.

U.

Jul 23 '05 #1
8 4026
U. Cortez - Research wrote on 07 mrt 2005 in comp.lang.javascript:
I would like to find a way to get around framebusters. If you're
unfamiliar with a framebuster, its code looks something like:

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

and their purpose is to redirect to the page so that any frames that
might exist dissappear.

I want to have a frame that always remains there even if the other
frame in the window goes to a site with the framebuster script. Any
workarounds or ways to circumvent it?


I suppose you mean this?

if (top.location!='http://mysite.com/myFramesetpage.html')
top.location='http://mysite.com/myFramesetpage.html'

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #2
In our last episode,
<11*********************@f14g2000cwb.googlegroups. com>,
the lovely and talented U. Cortez - Research
broadcast on comp.lang.javascript:
I would like to find a way to get around framebusters. If you're
unfamiliar with a framebuster, its code looks something like: if (location != top.location ) {
top.location = location;
} and their purpose is to redirect to the page so that any frames that
might exist dissappear. I want to have a frame that always remains there even if the other
frame in the window goes to a site with the framebuster script. Any
workarounds or ways to circumvent it?


Fortunately you cannot make other people provide you with
content for your site if they want to prevent it.

I suppose the idea of NOT STEALING has never crossed your mind.
--
Lars Eighner ei*****@io.com http://www.io.com/~eighner/
Love is the only game that is not called on account of darkness.
Jul 23 '05 #3
U. Cortez - Research wrote:
I would like to find a way to get around framebusters.


You can't. Stop trying to put other people's content into your frames
against their express wishes (for that matter, don't try to do it unless
you have express permission).

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #4
First, I'm not trying to steal content. The intent is for personal use
so I can just have a personalized frame on the top of any of my
browsing windows.

Technically, the framebuster can itself be "busted" simply by disabling
javascript. But unfortunately, I want to keep javascript enabled for
my browser (as my personalized frame itself will contain some js).

Jul 23 '05 #5
"U. Cortez - Research" <go************@yahoo.com> writes:
First, I'm not trying to steal content. The intent is for personal use
so I can just have a personalized frame on the top of any of my
browsing windows.


If it's only for yourself, there is a way *if* you use IE.

An HTML application gives extra power to the web page, and constrains
embedded pages from knowing that they are so. Quote:
---
HTAs are designed such that untrusted HTML frames and iframes have
no script access to the HTA containing them. In the case of frames
that are not HTA-enabled, the highest level frame comprises the top
window for all frames it contains. For that frame, window.top and
window.self are one and the same. In addition, unsafe frames and
iframes receive neither a referrer nor an opener URL from the parent
HTA. The end result is that they are unaware of the containing HTA
as the parent window.
---
from
<URL:http://msdn.microsoft.com/workshop/author/hta/overview/htaoverview.asp>

If you don't use IE (I wouldn't :), I don't know a way (but then I would
just make a sidebar with the functionality I want).

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #6
In article <11*********************@o13g2000cwo.googlegroups. com>,
go************@yahoo.com enlightened us with...
Technically, the framebuster can itself be "busted" simply by disabling
javascript. But unfortunately, I want to keep javascript enabled for
my browser (as my personalized frame itself will contain some js).


A lot of framed sites assume they are in their own frames and address their
frames as top.framename. You'll break any of that if you manage to get around
it.

Although IMNSHO, frames need to be buried a long awaited death anyways. ;)

--
--
~kaeli~
Can you be a closet claustrophobic?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #7
David Dorward wrote:
You can't. Stop trying to put other people's content into your frames
against their express wishes (for that matter, don't try to do it
unless you have express permission).
Lars Eighner wrote: Fortunately you cannot make other people provide you with
content for your site if they want to prevent it.
I suppose the idea of NOT STEALING has never crossed your mind.


God, guys, chill out. Don't be jerks just because your minds cant envision
an application of the question other than the conclusions you immediately
jump to.

To answer the original question... I've not found a satisfactory way to do
this (which is absurd, really).
Rather, consider using a custom toolbar, or custom context menus in your
browser, depending on what it supports. You can do whatever you want with
those, and that might cover your needs.

--
Matt Kruse
http://www.JavascriptToolbox.com
Jul 23 '05 #8
U. Cortez - Research wrote:
First, I'm not trying to steal content. The intent is for personal use
so I can just have a personalized frame on the top of any of my
browsing windows.

Technically, the framebuster can itself be "busted" simply by disabling
javascript. But unfortunately, I want to keep javascript enabled for
my browser (as my personalized frame itself will contain some js).


Use Mozilla, install the Prefs Bar, disable JS, navigate, re-enable it
on the fly.

Or as Lasse posted, use an .hta in IE

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Kevin Grigorenko | last post by:
Okay, i've got a file open, call it infile. I've got a simple while(!eof), but say the first line of my file is "<?xml version="1.0">", then it takes two iterations to get the string. first...
270
by: Jatinder | last post by:
I found these questions on a web site and wish to share with all of u out there,Can SomeOne Solve these Porgramming puzzles. Programming Puzzles Some companies certainly ask for these...
2
by: brett | last post by:
If I'm displaying a target page in a frame and it is some how opening out of the frame, how can I suppress that? In other words, keep it in the frame or maybe display some sort of message if that...
5
by: Eli | last post by:
Hi, I'm using an IFRAME which in there I can load any site. But there are some sites that check if they're in a frame and reload the whole window. This disrupt my whole page. Some questions:...
1
by: Sandy Bremmer | last post by:
Hello. I was looking at various javascript suggestions for frame busting. Typically what I have used in the past is this: <script language="JavaScript"> <!--// if (window != top) {...
9
by: Steve Buster | last post by:
All right, I have read every forum, newsgroup etc about this issue and no one seems to know how to fix it. I am getting a "Server Application Unavailable" exception running my .NET 1.1...
2
by: Sheryl Landon | last post by:
Hi, I'm having a similar issue as the poster Mike whose message I copied below... I have a page with an iframe... when I discover that the session state is no longer valid in the page inside the...
16
by: Buster | last post by:
Hi, I am trying to cut and paste different paragraphs from one document into another document. In the main document, I put check boxes that do some code to copy and paste the information into...
3
by: Juliusz | last post by:
Hello, I would like announce I have made a new MVC framework for PHP5. You may download it from http://www.jetfish.net Commemnt and feedbacks are welcome. Regards, -- Juliusz...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.