mod_asn - Apache 模块


未知
跨平台
C/C++

软件简介

mod_asn 是一个通过IP地址在 BGP 路由数据中寻找自治系统和网络子网的Apache模块。mod_asn 具备高可伸缩性,查询的速度非常快,使用
PostgreSQL ip4r 数据类型。

mod_asn is an Apache module that uses BGP routing data to look up the
autonomous system (AS) and the network prefix (subnet) which contains a given
(client’s) IP address. mod_asn is highly scalable. To do lookups in high-
speed, it uses the PostgreSQL ip4r datatype, which is indexable with a
Patricia Trie algorithm to store network prefixes. This is the most suitable
algorithm, being able to search through around 250,000 existing prefixes
quickly. mod_asn is usable as a standalone module, and the lookup result can
be used by scripts or other Apache modules. For instance, a download
redirector could base its decisions on the lookup result provided by mod_asn.