CountrySubdomains — honor ccTLD domains in IP qualification
This directive enables Interchange to take ccTLDs into account when
DomainTail
is enabled.
For example, if a visit comes from an address like
"machine.example.co.uk
" and co.uk
is listed as ccTLD, then, with
CountrySubdomains
, "example.co.uk
" would be used
as domain tail instead of just "co.uk
".
CountrySubdomains
accepts a list of country codes and their
subdomains. A predefined, ready for use configuration
block can be found in file
dist/subdomains.cfg in Interchange source and
should be included from interchange.cfg
.
Example: Appending or overwriting entries in CountrySubdomains list
CountrySubdomains <<EOC ae "ac gov mil name net org pro sch" af "bank com edu gov hotel law music net org tv" ag "co com org net nom" al "com edu gov net org" ao "co ed gv it og pb" EOC CountrySubdomains ar "com edu gov int mil net org" at "ac co gv or priv"
Interchange 5.9.0:
Source: lib/Vend/Config.pm
Line 3188 (context shows lines 3188-3205)
sub parse_hash { my($item,$settings) = @_; if (! $settings) { return $HashDefaultBlank{$item} ? '' : {}; } my $c; if(defined $C) { $c = $C->{$item} || {}; } else { no strict 'refs'; $c = ${"Global::$item"} || {}; } return hash_string($settings,$c); }