Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-21-2006, 09:21 PM   #1
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
Any PHP or server gurus around tonight?

Is there a way to use an image to track what URL somebody came from when they view the page with the image on it? I created a php file which outputs an image and stores HTTP_REFERER, but this just shows the URL that the actual image is loaded on. I want to see the URL that they came from.

Any ideas?
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2006, 09:35 PM   #2
Superterrorizer
Confirmed User
 
Join Date: Sep 2003
Posts: 509
Quote:
Originally Posted by BigBen
Is there a way to use an image to track what URL somebody came from when they view the page with the image on it? I created a php file which outputs an image and stores HTTP_REFERER, but this just shows the URL that the actual image is loaded on. I want to see the URL that they came from.

Any ideas?


Uhmm... I'd look at the http server logs. But that's just me. Why waste cpu cycles tracking shit that the webserver is tracking already?
Superterrorizer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2006, 09:38 PM   #3
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
maybe try something like viewimg.php?ref=<?php echo $HTTP_REFERER; ?> for the image location, then have viewimg.php load the image and get the referrer?

no idea if it works, never tried it, just an idea
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2006, 09:44 PM   #4
mrthumbs
salad tossing sig guy
 
mrthumbs's Avatar
 
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
Quote:
Originally Posted by BondOfBabesDotCom
maybe try something like viewimg.php?ref=<?php echo $HTTP_REFERER; ?> for the image location, then have viewimg.php load the image and get the referrer?

no idea if it works, never tried it, just an idea
yeah.. that should do it. it wipes out everything after the first '&' in the refering url but you probably dont need that info anyway
mrthumbs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2006, 09:54 PM   #5
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
Quote:
Originally Posted by BondOfBabesDotCom
maybe try something like viewimg.php?ref=<?php echo $HTTP_REFERER; ?> for the image location, then have viewimg.php load the image and get the referrer?

no idea if it works, never tried it, just an idea
Well, I'm going to put the image src on myspace, so the php won't work. I already have to parse .jpg as php. Maybe some javascript?
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-22-2006, 01:06 AM   #6
J.P.
Confirmed User
 
Join Date: Jun 2004
Posts: 689
something like this:

Code:
<script type="text/javascript">
docref = '';
if (document.referrer) docref=escape(document.referrer);
document.write('<img src="counter.gif?ref=' + docref + '">');
</script>
__________________
Webmasters! Looking for new affiliate programs to promote?
Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ...

Last edited by J.P.; 04-22-2006 at 01:07 AM..
J.P. is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.