Websites Takeover - Help

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Dec 2008
Posts: 30
Reputation: Potato.Head is an unknown quantity at this point 
Solved Threads: 0
Potato.Head's Avatar
Potato.Head Potato.Head is offline Offline
Light Poster

Websites Takeover - Help

 
0
  #1
Apr 5th, 2009
Hi to all, I have the following problem:
I have a page that includes an iframe, this iframe is dynamic (meaning that I don't know what will be its source, user can insert any URL). The problem is that are some URLs that take over all over the site, I found that in the URL(pages) they are using the following code
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. page=self.location.href;
  2. if(page!=top.location.href)
  3. top.location.href=page;
They check if the top.location(the main page is not the same), if is not the same they override the location, the result of this code is that the page take over and the URL(page) is displayed in all the page and not only in the iframe.
I was wandering if there is a way to stop this, how I can know the page is going to take over?
Is there is a way to stop this?
This is driving me crazy...
I'll appreciative any help to solve this
Thanks in advanced
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,318
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 161
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Websites Takeover - Help

 
0
  #2
Apr 5th, 2009
its a framebreaker,
to reduce bandwidth theft, content theft
stop stealing other sites' content,
stop stealing other sites' bandwidth,
open pages in a new tab not in your iframe,
use their RSS feed if they provide one,
or contact the site owner and seek a licensing deal for their content.
Last edited by almostbob; Apr 5th, 2009 at 4:18 pm.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 232
Reputation: samarudge is an unknown quantity at this point 
Solved Threads: 19
samarudge samarudge is offline Offline
Posting Whiz in Training

Re: Websites Takeover - Help

 
0
  #3
Apr 5th, 2009
Its just Javascript, there is nothing you can do to stop it without serious modification to the users browser or changing the source of the page. To quote from almostbob
stop stealing other sites' content,
stop stealing other sites' bandwidth,
If it was my site you were stealing from I would be really P***ed off with you. Just don't be so stupid and write your own content. Its called web DEVELOPMENT which implies that you actual develop something rather than just nicking other peoples stuff.
My Blog, Life and everything that matters to me - SamRudge.co.uk

2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Websites Takeover - Help

 
0
  #4
Apr 6th, 2009
I hate that code too. because it destroys my browser history. Often I want to use the BACK button to get back to where I was before. Greedy sites that use such code prevent me from getting back.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 30
Reputation: Potato.Head is an unknown quantity at this point 
Solved Threads: 0
Potato.Head's Avatar
Potato.Head Potato.Head is offline Offline
Light Poster

Re: Websites Takeover - Help

 
0
  #5
Apr 6th, 2009
samarudge: First at all I'm not trying to steal nothing from no one, this is the implementation I need to write, user can insert any URL and then I need to display it in the iframe. Actually I'm developing a whole web site and this is one of the request.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 232
Reputation: samarudge is an unknown quantity at this point 
Solved Threads: 19
samarudge samarudge is offline Offline
Posting Whiz in Training

Re: Websites Takeover - Help

 
0
  #6
Apr 6th, 2009
Well their is still nothing you can do to stop it, and whether your selecting the page to display in the frame or your users are you would still need permission to do this.
My Blog, Life and everything that matters to me - SamRudge.co.uk

2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC