Screw the referer spammers…. May 16, 2005 at 11:17 pm

So, because of what I talked about in my [previous 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/ -update
Update for config “/etc/awstats/”
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:
Rejecting Refer URL 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