Categories

Updated: 06/20/2005

Unique Visitors Script

UNIQUE VISITORS - A very simple utility to parse Apache log files and print a listing of unique visiting domains. Copyleft 2005 - Nathan E. Pralle DESCRIPTION: This utility parses an Apache log file and determines how many unique domains visited your site, then compiles a list of them (good for directing to an email or logfile). It uses a cache file to speed up the process as well (not having to do DNS lookups all the time). It only handles the first level of a domain, IE: blah.mchsi.com and dink.mchsi.com will just be listed as 2 entries from mchsi.com. SYNTAX: perl unique_visitors.pl &<days&> Where &<days&> is the number of days back you want to look. I usually run mine at 12:30am and use a ''1'' to get the previous day. EXTRA: You must have a file available called &"unique_domains.dat&& quot; in the same location as this binary and chmod''ed to 777. This is the cache file for this binary. I recommend: ''touch unique_domains.dat;chmod 777 unique_domains.dat''
©2019 A--9.com