Screw the referer spammers…. May 16, 2005 at 11:17 pm
So, because of what I talked about in my [previous http://www.miguelito.org/mig-archives/000213.html post] I’ve edited awstats a little and added in my own referer URL checker… so ha!
Output from awstats shows this now:
www httpd {566}$ /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.miguelito.org
Update for config “/etc/awstats/awstats.www.miguelito.org.conf”
With data in log file “/var/log/httpd/access_log”…
Phase 1 : First bypass old records, searching new record…
Direct access after last parsed record (after line 5230)
CheckReferer called with Referer URL: http://www.ua-princeton.com/
Rejecting Refer URL http://www.ua-princeton.com/ base on hit count of 106
Warning: awstats has detected that some hosts names were already
resolved in your logfile /var/log/httpd/access_log.
If DNS lookup was already made by the logger (web server), you should change your setup DNSLookup=1 into DNSLookup=0 to increase awstats speed.
Jumped lines in file: 5230
Found 5230 already parsed records.
Parsed lines in file: 38
Found 27 dropped records,
Found 1 corrupted records,
Found 0 old records,
Found 10 new qualified records.
If I get any requests, or just have the time to make some diffs soon.. I’ll post the code for download here for anyone that wants it.
Leave a Reply