Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
how can i check which other sites had use my iframe
Old 08-16-2006, 08:19 AM how can i check which other sites had use my iframe
Novice Talker

Posts: 9
Trades: 0
Hello,
I am currently designing new content and features that let other sites call my content from <iframe src="http://www.myweb.com/somepage.php"></iframe> (for example)
then I found something, how can i check which other sites had use this iframe?
I need to know what site had use my content. how can i do that?
I would appreciate it if someone could help me with this?
Thanks for any help you can give me.

and sorry for my english language
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by OInter; 10-06-2006 at 08:21 AM..
OInter is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-16-2006, 11:01 AM Re: how can i check which other sites had use my iframe
Super Spam Talker

Latest Blog Post:
PSD Squirrel Launched
Posts: 932
Trades: 7
Hi there,

the easist way is to install a stats program, or if you have one with your hosting panel.. review that.. however if you do not have that heres what I suggest (this is a better idea anyways...)

Setup referrers, give each site you allow content on an id, and then append the URL in your iframe with the ID. For example..

Quote:
<iframe src="http://www.myweb.com/somepage.php?siteFrom=google.com"></iframe>
google.com is the example ofcourse. And then have a PHP script that records everytime google.com loads that link.

You with me?

Sir P
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Sir P is offline
Reply With Quote
View Public Profile Visit Sir P's homepage!
 
Old 08-16-2006, 11:03 AM Re: how can i check which other sites had use my iframe
Ultra Talker

Posts: 483
Trades: 0
You would need to either:
a) check your server logs... I'm pretty sure it should show up as a referrer site; or
b) build the page you are including to record the referrer site into a database or the like.

Alternatively, you could set the script so that if the referrer is not your site, just fail.

Either way, you can't be sure that this will track everything. At the end of the day, you're hoping for the browser to tell you where it's coming from and this cannot be relied upon..
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 08-17-2006, 07:33 AM Re: how can i check which other sites had use my iframe
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Technically including your page within iframe and coming to your page through the link from another site do not differ, so from plain php you won't be able to decide either it was a view on iframed page or a normal view in a browser. You will have to implement some javascript on pages which can be iframed to check whether the page was really iframed.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 08-17-2006, 07:36 AM Re: how can i check which other sites had use my iframe
Super Spam Talker

Latest Blog Post:
PSD Squirrel Launched
Posts: 932
Trades: 7
Or just put it in the url along with the id... so no javascript is needed.

For example:
Quote:
<iframe src="http://www.myweb.com/somepage.php?siteFrom=google.com&type=iframe"></iframe>
cheers
Sir P
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Sir P is offline
Reply With Quote
View Public Profile Visit Sir P's homepage!
 
Reply     « Reply to how can i check which other sites had use my iframe
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27490 seconds with 12 queries