Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Link Lists & Getting Listed (http://www.greenguysboard.com/board/forumdisplay.php?f=7)
-   -   Tracking clicks with a perl script? (http://www.greenguysboard.com/board/showthread.php?t=49084)

p3rlphr33k 2008-09-17 01:40 AM

Tracking clicks with a perl script?
 
I am curious about a perl script that I wrote that tracks referrers and clicks. It is implemented by appending the desired URL to the URL of the script (example is below). Would this be valid in free sites, considering the resulting URL is still displayed directly?|huh

example:
http://btuz.com/cgi-bin/out.pl?http:...nguysboard.com

dunc 2008-09-17 03:51 AM

I'd say no... but what do I know

MadCat 2008-09-17 05:53 AM

I doubt it -- also, why no escaping in the URL? It's going to get mighty interesting if you ever decide to use it for anything containing it's own query string ;)

(and please please please don't tell me you did

Code:

#!/usr/bin/perl
print "Location: $ENV{QUERY_STRING}\n\n";

To get the redirect functioning...

Greenguy 2008-09-17 08:06 AM

I'd have no problem if it was on the ad links. Most of them look like that anyway.

p3rlphr33k 2008-09-17 01:51 PM

Quote:

and please please please don't tell me you did

#!/usr/bin/perl
print "Location: $ENV{QUERY_STRING}\n\n";

To get the redirect functioning...
I would never dream of it. I pull the last entry of the log, compare it to others for security.

Quote:

I'd have no problem if it was on the ad links. Most of them look like that anyway.
I should have specified ads only. I would never stick this to the picture hrefs. It would be pointless and fill the log quickly. Also, one ad click would tell me exactly what page they came from. i don't need to know every image they looked at.

p3rlphr33k 2008-09-17 03:41 PM

Thanks for the input, I will try my luck with this script.

Greenguy 2008-09-17 03:45 PM

Quote:

Originally Posted by p3rlphr33k (Post 420996)
...I should have specified ads only. I would never stick this to the picture hrefs. It would be pointless and fill the log quickly. Also, one ad click would tell me exactly what page they came from. i don't need to know every image they looked at.

Then I say go nuts.

dunc 2008-09-17 06:23 PM

How about:

domain.com/go.php?id=223

would that be OK?


All times are GMT -4. The time now is 03:21 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc