ASN

Please make sure that your use of the plugin does not overload your ASN providers infrastructure - this generally means that you should not use this plugin in a high-volume environment.

This plugin uses DNS lookups to the services of an external DNS zone such as at http://www.routeviews.org/ to do the actual work. You can create template tags containing the connecting IP's AS number and route info for that AS number.

The default config will add a header field that looks like this:

 X-Spam-ASN: AS24940 213.239.192.0/18

Where "24940" is the ASN and "213.239.192.0/18" is the route announced by that ASN where the connecting IP address came from. If the AS announces multiple networks (more/less specific), they will all be added to the _ASNCIDR_ tag, separated by spaces, eg:

 X-Spam-ASN: AS24940 213.239.192.0/18

Note that the literal "AS" before the ASN in the _ASN_ tag is configurable through the asn_prefix directive and may be set to an empty string.

Headers

ASN _ASN_ _ASNCIDR_

Related Pages