3 ms·
I have a 100-line Python script that I wrote that runs hourly via cron. It scours my apache access log and counts up the number of times each referrer has shown
by acidburnNSA 6y ago
I have a 100-line Python script that I wrote that runs hourly via cron. It scours my apache access log and counts up the number of times each referrer has shown up in the past hour. If it's above a threshold, it emails me with the referrer names in order. So I just get email that basically say: "Hey you're on hacker news" or "Hey check this reddit thread" or whatever.
- winter_blue 6y agoThat's great! It'd be cool if you could put it on Github or something.