Skip to content

Commit 78427bc

Browse files
committed
feat: 补充 IP 情报匹配规则
1 parent 24ad7bf commit 78427bc

2 files changed

Lines changed: 109 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.2.49",
4+
"version": "1.2.50",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/headers/header-patterns.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4248,6 +4248,114 @@
42484248
}
42494249
]
42504250
},
4251+
{
4252+
"defaults": {
4253+
"category": "IP 地理位置 / IP 情报",
4254+
"confidence": ""
4255+
},
4256+
"rules": [
4257+
{
4258+
"name": "IPinfo",
4259+
"patterns": ["url: https?://ipinfo\\.io/(?:json|[0-9a-f:.]+/(?:json|geo))"],
4260+
"evidence": "响应 URL 指向 IPinfo API"
4261+
},
4262+
{
4263+
"name": "ipapi.co",
4264+
"patterns": ["url: https?://ipapi\\.co/(?:json|[0-9a-f:.]+/(?:json|country|city|latlong))"],
4265+
"evidence": "响应 URL 指向 ipapi.co API"
4266+
},
4267+
{
4268+
"name": "IP-API.com",
4269+
"patterns": ["url: https?://(?:(?:pro|api)\\.)?ip-api\\.com/(?:json|batch)"],
4270+
"evidence": "响应 URL 指向 IP-API.com"
4271+
},
4272+
{
4273+
"name": "ipstack",
4274+
"patterns": ["url: https?://api\\.ipstack\\.com/(?:check|[0-9a-f:.]+)"],
4275+
"evidence": "响应 URL 指向 ipstack API"
4276+
},
4277+
{
4278+
"name": "ipdata",
4279+
"patterns": ["url: https?://api\\.ipdata\\.co/(?:[0-9a-f:.]+|\\?)"],
4280+
"evidence": "响应 URL 指向 ipdata API"
4281+
},
4282+
{
4283+
"name": "IPGeolocation.io",
4284+
"patterns": ["url: https?://api\\.ipgeolocation\\.io/(?:ipgeo|timezone|astronomy)"],
4285+
"evidence": "响应 URL 指向 IPGeolocation.io API"
4286+
},
4287+
{
4288+
"name": "Ipregistry",
4289+
"patterns": ["url: https?://api\\.ipregistry\\.co/(?:[0-9a-f:.]+|\\?)"],
4290+
"evidence": "响应 URL 指向 Ipregistry API"
4291+
},
4292+
{
4293+
"name": "Abstract IP Geolocation",
4294+
"patterns": ["url: https?://ipgeolocation\\.abstractapi\\.com/v[0-9]+/"],
4295+
"evidence": "响应 URL 指向 Abstract IP Geolocation API"
4296+
},
4297+
{
4298+
"name": "MaxMind GeoIP2",
4299+
"patterns": ["url: https?://geoip\\.maxmind\\.com/geoip/v[0-9.]+/(?:city|country|insights)"],
4300+
"evidence": "响应 URL 指向 MaxMind GeoIP2"
4301+
},
4302+
{
4303+
"name": "DB-IP API",
4304+
"patterns": ["url: https?://api\\.db-ip\\.com/v[0-9]+/(?:[0-9a-f:.]+|free|addrinfo)"],
4305+
"evidence": "响应 URL 指向 DB-IP API"
4306+
},
4307+
{
4308+
"name": "IP2Location.io",
4309+
"patterns": ["url: https?://api\\.ip2location\\.io/"],
4310+
"evidence": "响应 URL 指向 IP2Location.io API"
4311+
},
4312+
{
4313+
"name": "IPWhois.app",
4314+
"patterns": ["url: https?://ipwhois\\.app/(?:json|xml|line)/"],
4315+
"evidence": "响应 URL 指向 IPWhois.app"
4316+
},
4317+
{
4318+
"name": "ipwho.is",
4319+
"patterns": ["url: https?://ipwho\\.is/(?:[0-9a-f:.]+)?(?:\\?|$)"],
4320+
"evidence": "响应 URL 指向 ipwho.is"
4321+
},
4322+
{
4323+
"name": "BigDataCloud IP Geolocation",
4324+
"patterns": ["url: https?://api\\.bigdatacloud\\.net/data/(?:ip-geolocation|ip-geolocation-full|client-ip)"],
4325+
"evidence": "响应 URL 指向 BigDataCloud IP Geolocation"
4326+
},
4327+
{
4328+
"name": "ipbase",
4329+
"patterns": ["url: https?://api\\.ipbase\\.com/v[0-9]+/(?:info|json)"],
4330+
"evidence": "响应 URL 指向 ipbase API"
4331+
},
4332+
{
4333+
"name": "ipfind",
4334+
"patterns": ["url: https?://api\\.ipfind\\.com/(?:\\?|me|ip)"],
4335+
"evidence": "响应 URL 指向 ipfind API"
4336+
},
4337+
{
4338+
"name": "ipapi.is",
4339+
"patterns": ["url: https?://api\\.ipapi\\.is/"],
4340+
"evidence": "响应 URL 指向 ipapi.is API"
4341+
},
4342+
{
4343+
"name": "ipapi.com",
4344+
"patterns": ["url: https?://api\\.ipapi\\.com/api/(?:check|[0-9a-f:.]+)"],
4345+
"evidence": "响应 URL 指向 ipapi.com API"
4346+
},
4347+
{
4348+
"name": "IPLocation.net API",
4349+
"patterns": ["url: https?://api\\.iplocation\\.net/"],
4350+
"evidence": "响应 URL 指向 IPLocation.net API"
4351+
},
4352+
{
4353+
"name": "FreeGeoIP.app",
4354+
"patterns": ["url: https?://freegeoip\\.app/(?:json|xml|csv)/"],
4355+
"evidence": "响应 URL 指向 FreeGeoIP.app"
4356+
}
4357+
]
4358+
},
42514359
{
42524360
"defaults": {
42534361
"category": "Web Push / 消息推送",

0 commit comments

Comments
 (0)