This is a small Python script that reads an AWStats URL (typically, the hosts URL) and outputs a new HTML file with IP addresses resolved via reverse lookup.
url: the URL to the AWStats hosts page (open AWStats, find the hosts table, right-click "Last visit")
user: the username for logging into AWstats
pw: the password for logging into AWStats
The script outputs a file called
awstats_resolved.html. It may take a while for the script
to complete as an individual reverse lookup may hang for up to ten seconds.
the extension from
The code is open source and licensed under the MIT license. The license is included in the source code files above. Among other things, it allows commercial and non-commercial use of the code free of charge.