hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Obtain domain name of site my ads were clicked from, using iframe
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Obtain domain name of site my ads were clicked from, using iframe

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-12-2005, 06:25 AM
latheesan latheesan is offline
AsuraHosting.Com
 
Join Date: Jan 2005
Location: UK, London
Posts: 762

Obtain domain name of site my ads were clicked from, using iframe


Here's the scenario...

I show my ads using a php file called 468x60.php file for e.g.

Then on one of my client's site, i ask them to put my ads using iframe like this

PHP Code:
<iframe src="http://mysite.com/ads/468x60.php" scrolling="no"
frameborder="no" width="468" height="60"></iframe
So, lets say i have about 50 clients with my ads on their site. How can i track down, which client's site (domain name) the ads were clicked from?

__________________
:: www.AsuraHosting.com ::

Reply With Quote


Sponsored Links
  #2  
Old 10-12-2005, 07:12 AM
anjanesh anjanesh is offline
Web Hosting Evangelist
 
Join Date: May 2005
Location: Mumbai, India
Posts: 549
You can check using $_SERVER['HTTP_REFERER'] - but this may not work in all browsers. Best option is to have the url sent with some parameter - the ad they click on will goto mydomain.com?clientid=45 - when they goto mydomain.com, get the clientid and store it. Also double check with $_SERVER['HTTP_REFERER'].

Reply With Quote
  #3  
Old 10-12-2005, 10:55 AM
latheesan latheesan is offline
AsuraHosting.Com
 
Join Date: Jan 2005
Location: UK, London
Posts: 762
why wont $_SERVER['HTTP_REFERER'] work with some browsers? what are those browsers?

also

is there a way to use escaping url of a iframe or something?

__________________
:: www.AsuraHosting.com ::

Reply With Quote
Sponsored Links
  #4  
Old 10-12-2005, 11:07 AM
anjanesh anjanesh is offline
Web Hosting Evangelist
 
Join Date: May 2005
Location: Mumbai, India
Posts: 549
$_SERVER['HTTP_REFERER'] is something that the browser sends - its actually a piece of information sent by the client side to the server - so its not something that the server is setting - so this is not dependable.

For example, using can CURL (or sockets) you can load a page from the net - say yahoo.com - by sending some headers to yahoo.com - this header we can manipulate in anyway - including sending the wrong header for http_referer - say msn.com - so if yahoo.com's default page has a piece of code that stores every http_referer, then it'll store this particular one as msn.com - when it was actually coming from elsewhere.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Nominet Temporarily Forced to Ditch Plans for Shorter .UK Domains Web Hosting News 2013-03-18 10:19:10
ICANN Publishes Details on Domain Seizure Process Web Hosting News 2012-03-09 15:38:48
Parallels “Cloud” Summit - It was all about TRUST Blog 2012-03-01 12:29:22
Blogging Platform Wordpress.com Adds .ME Domain Extensions Web Hosting News 2011-10-21 14:25:28
.XXX Domain Sunrise Period Opens Wednesday Web Hosting News 2011-09-06 20:50:41


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?