You will need to create a file on your site that will be used to log the referrers.  You will need to put the proper name and server file path info into the CGIs.

On every page on which you want to record the referrer, use the following server-side include:

<!--#include virtual="/cgi-bin/referrerchecker.cgi" -->

To include a list of the most recent referrers, use the following server-side include:

<!--#include virtual="/cgi-bin/recentreferers.cgi?trim=30&lastn=50" -->

trim = number of characters to show to identify the referrer
lastn = number of referrers to show

