Name

CountrySubdomains — honor ccTLD domains in IP qualification

SYNOPSIS

country_code ccTLD_list...

DESCRIPTION

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.

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive

EXAMPLES

Example: Including ready-made subdomains.cfg in interchange.cfg

include subdomains.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"

NOTES

AVAILABILITY

CountrySubdomains is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 483

['CountrySubdomains','hash',             ''],

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);
}

AUTHORS

Kevin Walsh

SEE ALSO

WideOpen(7ic), IpHead(7ic), IpQuad(7ic), DomainTail(7ic)

DocBook! Interchange!