I've been trying to find a simple script that logs the referrer urls of visitors but am not having much luck. Does somebody know where I can get one or perhaps even be able to put together a simple script that logs the referrer urls into a .txt file?

I would be forever in your debt.