How to set up AWStats extra section. Several useful extras are included.
AWStats has a feature to extend its usefulness: ExtraSection. At the bottom of the config file is the location.
More than one ExtraSection can be used. Just change the number after each entry to an unused number. For example, change ExtraSectionName1 to ExtraSectionName2.
Not a Texas sausage but finding out who is hotlinking objects from your site. Change your_site.com to your domain. I have found several sites linking to images on my sites.
# # hotlink # ExtraSectionName1="Hotlinking pages" ExtraSectionCodeFilter1="200 304" ExtraSectionCondition1="URL,\.mpeg$||URL,\.mpg$||URL,\.avi$||URL,\.jpg$||URL,\.gif$" ExtraSectionFirstColumnTitle1="Referrer" ExtraSectionFirstColumnValues1="REFERER,^(?!http:\/\/www.your_site.com)http:\/\/(.*)$" ExtraSectionFirstColumnFormat1="<a href='http://%s' target='_blank'>%s</a>" ExtraSectionStatTypes1=HBL ExtraSectionAddSumRow1=1 MaxNbOfExtra1=25 MinHitExtra1=1
ExtraSectionName1="Unauthorized (401)" ExtraSectionCodeFilter1="401" ExtraSectionCondition1="URL,^.*$" ExtraSectionFirstColumnTitle1="URL" ExtraSectionFirstColumnValues1="URL,^(.*)$" ExtraSectionFirstColumnFormat1="<A HREF='http://www.your_site.com%s' TARGET='_blank'>%s</A>" ExtraSectionStatTypes1=HBL ExtraSectionAddSumRow1=1 MaxNbOfExtra1=10 MinHitExtra1=1
Lists the top 25 referrers by domain. Change your_site.com to your domain.
# # top 25 referrers # ExtraSectionName1="Referring Sites by domain - Top 25" ExtraSectionCodeFilter1="200 304" ExtraSectionFirstColumnTitle1="Site" ExtraSectionFirstColumnValues1="REFERER,^(?!http:\/\/www.your_site.com)http:\/\/(.*)$" ExtraSectionFirstColumnFormat1="<a href='http://%s' target='_blank'>%s</A>" ExtraSectionStatTypes1=PHBL ExtraSectionAddAverageRow1=1 ExtraSectionAddSumRow1=1 MaxNbOfExtra1=25 MinHitExtra1=1