PDA

View Full Version : referer tracking


mutley
07-05-2000, 03:13 PM
I want a php script to catch referers to my domain's root... what's the best way to do it?

a plain .html with the script as a image, with the referer inserted with javascript, ie. <img src="script.php3?ref=<javascript document.referer shit>"> ?

a index.php3, ie. the script

a index.shtml that calls the script with the ref as a argument...

or some other way... what I mean is, how is the referer tracking done on heavy traffic sites where you just send hits to the root?

errr... http://adultwebmasterinfo.com/ubb/biggrin.gif

richard
07-05-2000, 03:26 PM
blindio is an index.cgi, i think UCJ is SSI, so is Scorpion.

SSI is as good a way as any to do it.

With index.cgi (or in your case .php3) is that if you fuck the code up in there, then the surfer will not see your page.

Alternativley, you use Mod_Perl... ( http://adultwebmasterinfo.com/ubb/biggrin.gif) i love it.

Rich.

Dan
07-05-2000, 03:45 PM
get mkstats http://adultwebmasterinfo.com/ubb/smile.gif

but if you want to track it with a cgi then the best way is SSI imho

blindio uses index.cgi because of the rotating mainpages and because of the encoded cookie

Dan