Distinguish between local and non-local links when anonymizing

Local link domains are defined from an environment variable, and will
not be anonymized.