

- Awstats all geoip countries unknown full#
- Awstats all geoip countries unknown portable#
- Awstats all geoip countries unknown software#
- Awstats all geoip countries unknown code#
- Awstats all geoip countries unknown iso#
# %WM-n is replaced with the week number in month (1-5) # %NS-n is replaced with number of seconds at 00:00 since 1970 # %HH-n is replaced with hour we were n hours ago # %DD-n is replaced with day we were n hours ago # %MO-n is replaced with 3 letters month we were n hours ago # %MM-n is replaced with month we were n hours ago # %YY-n is replaced with 2 digits year we were n hours ago # %YYYY-n is replaced with 4 digits year we were n hours ago # depending on date or time (Replacement is made by AWStats at the beginning # You can also use tags in this filename if you need a dynamic file name
Awstats all geoip countries unknown full#
# You can use a full path or relative path from directory. # "LogFile" contains the web, ftp or mail server logfile to analyze.
Awstats all geoip countries unknown software#
This program is free software you can redistribute it and/or modify it under the same terms as Perl itself.AWStats Documentation - Configuration directives and parametersĪWStats logfile analyzer 6.7 DocumentationĮach directive available in the AWStats config file (.conf) is listed here (with examples and default values).
Awstats all geoip countries unknown portable#
Thanks to Laurent Destailleur (author of AWStats) that tested it on many OS and fixed bugs for them, like the not portable sysread, and asked for some speed improvement. Speed improvement for multiples LookUp().Ġ.01.1 - Nov 6 14:05:03 2002 (not released on CPAN) - Fix seek bug for Perl 5.6.0 on multiples LookUp(). CHAGESĠ.2 - Sat Mar 22 18:10 2003 - Change sysread() to read() for better portability. To convert it see the tool "" in the same path of Geo/IPfree.pm. The file ipscountry.dat is made only for Geo::IPfree and has their own format. Nnnnn -> the IP range using a base of 85 digits
Awstats all geoip countries unknown code#
The file was in ASCII and in blocks of 7 bytes: XXnnnnn XX -> the country code (BR,US.) To make a fast access to the DB the format try to use less bytes per input (block). The DB has a list of IP ranges & countrys, for example, from 200.128.0.0 to 200.103.255.255 the IPs are from BR. Note that the Lookup make the query without the last IP number (.0), then the cache for the IP 192.168.0.1 will be the same for 192.168.0.2 (they are the same query, 192.168.0.0). After each 1000 IPs the cache is cleaned to restart it. If in the log you have many lines with the same IP, GEO::IPfree don't need to make a full search for each query, it will cache the last 1000 different IPs. The cache is good when you are parsing a list of IPs, generally a web log. If it's on it will cache the last 1000 querys.

Note that if you make a big amount of querys to LookUp(), in the end the amount of memory can be big, than is better to use more memory from the begin and make all faster. The module "Memoize" will be enabled for some internal functions too. This will load all the DB in the memory (200Kb) and read from there, not from HD (good way for slow HD or network disks), but use more memory. Make the LookUp() faster, good for big amount of LookUp()s. Clean_CacheĬlean the memory used by the cache. **If you send a Hostname you will need to be connected to the internet to resolve the host IP.
Awstats all geoip countries unknown iso#
Returns the ISO 3166 country (XX) code for an IP address or Hostname. Load the database to use to LookUp the IPs. My ($country,$country_name) = $GeoIP->LookUp("64.236.24.28") DESCRIPTION This package comes with it's own database to look up the IP's country, and is totally free. My $GeoIP = Geo::IPfree::new() # Using the default DB! My ($country,$country_name,$ip) = $GeoIP->LookUp(" # Getting by Hostname. $GeoIP->Faster # Enable the faster option. My $GeoIP = Geo::IPfree->new('/GeoIPfree/ipscountry.dat') This module make this off-line and the DB of IPs is free & small. Geo::IPfree - Look up country of IP Address.
