SpyLink — Free link tracker


SpyLink is a program written in Perl, giving you the ability to track any link on your site. It shows number of clicks on a given URL and the last click date and visitor IP. It uses its own database and log files. For Unix/Linux servers. Version 1.1 available!

Download [file size (*.zip): 12K]


Instalation instructions


INCLUDED FILES
1. cgi-bin/spylink/
— log.cgi [the log used by the script]
— spylink.cgi [script to track the links and to view the statistics]
— url_dbase.cgi [the link’s database used by the script]
2. spylink/
— 2 images [various images used by the script]
— styles.css [style sheet for script]
3. readme.txt

CONFIGURATION
1. The “spylink.cgi” uses this path to Perl: #!/usr/bin/perl. Change this if necessary.
2. Open “spylink.cgi” and edit the “User defined variables” as needed. !!! REPLACE “www.yourdomain.com” WITH YOUR DOMAIN!
3. Open “url_dbase.cgi” and add the links you want to track, using the following format:
[name, or number]````http://www.domain.com/````L
[name, or number]````http://www.domain.com/file.zip````D
etc., where these can be for example:
domain.com````http://www.domain.com/````L
— or —
1````http://www.domain.com/````L
DO NOT USE SPECIAL SYMBOLS IN THIS PART — [name, or number]!!!
— “L” or “D” at the end means the type... “[L]ink” or “[D]ownload”.
4. Open your web page and replace the links you’d liked tracked with the following [REPLACE “www.yourdomain.com” WITH YOUR DOMAIN!]:
http://www.yourdomain.com/cgi-bin/spylink/spylink.cgi?url=name, or number
— for example:
http://www.yourdomain.com/cgi-bin/spylink/spylink.cgi?url=domain.com
— or —
http://www.yourdomain.com/cgi-bin/spylink/spylink.cgi?url=1

INSTALATION
1. Upload a directory called “spylink” including all files in your CGI-BIN in ASCII and chmod:
— directory “spylink” to 755
— file “log.cgi” to 777
— file “spylink.cgi” to 755
— file “url_dbase.cgi” to 755
3. Upload a directory called “spylink” in your Public HTML directory including all files:
— images in binary
— remaining files in ASCII
4. Put a following line in your “robots.txt” file “Disallow: /cgi-bin/spylink/” or you will get many hits from various search engine robots.
5. Upload your page with the links and you should be ready!

EXECUTION
The script should be active after uploading the files. Visit one of your pages and click on one of the links and to test the script.
Now visit: “http://www.yourdomain.com/cgi-bin/spylink/spylink.cgi?url=top_lcl” to view your statistics.


This program is free software; you can redistribute it and/or modify it in any way. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. Installation instructions included with the *.zip package.

HotScripts.com | Scripts.com | The CGI Resource Index