AWStats external referrers glitch

yumyum

Registered
Jun 27, 2008
2
0
51
I have a shared hosting account with HostGator running cPanel Build 11.23.3-STABLE 25971.

Since about two days ago AWStats' external referrers report is including local URLs in the external referrers report for add-on domains.

The result is that it is very difficult to see where visitors are originating from as local URLs now dominate the report.

Anybody else seeing this?

FYI, I filed a bug report with HostGator support and got this response:

This is probably a result of the update that the cpanel team pushed out to every single cpanel server in the world, not just ours, and as a result we will have to wait until there is a proper fix from them.

Just to be safe, I would recommend creating an account on the cpanel forum and asking around there. If you will do that and then provide a link to the post here, we can monitor the topic and see what they say, providing information where needed.


Any advice would be appreciated :)
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I am not experiencing these issues on my website running on:

WHM 11.23.2 cPanel 11.23.3-S25971
CENTOS Enterprise 4.6 i686 on standard - WHM X v3.1.0

You should have your hosting provider submit a ticket to our technical analysts so we can actively resolve this issue on their servers.
 

Johnson

Active Member
Apr 16, 2003
44
0
156
We have the same issue on our server on 11.23.3-RELEASE_25971

cpanellogd adds only main domain name (with and without www) + 'localhost 127.0.0.1' into HostAlias tag in the awstats conf file for every addon domain.

Could you please check the following code in /usr/local/cpanel/cpanellogd line 830:
Code:
    # Build HostAliases line - parameter used to analyze referrer field
    my %host_aliases;
    foreach my $bdomain ( $domain, $maindomain, @{$domainref} ) {
        $bdomain = lc $bdomain;
        $bdomain =~ s/\s+//g;
        $host_aliases{$domain} = 1;
        if ( $bdomain !~ m/^www\./ ) {
            $host_aliases{ 'www.' . $domain } = 1;
        }
    }
As you can see it adds ONLY main domain into $host_aliases hash.

Are you sure it should not look like this?
Code:
    # Build HostAliases line - parameter used to analyze referrer field
    my %host_aliases;
    foreach my $bdomain ( $domain, $maindomain, @{$domainref} ) {
        $bdomain = lc $bdomain;
        $bdomain =~ s/\s+//g;
        $host_aliases{$[B]b[/B]domain} = 1;
        if ( $bdomain !~ m/^www\./ ) {
            $host_aliases{ 'www.' . $[B]b[/B]domain } = 1;
        }
    }
Please advise.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
We have the same issue on our server on 11.23.3-RELEASE_25971

cpanellogd adds only main domain name (with and without www) + 'localhost 127.0.0.1' into HostAlias tag in the awstats conf file for every addon domain.

Could you please check the following code in /usr/local/cpanel/cpanellogd line 830:
Code:
    # Build HostAliases line - parameter used to analyze referrer field
    my %host_aliases;
    foreach my $bdomain ( $domain, $maindomain, @{$domainref} ) {
        $bdomain = lc $bdomain;
        $bdomain =~ s/\s+//g;
        $host_aliases{$domain} = 1;
        if ( $bdomain !~ m/^www\./ ) {
            $host_aliases{ 'www.' . $domain } = 1;
        }
    }
As you can see it adds ONLY main domain into $host_aliases hash.

Are you sure it should not look like this?
Code:
    # Build HostAliases line - parameter used to analyze referrer field
    my %host_aliases;
    foreach my $bdomain ( $domain, $maindomain, @{$domainref} ) {
        $bdomain = lc $bdomain;
        $bdomain =~ s/\s+//g;
        $host_aliases{$[B]b[/B]domain} = 1;
        if ( $bdomain !~ m/^www\./ ) {
            $host_aliases{ 'www.' . $[B]b[/B]domain } = 1;
        }
    }
Please advise.
This issue is resolved in the builds that were published last night for RELEASE, CURRENT and EDGE.
 

AlexV.

Well-Known Member
Jun 15, 2006
212
1
168
Please open a support ticket 'ATTN: QA' in regards this issue.
 

PCZero

Well-Known Member
Dec 13, 2003
778
103
193
Earth
This error is back!

cPanel 11.25.0-R42399 - WHM 11.25.0 - X 3.9

I get the Access Denied: Referrer Check warning on any account when I run AWStats. My clients are freaking out.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
This error is back!

cPanel 11.25.0-R42399 - WHM 11.25.0 - X 3.9

I get the Access Denied: Referrer Check warning on any account when I run AWStats. My clients are freaking out.
I was unable to reproduce this upon an initial test using EDGE but on the same build ID (11.25.0-EDGE_42399); however, the issue could depend on the unique circumstances and the specific configurations being used on the server that can only be determined via direct access to the system. So that we can verify the details and circumstances involved please submit a support request; this may be initiated via the WHM Support Center or using the link in my forums signature. When available, please PM me the ticket ID so I may follow-up internally.