Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-13-2004, 09:58 PM
WebProWorld New Member
 

Join Date: Apr 2004
Location: Los Angeles
Posts: 3
Brooks RepRank 0
Default Chinese Referrers with a twist.

Hello. I'm not sure if this is a good place to ask this question, but here it goes. I was checking my referrer stats for one of my sites 1121.com and clicked on one of the links to see who was linking to me. What I found has me a little puzzled. If you go to http://www3079.kaao.com/ you will see that it is a single frame that calls up http://1121.com inside it. There is no other content on the page and viewing the source code of the page doesn't help much because it's not in English. I have no idea why someone would do that. Any ideas? I checked whois for kaao.com and found it's in China, but that doesn't give me a reason.

I also have a few other sites in China that link to me for some strange reason.

Brooks Ayola
http://ayola.com
Reply With Quote
  #2 (permalink)  
Old 04-17-2004, 03:07 AM
WebProWorld New Member
 

Join Date: Apr 2004
Location: Los Angeles
Posts: 3
Brooks RepRank 0
Default Bueller?

So... Does anyone have an idea where I should post this question? I doesn't seem like anyone in here has any thoughts on what I'm dealing with.
Reply With Quote
  #3 (permalink)  
Old 04-17-2004, 03:24 AM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

Hi Brooks,

Well, there are several reasons why a site frames another website, however I have no clue as to the intentions of this site in China.

The following code should help, add it to your body tag:
Code:
<body onLoad="if (self != top) top.location = self.location">
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #4 (permalink)  
Old 04-17-2004, 10:02 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Bueller never gets a day off here...

Agreed with cyanide.. who knows what the intentions of these Chinese sites are? Any suggestion offered here would be pure speculation. The following article discusses some of the legal aspects... bear in mind this is dated April, 2000. Web Site Framing: Trademark and Copyright Issues

GMD Studios offer a similar script to cyanide's suggestion, with slight improvements i.e. they specify the correct 'home' location.


Code:
<SCRIPT Language="JavaScript" type="text/javascript">
<!--
// FRAME THIS! (Annotated Version 1.7)
// script home location http://www.gmdstudios.com/ideas/frames/
// Authors: GMD Studios (Andrew Cowan & Brian Clark)
// Contact: inquiries@gmdstudios.com
//
// This script is copyright 1997-8 by GMD Studios. Permission to
// use, modify, and distribute this is granted as long as authors'
// copyright statements are left intact. All other use prohibited.


// VARIABLE ASSIGNMENT
// Set real_location to the URL of your website.

var real_location = "http://www.gmdstudios.com/ideas/frames/";


function framethis () {

// FIRST LOOP - Browsers that support top.location
if (top.location) {
if (self != top) top.location = self.location;
} else {

// SECOND LOOP - Browsers that don't support top.location
if (parent.location) {
if (parent.location != real_location) parent.location = real_location;
}
}

}
//-->
</SCRIPT>
Now, all you have to do is trigger the script ... the usual way would be to with an onLoad command in the <BODY> statement (triggering it to run once the page has loaded) such as:

<BODY onLoad="framethis()">
Reply With Quote
  #5 (permalink)  
Old 04-23-2004, 12:04 AM
WebProWorld New Member
 

Join Date: Apr 2004
Location: Los Angeles
Posts: 3
Brooks RepRank 0
Default Thanks!

I knew you guys would come through with a little prodding! Anyway, I tried the simple solution first to see how it worked and it did. Is there good reason to use the script instead, if it seems that the first solution did the trick?

Brooks Ayola
http://ayola.com/blog
Reply With Quote
  #6 (permalink)  
Old 04-23-2004, 05:52 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Re: Thanks!

Quote:
Originally Posted by Brooks
I knew you guys would come through with a little prodding! Anyway, I tried the simple solution first to see how it worked and it did. Is there good reason to use the script instead, if it seems that the first solution did the trick?
Both methods use JavaScript functions to achieve the result; however as I stated above, the advantage of the second script, is that it dictates exactly what should be the 'home' domain location.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0