Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Categories = map[string]Category{
"crawler": {"crawler", "IP ranges used by web crawlers and bots"},
"residential": {"residential", "IP ranges assigned to residential users by ISPs"},
"business": {"business", "IP ranges assigned to businesses"},
"mobile": {"mobile", "IP ranges used by mobile carriers for their data services"},
"datacenter": {"datacenter", "IP ranges belonging to data centers and hosting providers"},
"education": {"education", "IP ranges assigned to educational institutions"},
"government": {"government", "IP ranges used by government agencies"},
"healthcare": {"healthcare", "IP ranges used by healthcare providers"},
"cdn": {"cdn", "IP ranges used by content delivery networks"},
"isp": {"isp", "IP ranges owned by internet service providers"},
"vpn": {"vpn", "IP ranges used by VPN and proxy services"},
"spam": {"spam", "IP ranges identified as sources of spam activity"},
"malicious": {"malicious", "IP ranges identified as sources of malicious activity"},
"private": {"private", "Non-routable IP ranges used for private networks"},
"iot": {"iot", "IP ranges used by Internet of Things devices"},
"telecom": {"telecom", "IP ranges used by telecommunications companies"},
"rnd": {"rnd", "IP ranges used by research and development networks"},
"social": {"social", "IP ranges belonging to social media platforms"},
"gaming": {"gaming", "IP ranges used by online gaming platforms"},
}
Predefined Category map.
View Source
var IPRangeSources = map[string]*IPSource{ "aws": { URL: "https://ip-ranges.amazonaws.com/ip-ranges.json", Name: "Amazon AWS", Description: "Amazon AWS IP Ranges", Categories: []Category{Categories["datacenter"]}, DataFilename: filepath.Join(utils.GetDataDirectory(), "aws.bin"), RefreshInterval: 48 * time.Hour, Fetcher: fetchAWSData, }, "google": { URL: "https://www.gstatic.com/ipranges/cloud.json", Name: "Google Cloud", Description: "Google Cloud IP Ranges", Categories: []Category{Categories["datacenter"]}, DataFilename: filepath.Join(utils.GetDataDirectory(), "google.bin"), RefreshInterval: 48 * time.Hour, Fetcher: fetchGoogleData, }, "google-bot": { URL: "https://developers.google.com/static/search/apis/ipranges/googlebot.json", Name: "GoogleBot", Description: "GoogleBot IP Ranges of the main crawlers", Categories: []Category{Categories["crawler"]}, DataFilename: filepath.Join(utils.GetDataDirectory(), "googlebot.bin"), RefreshInterval: 24 * time.Hour, Fetcher: fetchGoogleBotData, }, "google-bot-special": { URL: "https://developers.google.com/static/search/apis/ipranges/special-crawlers.json", Name: "GoogleBot Special Crawlers", Description: "GoogleBot IP Ranges of the special crawlers", Categories: []Category{Categories["crawler"]}, DataFilename: filepath.Join(utils.GetDataDirectory(), "googlebot-special.bin"), RefreshInterval: 24 * time.Hour, Fetcher: fetchGoogleBotData, }, "google-user-triggered-fetchers-google": { URL: "https://developers.google.com/static/search/apis/ipranges/user-triggered-fetchers-google.json", Name: "GoogleBot Users Triggered (Google)", Description: "GoogleBot IP Ranges of the user triggered crawlers (google IPs)", Categories: []Category{Categories["crawler"]}, DataFilename: filepath.Join(utils.GetDataDirectory(), "google-user-triggered-fetchers-google.bin"), RefreshInterval: 24 * time.Hour, Fetcher: fetchGoogleBotData, }, "bingbot": { URL: "https://www.bing.com/toolbox/bingbot.json", Name: "BingBot", Description: "BingBot IP Ranges", Categories: []Category{Categories["crawler"]}, DataFilename: filepath.Join(utils.GetDataDirectory(), "bingbot.bin"), RefreshInterval: 24 * time.Hour, Fetcher: fetchBingBotData, }, }
Predefined IP range sources.
Functions ¶
This section is empty.
Types ¶
type IPMetaData ¶
IPMetaData holds the IP ranges for a source.
Click to show internal directories.
Click to hide internal directories.