package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Oct 11, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package fingerprint matches DNS answers and HTTP responses against known
block stubs and block pages.
IsBogon reports whether ip is not a valid public unicast address
(private, loopback, link-local, CGNAT, documentation, unspecified...).
type DB struct {
DNS []DNSStub `yaml:"dns"`
HTTP []HTTPPage `yaml:"http"`
}
DB is a fingerprint database.
Default returns the embedded fingerprint database.
Parse decodes a fingerprint database.
MatchDNS returns the fingerprint id when any address is a known stub.
MatchHTTP returns the fingerprint id when the redirect location or body matches.
type DNSStub struct {
ID string `yaml:"id"`
IP string `yaml:"ip"`
ISP string `yaml:"isp"`
}
DNSStub is a known stub address returned instead of the real one.
type HTTPPage struct {
ID string `yaml:"id"`
Where string `yaml:"where"`
Match string `yaml:"match"`
Pattern string `yaml:"pattern"`
}
HTTPPage is a known block page indicator.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.