Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

AWStats and CloudFlare (IIS) - solution

2013-12-04
2013-12-04
  • Agrinei Sousa
    Agrinei Sousa
    2013-12-04

    After configuring CloudFlare services for my website (IIS 7.5) I noticed that 'number of visits' and 'GeoIp City' statistics weren't correct. This is expected since requests are coming from CloudFlare servers. In order to have original visitor ip in the IIS log files I installed ModCloudFlareIIS but this is not enough to get correct statistics. After diving a little deeper I managed to patch the awstats.pl (7.2 - 2013-07-09) file to extract the original visitor ip appended by the ModCloudFlareIIS. I'm attaching the patch because I think it can be useful for other AWStats users.

     
    Last edit: Agrinei Sousa 2013-12-04