View Full Version : Tracking clicks with a perl script?
p3rlphr33k
2008-09-17, 02:40 AM
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://greenguysboard.com
I'd say no... but what do I know
MadCat
2008-09-17, 06: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
#!/usr/bin/perl
print "Location: $ENV{QUERY_STRING}\n\n";
To get the redirect functioning...
Greenguy
2008-09-17, 09: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, 02:51 PM
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.
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, 04:41 PM
Thanks for the input, I will try my luck with this script.
Greenguy
2008-09-17, 04:45 PM
...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.
How about:
domain.com/go.php?id=223
would that be OK?
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.