Smartlab Software logo

AWStats: ExtraSection Usage

AWStats logo How to set up AWStats extra section. Several useful extras are included.

Steps

  1. Acquire AWStats, other programs, and pertinent information
  2. Install AWStats on the 1and1 shared server
  3. Install AWStats on your computer
  4. Set up the AWStats config file
  5. Create a usable log file
  6. Create/update the AWStats database
  7. Create a traffic web page
  8. Create report batch files
  9. Analyze the traffic page
  10. Tasks

Extending AWStats

  1. Extras
  2. Geographic Plug-ins
  3. How To

Help

  1. Glossary
  2. FAQ
  3. Pages not found FAQ
  4. Stop Referrer Spam

AWStats ExtraSection

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.

HotLinks

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 

HTTP Error Code

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 

Top 25 Referrers by Domain

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

Related resources

wget - Windows version