Bo Larsson's Internet Server Software

Bo Larsson's Internet Server Software
All Contents Copyright 1997-2020 by Bo Larsson - Send questions or comments to: bliss@seagull.net
Table of Contents
Last updated 18 Jan 97
Welcome!

Perl CGI Scripts

guestbook 970118 NEW!
classifieds 970115 NEW!
search 961211
table 961201
textrotate 961121
rotater 961119
navigate 961117
redirect 961111
pcounter 961110
mailsend 961110
yourhost 961110
youraddress 961110

Java Applets

jclock 961204 NEW!
jcounter 961114

Links to Other Sites

Fisher's CGI Talk NEW!
JemTek CGI C Library
Dream Catchers CGI Scripts
Web Engineer's Toolbox
cgi-lib.pl Home Page
Common Gateway Interface
CGI Made Really Easy
CGI Programmer's Reference
Matt's Script Archive
Netamorphix CGI Page
Selena Sol's Archive

redirect 961111

view the source

show me an example

This is a redirection script like the ones you've seen on the major search engine sites. You pass it the name of the file and the URL for redirection. Then, the script writes the current date and time plus the domain name into the specified file and redirects the user to the given URL. It uses the GET method as opposed to POST. You'll note that most other redirection scripts do the same thing, probably because it means you don't have to wrap each link around a form or some such other nonsense.

If you've been looking for a simple way to keep track of who has been clicking on your banner ads, or if you just want to log all traffic to certain URLs, this is an easy and cool way to do it.