@webdecoy/node 0.22.1 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-OAPCW4BA.mjs → chunk-F2T5V6NK.mjs} +32 -3
- package/dist/{chunk-YHXMGL23.mjs → chunk-POXOR4DB.mjs} +59 -59
- package/dist/{detect-and-gate-DwcmcUjY.d.mts → detect-and-gate-9-vm6nEN.d.mts} +1 -1
- package/dist/{detect-and-gate-yg8SW2bD.d.ts → detect-and-gate-DeD4UBzX.d.ts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +90 -61
- package/dist/index.mjs +2 -2
- package/dist/{sdk-CLrhCMK0.d.mts → sdk-U_qp9ync.d.mts} +1 -1
- package/dist/{sdk-CLrhCMK0.d.ts → sdk-U_qp9ync.d.ts} +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +32 -3
- package/dist/testing.mjs +1 -1
- package/dist/vercel.d.mts +2 -2
- package/dist/vercel.d.ts +2 -2
- package/dist/vercel.js +90 -61
- package/dist/vercel.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -395,6 +395,10 @@ var BOT_REGISTRY = [
|
|
|
395
395
|
{ id: "velenpublicwebcrawler", name: "VelenPublicWebCrawler", category: "training_crawler", organization: "Velen", baseScore: 70, respectsRobots: false, uaPatterns: ["velenpublicwebcrawler"] },
|
|
396
396
|
{ id: "isscyberriskcrawler", name: "ISSCyberRiskCrawler", category: "training_crawler", organization: "ISS", baseScore: 65, respectsRobots: false, uaPatterns: ["isscyberriskcrawler"] },
|
|
397
397
|
{ id: "friendlycrawler", name: "FriendlyCrawler", category: "training_crawler", organization: "Unknown", baseScore: 65, respectsRobots: true, uaPatterns: ["friendlycrawler"] },
|
|
398
|
+
{ id: "elevenlabscrawler", name: "ElevenlabsCrawler", category: "training_crawler", organization: "ElevenLabs", baseScore: 80, respectsRobots: true, uaPatterns: ["elevenlabscrawler"] },
|
|
399
|
+
{ id: "kimibot", name: "KimiBot", category: "training_crawler", organization: "Moonshot AI", baseScore: 80, respectsRobots: true, uaPatterns: ["kimibot"] },
|
|
400
|
+
{ id: "moonshotbot", name: "MoonshotBot", category: "training_crawler", organization: "Moonshot AI", baseScore: 80, respectsRobots: false, uaPatterns: ["moonshotbot"] },
|
|
401
|
+
{ id: "chatglm-spider", name: "ChatGLM-Spider", category: "training_crawler", organization: "Zhipu AI", baseScore: 80, respectsRobots: false, uaPatterns: ["chatglm-spider"] },
|
|
398
402
|
{ id: "duckassistbot", name: "DuckAssistBot", category: "ai_search_crawler", organization: "DuckDuckGo", baseScore: 65, respectsRobots: true, uaPatterns: ["duckassistbot"] },
|
|
399
403
|
{ id: "sofyabot", name: "SofyaBot", category: "ai_search_crawler", organization: "Sofya", baseScore: 65, respectsRobots: true, uaPatterns: ["sofyabot"] },
|
|
400
404
|
{ id: "xai-searchbot", name: "xAI-SearchBot", category: "ai_search_crawler", organization: "xAI", baseScore: 70, respectsRobots: true, uaPatterns: ["xai-searchbot"] },
|
|
@@ -412,6 +416,10 @@ var BOT_REGISTRY = [
|
|
|
412
416
|
{ id: "tavily", name: "Tavily", category: "ai_search_crawler", organization: "Tavily", baseScore: 70, respectsRobots: true, uaPatterns: ["tavily"] },
|
|
413
417
|
{ id: "brave-search", name: "BraveSearch", category: "ai_search_crawler", organization: "Brave", baseScore: 65, respectsRobots: true, uaPatterns: ["bravesearch"] },
|
|
414
418
|
{ id: "neeva", name: "NeevaBot", category: "ai_search_crawler", organization: "Neeva", baseScore: 65, respectsRobots: true, uaPatterns: ["neevabot"] },
|
|
419
|
+
{ id: "kimi-searchbot", name: "Kimi-SearchBot", category: "ai_search_crawler", organization: "Moonshot AI", baseScore: 65, respectsRobots: true, uaPatterns: ["kimi-searchbot"] },
|
|
420
|
+
{ id: "keenablebot", name: "KeenableBot", category: "ai_search_crawler", organization: "Keenable", baseScore: 65, respectsRobots: true, uaPatterns: ["keenablebot"] },
|
|
421
|
+
{ id: "azureai-searchbot", name: "AzureAI-SearchBot", category: "ai_search_crawler", organization: "Microsoft", baseScore: 65, respectsRobots: false, uaPatterns: ["azureai-searchbot"] },
|
|
422
|
+
{ id: "grokbot", name: "GrokBot", category: "ai_search_crawler", organization: "xAI", baseScore: 70, respectsRobots: false, uaPatterns: ["grokbot"] },
|
|
415
423
|
{ id: "operator", name: "Operator", category: "ai_agent", organization: "OpenAI", baseScore: 75, respectsRobots: true, uaPatterns: ["operator"] },
|
|
416
424
|
{ id: "claude-user", name: "Claude-User", category: "ai_agent", organization: "Anthropic", baseScore: 75, respectsRobots: true, uaPatterns: ["claude-user"] },
|
|
417
425
|
{ id: "gemini-user", name: "Gemini-User", category: "ai_agent", organization: "Google", baseScore: 75, respectsRobots: true, uaPatterns: ["gemini-user"] },
|
|
@@ -421,7 +429,8 @@ var BOT_REGISTRY = [
|
|
|
421
429
|
{ id: "stagehand", name: "Stagehand", category: "ai_agent", organization: "Browserbase", baseScore: 70, respectsRobots: false, uaPatterns: ["stagehand"] },
|
|
422
430
|
{ id: "manus-user", name: "Manus-User", category: "ai_agent", organization: "Manus", baseScore: 70, respectsRobots: false, uaPatterns: ["manus-user"] },
|
|
423
431
|
{ id: "multion", name: "MultiOn", category: "ai_agent", organization: "MultiOn", baseScore: 70, respectsRobots: false, uaPatterns: ["multion"] },
|
|
424
|
-
{ id: "
|
|
432
|
+
{ id: "opencode-user", name: "OpenCode-User", category: "ai_agent", organization: "OpenCode", baseScore: 75, respectsRobots: false, uaPatterns: ["opencode-user"] },
|
|
433
|
+
{ id: "iboubot", name: "IbouBot", category: "search_crawler", organization: "Ibou", baseScore: 30, respectsRobots: true, uaPatterns: ["iboubot", "ibou-search"] },
|
|
425
434
|
{ id: "googlebot", name: "Googlebot", category: "search_crawler", organization: "Google", baseScore: 30, respectsRobots: true, uaPatterns: ["googlebot"] },
|
|
426
435
|
{ id: "google-inspectiontool", name: "Google-InspectionTool", category: "search_crawler", organization: "Google", baseScore: 30, respectsRobots: true, uaPatterns: ["google-inspectiontool"] },
|
|
427
436
|
{ id: "bingbot", name: "Bingbot", category: "search_crawler", organization: "Microsoft", baseScore: 30, respectsRobots: true, uaPatterns: ["bingbot"] },
|
|
@@ -432,12 +441,16 @@ var BOT_REGISTRY = [
|
|
|
432
441
|
{ id: "duckduckbot", name: "DuckDuckBot", category: "search_crawler", organization: "DuckDuckGo", baseScore: 30, respectsRobots: true, uaPatterns: ["duckduckbot"] },
|
|
433
442
|
{ id: "applebot", name: "Applebot", category: "search_crawler", organization: "Apple", baseScore: 30, respectsRobots: true, uaPatterns: ["applebot"] },
|
|
434
443
|
{ id: "sogou", name: "Sogou Spider", category: "search_crawler", organization: "Sogou", baseScore: 40, respectsRobots: true, uaPatterns: ["sogou"] },
|
|
435
|
-
{ id: "qwantify", name: "Qwantify", category: "search_crawler", organization: "Qwant", baseScore: 35, respectsRobots: true, uaPatterns: ["qwantify"] },
|
|
444
|
+
{ id: "qwantify", name: "Qwantify", category: "search_crawler", organization: "Qwant", baseScore: 35, respectsRobots: true, uaPatterns: ["qwantify", "qwantbot"] },
|
|
436
445
|
{ id: "naver", name: "Naver", category: "search_crawler", organization: "Naver", baseScore: 35, respectsRobots: true, uaPatterns: ["naver", "yeti"] },
|
|
437
446
|
{ id: "seznam", name: "SeznamBot", category: "search_crawler", organization: "Seznam", baseScore: 35, respectsRobots: true, uaPatterns: ["seznambot"] },
|
|
438
447
|
{ id: "ecosia", name: "Ecosia", category: "search_crawler", organization: "Ecosia", baseScore: 30, respectsRobots: true, uaPatterns: ["ecosia"] },
|
|
439
448
|
{ id: "mojeek", name: "MojeekBot", category: "search_crawler", organization: "Mojeek", baseScore: 35, respectsRobots: true, uaPatterns: ["mojeekbot"] },
|
|
440
449
|
{ id: "yahoo-slurp", name: "Yahoo! Slurp", category: "search_crawler", organization: "Yahoo", baseScore: 30, respectsRobots: true, uaPatterns: ["slurp"] },
|
|
450
|
+
{ id: "bravebot", name: "Bravebot", category: "search_crawler", organization: "Brave", baseScore: 30, respectsRobots: true, uaPatterns: ["bravebot"] },
|
|
451
|
+
{ id: "coccocbot", name: "Coc Coc", category: "search_crawler", organization: "Coc Coc", baseScore: 35, respectsRobots: true, uaPatterns: ["coccocbot"] },
|
|
452
|
+
{ id: "yisouspider", name: "YisouSpider", category: "search_crawler", organization: "Alibaba", baseScore: 40, respectsRobots: true, uaPatterns: ["yisouspider"] },
|
|
453
|
+
{ id: "yepbot", name: "YepBot", category: "search_crawler", organization: "Ahrefs", baseScore: 30, respectsRobots: true, uaPatterns: ["yepbot"] },
|
|
441
454
|
{ id: "ahrefsbot", name: "AhrefsBot", category: "seo_crawler", organization: "Ahrefs", baseScore: 50, respectsRobots: true, uaPatterns: ["ahrefsbot", "ahrefs"] },
|
|
442
455
|
{ id: "semrushbot", name: "SemrushBot", category: "seo_crawler", organization: "Semrush", baseScore: 50, respectsRobots: true, uaPatterns: ["semrushbot", "semrush"] },
|
|
443
456
|
{ id: "mj12bot", name: "MJ12bot", category: "seo_crawler", organization: "Majestic", baseScore: 50, respectsRobots: true, uaPatterns: ["mj12bot"] },
|
|
@@ -452,6 +465,13 @@ var BOT_REGISTRY = [
|
|
|
452
465
|
{ id: "sistrix", name: "SISTRIX", category: "seo_crawler", organization: "SISTRIX", baseScore: 50, respectsRobots: true, uaPatterns: ["sistrix"] },
|
|
453
466
|
{ id: "serpstat", name: "Serpstat", category: "seo_crawler", organization: "Serpstat", baseScore: 50, respectsRobots: true, uaPatterns: ["serpstat"] },
|
|
454
467
|
{ id: "spyfu", name: "SpyFu", category: "seo_crawler", organization: "SpyFu", baseScore: 50, respectsRobots: true, uaPatterns: ["spyfu"] },
|
|
468
|
+
{ id: "meta-externalads", name: "meta-externalads", category: "seo_crawler", organization: "Meta", baseScore: 40, respectsRobots: true, uaPatterns: ["meta-externalads"] },
|
|
469
|
+
{ id: "dataforseobot", name: "DataForSeoBot", category: "seo_crawler", organization: "DataForSEO", baseScore: 50, respectsRobots: true, uaPatterns: ["dataforseobot"] },
|
|
470
|
+
{ id: "serankingbacklinksbot", name: "SERankingBacklinksBot", category: "seo_crawler", organization: "SE Ranking", baseScore: 50, respectsRobots: true, uaPatterns: ["serankingbacklinksbot"] },
|
|
471
|
+
{ id: "awariobot", name: "AwarioBot", category: "seo_crawler", organization: "Awario", baseScore: 50, respectsRobots: true, uaPatterns: ["awariobot", "awariosmartbot"] },
|
|
472
|
+
{ id: "seojuice-searchbot", name: "SEOJuice-SearchBot", category: "seo_crawler", organization: "SEOJuice", baseScore: 50, respectsRobots: true, uaPatterns: ["seojuice-searchbot"] },
|
|
473
|
+
{ id: "trendictionbot", name: "trendictionbot", category: "seo_crawler", organization: "Talkwalker", baseScore: 50, respectsRobots: true, uaPatterns: ["trendictionbot"] },
|
|
474
|
+
{ id: "hubspot-crawler", name: "HubSpot Crawler", category: "seo_crawler", organization: "HubSpot", baseScore: 45, respectsRobots: true, uaPatterns: ["hubspot crawler"] },
|
|
455
475
|
{ id: "nessus", name: "Nessus", category: "security_scanner", organization: "Tenable", baseScore: 70, respectsRobots: false, uaPatterns: ["nessus"] },
|
|
456
476
|
{ id: "qualys", name: "Qualys", category: "security_scanner", organization: "Qualys", baseScore: 70, respectsRobots: false, uaPatterns: ["qualys"] },
|
|
457
477
|
{ id: "shodan", name: "Shodan", category: "security_scanner", organization: "Shodan", baseScore: 75, respectsRobots: false, uaPatterns: ["shodan"] },
|
|
@@ -513,6 +533,11 @@ var BOT_REGISTRY = [
|
|
|
513
533
|
{ id: "reddit", name: "Reddit", category: "fetcher", organization: "Reddit", baseScore: 30, respectsRobots: true, uaPatterns: ["reddit"] },
|
|
514
534
|
{ id: "embedly", name: "Embedly", category: "fetcher", organization: "Medium", baseScore: 30, respectsRobots: true, uaPatterns: ["embedly"] },
|
|
515
535
|
{ id: "iframely", name: "Iframely", category: "fetcher", organization: "Iframely", baseScore: 30, respectsRobots: true, uaPatterns: ["iframely"] },
|
|
536
|
+
{ id: "adsbot-google", name: "AdsBot-Google", category: "fetcher", organization: "Google", baseScore: 25, respectsRobots: true, uaPatterns: ["adsbot-google"] },
|
|
537
|
+
{ id: "google-read-aloud", name: "Google-Read-Aloud", category: "fetcher", organization: "Google", baseScore: 25, respectsRobots: false, uaPatterns: ["google-read-aloud"] },
|
|
538
|
+
{ id: "google-safety", name: "Google-Safety", category: "fetcher", organization: "Google", baseScore: 25, respectsRobots: false, uaPatterns: ["google-safety"] },
|
|
539
|
+
{ id: "oai-adsbot", name: "OAI-AdsBot", category: "fetcher", organization: "OpenAI", baseScore: 30, respectsRobots: true, uaPatterns: ["oai-adsbot"] },
|
|
540
|
+
{ id: "kakaobot", name: "KakaoBot", category: "fetcher", organization: "Kakao", baseScore: 25, respectsRobots: true, uaPatterns: ["kakaobot"] },
|
|
516
541
|
{ id: "curl", name: "cURL", category: "fetcher", organization: "Open Source", baseScore: 45, respectsRobots: false, uaPatterns: ["curl/"] },
|
|
517
542
|
{ id: "wget", name: "Wget", category: "fetcher", organization: "GNU", baseScore: 45, respectsRobots: false, uaPatterns: ["wget/"] },
|
|
518
543
|
{ id: "libwww-perl", name: "libwww-perl", category: "fetcher", organization: "Perl", baseScore: 50, respectsRobots: false, uaPatterns: ["libwww-perl"] },
|
|
@@ -559,7 +584,11 @@ var BOT_REGISTRY = [
|
|
|
559
584
|
{ id: "gemini-deep-research", name: "Gemini-Deep-Research", category: "ai_assistant", organization: "Google", baseScore: 65, respectsRobots: true, uaPatterns: ["gemini-deep-research"] },
|
|
560
585
|
{ id: "copilot", name: "Microsoft Copilot", category: "ai_assistant", organization: "Microsoft", baseScore: 65, respectsRobots: true, uaPatterns: ["copilot"] },
|
|
561
586
|
{ id: "cortana", name: "Cortana", category: "ai_assistant", organization: "Microsoft", baseScore: 60, respectsRobots: true, uaPatterns: ["cortana"] },
|
|
562
|
-
{ id: "siri", name: "Siri", category: "ai_assistant", organization: "Apple", baseScore: 60, respectsRobots: true, uaPatterns: ["siri"] }
|
|
587
|
+
{ id: "siri", name: "Siri", category: "ai_assistant", organization: "Apple", baseScore: 60, respectsRobots: true, uaPatterns: ["siri"] },
|
|
588
|
+
{ id: "kimi-user", name: "Kimi-User", category: "ai_assistant", organization: "Moonshot AI", baseScore: 70, respectsRobots: true, uaPatterns: ["kimi-user"] },
|
|
589
|
+
{ id: "keenable-user", name: "Keenable-User", category: "ai_assistant", organization: "Keenable", baseScore: 70, respectsRobots: true, uaPatterns: ["keenable-user"] },
|
|
590
|
+
{ id: "elevenlabsbot", name: "ElevenlabsBot", category: "ai_assistant", organization: "ElevenLabs", baseScore: 70, respectsRobots: true, uaPatterns: ["elevenlabsbot"] },
|
|
591
|
+
{ id: "klaviyoaibot", name: "KlaviyoAIBot", category: "ai_assistant", organization: "Klaviyo", baseScore: 60, respectsRobots: true, uaPatterns: ["klaviyoaibot"] }
|
|
563
592
|
];
|
|
564
593
|
|
|
565
594
|
// src/bots/index.ts
|
|
@@ -3934,13 +3963,13 @@ function resolveClientIp(options) {
|
|
|
3934
3963
|
}
|
|
3935
3964
|
|
|
3936
3965
|
// src/clearance/gate.generated.js
|
|
3937
|
-
var
|
|
3966
|
+
var C = { "chat.deepseek.com": "DeepSeek", "chat.openai.com": "ChatGPT", "chatgpt.com": "ChatGPT", "claude.ai": "Claude", "copilot.microsoft.com": "Copilot", "deepseek.com": "DeepSeek", "gemini.google.com": "Gemini", "grok.com": "Grok", "kagi.com": "Kagi", "meta.ai": "Meta AI", "perplexity.ai": "Perplexity", "phind.com": "Phind", "www.deepseek.com": "DeepSeek", "www.grok.com": "Grok", "www.kagi.com": "Kagi", "www.meta.ai": "Meta AI", "www.perplexity.ai": "Perplexity", "www.phind.com": "Phind", "www.you.com": "You.com", "you.com": "You.com" };
|
|
3938
3967
|
var rt = ["utm_source", "ref", "utm_medium"];
|
|
3939
3968
|
var ae = 500;
|
|
3940
3969
|
function nt(e, t) {
|
|
3941
3970
|
let r = (e ?? "").trim();
|
|
3942
3971
|
if (r) try {
|
|
3943
|
-
return
|
|
3972
|
+
return C[new URL(r).hostname.toLowerCase()] ?? "";
|
|
3944
3973
|
} catch {
|
|
3945
3974
|
return "";
|
|
3946
3975
|
}
|
|
@@ -3965,9 +3994,9 @@ function ot(e) {
|
|
|
3965
3994
|
n && (t = n.toLowerCase());
|
|
3966
3995
|
} catch {
|
|
3967
3996
|
}
|
|
3968
|
-
if (t = t.replace(/\.$/, ""),
|
|
3997
|
+
if (t = t.replace(/\.$/, ""), C[t]) return C[t];
|
|
3969
3998
|
let r = ie(t);
|
|
3970
|
-
for (let [n, o] of Object.entries(
|
|
3999
|
+
for (let [n, o] of Object.entries(C)) if (r === ie(o.toLowerCase()) || r === n.replace(/^www\./, "").replace(/\./g, "")) return o;
|
|
3971
4000
|
return "";
|
|
3972
4001
|
}
|
|
3973
4002
|
function se(e, t) {
|
|
@@ -4311,12 +4340,12 @@ function O(e) {
|
|
|
4311
4340
|
function be(e, t, r) {
|
|
4312
4341
|
let n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), a = [], i = [], s = /* @__PURE__ */ new Map(), c = (u, f) => {
|
|
4313
4342
|
let v = new Set(u);
|
|
4314
|
-
for (let
|
|
4343
|
+
for (let S of f) for (let _ of s.get(S) ?? []) v.add(_);
|
|
4315
4344
|
return v.size === 0 ? void 0 : [...v].sort();
|
|
4316
4345
|
}, p = (u, f, v) => v ? { pattern: u, required_trust: f, refused_behaviors: v } : { pattern: u, required_trust: f };
|
|
4317
4346
|
for (let u of t) {
|
|
4318
4347
|
if (!I(e, u.pattern)) continue;
|
|
4319
|
-
if ((u.exceptions ?? []).some((
|
|
4348
|
+
if ((u.exceptions ?? []).some((S) => I(e, S))) {
|
|
4320
4349
|
i.push(u.pattern);
|
|
4321
4350
|
continue;
|
|
4322
4351
|
}
|
|
@@ -4324,7 +4353,7 @@ function be(e, t, r) {
|
|
|
4324
4353
|
f === void 0 && a.push(u.pattern);
|
|
4325
4354
|
let v = wt(u.min_trust);
|
|
4326
4355
|
(f === void 0 || v > f) && n.set(u.pattern, v), u.mode !== "monitor" && o.add(u.pattern);
|
|
4327
|
-
for (let
|
|
4356
|
+
for (let S of u.refuse_behaviors ?? []) s.has(u.pattern) || s.set(u.pattern, /* @__PURE__ */ new Set()), s.get(u.pattern)?.add(S);
|
|
4328
4357
|
}
|
|
4329
4358
|
let l = [];
|
|
4330
4359
|
if (a.length === 0) {
|
|
@@ -4362,12 +4391,12 @@ function ye(e, t) {
|
|
|
4362
4391
|
let r = At[e];
|
|
4363
4392
|
return r ? r.every((n) => F(n, t)) : false;
|
|
4364
4393
|
}
|
|
4365
|
-
var
|
|
4394
|
+
var kt = I;
|
|
4366
4395
|
function ve(e, t, r) {
|
|
4367
|
-
return e ? t ? t.some((n) =>
|
|
4396
|
+
return e ? t ? t.some((n) => kt(r, n)) : true : false;
|
|
4368
4397
|
}
|
|
4369
|
-
var
|
|
4370
|
-
var
|
|
4398
|
+
var St = "x-wd-service-token";
|
|
4399
|
+
var Rt = "wd_clearance";
|
|
4371
4400
|
function _e(e, t, r = []) {
|
|
4372
4401
|
if (e.graded && t && !Ot(e.graded.trust, t)) return { pass: false, label: "insufficient-trust" };
|
|
4373
4402
|
if (e.crawler && r.length > 0) {
|
|
@@ -4376,23 +4405,23 @@ function _e(e, t, r = []) {
|
|
|
4376
4405
|
}
|
|
4377
4406
|
return { pass: e.pass, label: e.label };
|
|
4378
4407
|
}
|
|
4379
|
-
async function
|
|
4380
|
-
let n = new URL(e.url).pathname, o = be(n, Tt(t), t.mode), a = o.deciding_mode || t.mode, i = await
|
|
4408
|
+
async function Se(e, t, r) {
|
|
4409
|
+
let n = new URL(e.url).pathname, o = be(n, Tt(t), t.mode), a = o.deciding_mode || t.mode, i = await Ct(e, t, r, o.covering.length > 0, o.excepted_by !== ""), s = i.behavior ?? "", c = _e(i, o.required_trust, o.refused_behaviors), p = c.label === "excepted" ? o.excepted_by : c.label === "unscoped" ? "" : o.attributed, l = !c.pass && a === "enforce", h = o.previews.map((d) => {
|
|
4381
4410
|
let w = _e(i, d.required_trust, d.refused_behaviors ?? []);
|
|
4382
4411
|
return { pattern: d.pattern, refused: !w.pass && !l ? w.label : "" };
|
|
4383
4412
|
});
|
|
4384
4413
|
return { pass: c.pass, label: c.label, pattern: p, mode: a, previews: h, behavior: c.pass ? s : "", crawlerBehavior: i.crawler?.behavior ?? "", referral: se(e, new URL(e.url)), outsideReach: i.outsideReach ?? "" };
|
|
4385
4414
|
}
|
|
4386
|
-
async function
|
|
4415
|
+
async function Ct(e, t, r, n, o) {
|
|
4387
4416
|
let a = await Et(e, t, r);
|
|
4388
4417
|
if (a.grants) return { pass: true, label: "machine" };
|
|
4389
4418
|
let i = await Pt(e, t, r, n, o);
|
|
4390
4419
|
return a.outsideReach ? { ...i, outsideReach: a.outsideReach } : i;
|
|
4391
4420
|
}
|
|
4392
4421
|
async function Et(e, t, r) {
|
|
4393
|
-
let n = e.headers.get(
|
|
4422
|
+
let n = e.headers.get(St);
|
|
4394
4423
|
if (!n) return { grants: false, outsideReach: "" };
|
|
4395
|
-
let o = await
|
|
4424
|
+
let o = await Ce(n, t.keys, r.siteKey);
|
|
4396
4425
|
if (!o || o.typ !== "machine" || !o.sub) return { grants: false, outsideReach: "" };
|
|
4397
4426
|
if (t.active_credentials.includes(o.sub)) return { grants: true, outsideReach: "" };
|
|
4398
4427
|
let a = (t.restricted_credentials ?? []).find((s) => s && s.id === o.sub);
|
|
@@ -4410,9 +4439,9 @@ async function Pt(e, t, r, n, o) {
|
|
|
4410
4439
|
if (s.status === "verified" && Dt(s.category, t)) return { pass: true, label: "signed-agent", behavior: Ae(s.category), crawler: { behavior: Ae(s.category), exempted: true } };
|
|
4411
4440
|
if (s.status === "invalid" && n) return { pass: false, label: "agent-impersonation", crawler: i };
|
|
4412
4441
|
if (!n) return o ? { pass: true, label: "excepted", crawler: i } : { pass: true, label: "unscoped", crawler: i };
|
|
4413
|
-
let c = q(e.headers.get("cookie") ?? "",
|
|
4442
|
+
let c = q(e.headers.get("cookie") ?? "", Rt);
|
|
4414
4443
|
if (!c) return { pass: false, label: "missing", crawler: i };
|
|
4415
|
-
let p = await
|
|
4444
|
+
let p = await Ce(c, t.keys, r.siteKey);
|
|
4416
4445
|
return !p || (p.typ ?? "") !== "" ? { pass: false, label: "invalid", crawler: i } : t.denied_fps && t.denied_fps.includes(p.fp) ? { pass: false, label: "revoked", crawler: i } : { pass: true, label: "valid", graded: { trust: p.trust }, crawler: i };
|
|
4417
4446
|
}
|
|
4418
4447
|
function Tt(e) {
|
|
@@ -4449,7 +4478,7 @@ function Mt(e, t) {
|
|
|
4449
4478
|
function j(e) {
|
|
4450
4479
|
return !e.pass && e.mode === "enforce" && (e.label === "missing" || e.label === "invalid");
|
|
4451
4480
|
}
|
|
4452
|
-
function
|
|
4481
|
+
function Re(e) {
|
|
4453
4482
|
return j(e) ? { ...e, pass: true, label: "outage-pass" } : e;
|
|
4454
4483
|
}
|
|
4455
4484
|
function q(e, t) {
|
|
@@ -4459,11 +4488,11 @@ function q(e, t) {
|
|
|
4459
4488
|
}
|
|
4460
4489
|
return null;
|
|
4461
4490
|
}
|
|
4462
|
-
async function
|
|
4491
|
+
async function Ce(e, t, r) {
|
|
4463
4492
|
try {
|
|
4464
4493
|
let n = e.indexOf(".");
|
|
4465
4494
|
if (n < 0) return null;
|
|
4466
|
-
let o =
|
|
4495
|
+
let o = ke(e.slice(0, n)), a = ke(e.slice(n + 1)), i = JSON.parse(new TextDecoder().decode(o)), s = t.find((l) => l.kid === i.kid);
|
|
4467
4496
|
if (!s) return null;
|
|
4468
4497
|
let c = await crypto.subtle.importKey("raw", Lt(s.public_key), { name: "Ed25519" }, false, ["verify"]);
|
|
4469
4498
|
return !await crypto.subtle.verify({ name: "Ed25519" }, c, a, o) || i.tenant !== r || Date.now() / 1e3 >= i.exp ? null : i;
|
|
@@ -4471,7 +4500,7 @@ async function ke(e, t, r) {
|
|
|
4471
4500
|
return null;
|
|
4472
4501
|
}
|
|
4473
4502
|
}
|
|
4474
|
-
function
|
|
4503
|
+
function ke(e) {
|
|
4475
4504
|
let t = e.replace(/-/g, "+").replace(/_/g, "/") + "=".repeat((4 - e.length % 4) % 4);
|
|
4476
4505
|
return Ee(atob(t));
|
|
4477
4506
|
}
|
|
@@ -4527,7 +4556,7 @@ async function Be(e) {
|
|
|
4527
4556
|
function Oe(e, t, r) {
|
|
4528
4557
|
return `${Ut}|${e}|${t}|${r}`;
|
|
4529
4558
|
}
|
|
4530
|
-
async function
|
|
4559
|
+
async function Kt(e, t, r, n) {
|
|
4531
4560
|
let o = Math.floor(n / 1e3) + 300;
|
|
4532
4561
|
return `${o}.${await Te(e, Oe(t, o, await Be(r)))}`;
|
|
4533
4562
|
}
|
|
@@ -4548,7 +4577,7 @@ async function De(e, t, r = Date.now(), n = fetch) {
|
|
|
4548
4577
|
if (e.method !== "POST") return o(405, { pass: false });
|
|
4549
4578
|
if (!t.sensorKey) return o(503, { pass: false, reason: "unsupported" });
|
|
4550
4579
|
if (await Nt(t.apiBase, t.siteKey, r, n)) return o(409, { pass: false, reason: "mint_available" });
|
|
4551
|
-
let a = await
|
|
4580
|
+
let a = await Kt(t.sensorKey, t.host, e.headers.get("user-agent") ?? "", r);
|
|
4552
4581
|
return o(200, { pass: true, expires_in: 300 }, { "set-cookie": `${J}=${a}; Path=/; Secure; SameSite=Lax; HttpOnly; Max-Age=300` });
|
|
4553
4582
|
}
|
|
4554
4583
|
var Gt = "wdfp1";
|
|
@@ -4608,7 +4637,7 @@ function Le(e) {
|
|
|
4608
4637
|
let t = Y(e);
|
|
4609
4638
|
return { "cache-control": "no-store", "x-wd-clearance": "challenged", "x-wd-challenge": String(t.version), "x-wd-challenge-reason": t.reason, "x-wd-challenge-recoverable": String(t.recoverable) };
|
|
4610
4639
|
}
|
|
4611
|
-
var
|
|
4640
|
+
var $t = 6e4;
|
|
4612
4641
|
var U = "x-wd-clearance";
|
|
4613
4642
|
var Ue = "x-wd-class";
|
|
4614
4643
|
var Ne = "__wd_clearance_check";
|
|
@@ -4620,7 +4649,7 @@ var zt = 3e5;
|
|
|
4620
4649
|
var Z = /* @__PURE__ */ new Map();
|
|
4621
4650
|
var X = /* @__PURE__ */ new Map();
|
|
4622
4651
|
var Wt = 86400;
|
|
4623
|
-
function
|
|
4652
|
+
function Ke(e, t) {
|
|
4624
4653
|
return `https://wd-config.invalid/${encodeURIComponent(e)}/${encodeURIComponent(t)}`;
|
|
4625
4654
|
}
|
|
4626
4655
|
function Ge() {
|
|
@@ -4630,11 +4659,11 @@ function Ge() {
|
|
|
4630
4659
|
return null;
|
|
4631
4660
|
}
|
|
4632
4661
|
}
|
|
4633
|
-
async function
|
|
4662
|
+
async function $e(e, t) {
|
|
4634
4663
|
let r = Ge();
|
|
4635
4664
|
if (!r) return null;
|
|
4636
4665
|
try {
|
|
4637
|
-
let n = await r.match(
|
|
4666
|
+
let n = await r.match(Ke(e, t));
|
|
4638
4667
|
return n ? await n.json() : null;
|
|
4639
4668
|
} catch {
|
|
4640
4669
|
return null;
|
|
@@ -4643,7 +4672,7 @@ async function Ke(e, t) {
|
|
|
4643
4672
|
async function Ft(e, t, r) {
|
|
4644
4673
|
let n = Ge();
|
|
4645
4674
|
if (n) try {
|
|
4646
|
-
await n.put(
|
|
4675
|
+
await n.put(Ke(e, t), new Response(JSON.stringify(r), { headers: { "content-type": "application/json", "cache-control": `max-age=${Wt}` } }));
|
|
4647
4676
|
} catch {
|
|
4648
4677
|
}
|
|
4649
4678
|
}
|
|
@@ -4653,9 +4682,9 @@ function jt(e) {
|
|
|
4653
4682
|
}
|
|
4654
4683
|
async function He(e, t) {
|
|
4655
4684
|
let r = Date.now(), n = t, o = P.get(n);
|
|
4656
|
-
if (o && r - o.at <
|
|
4685
|
+
if (o && r - o.at < $t) return o.config;
|
|
4657
4686
|
let a = Z.get(n);
|
|
4658
|
-
if (a !== void 0 && r < a) return o?.config ?? await
|
|
4687
|
+
if (a !== void 0 && r < a) return o?.config ?? await $e(e.siteKey, t);
|
|
4659
4688
|
let i = X.get(n);
|
|
4660
4689
|
if (i) return o?.config ?? i;
|
|
4661
4690
|
let s = qt(e, t, n, r, o?.config ?? null);
|
|
@@ -4680,7 +4709,7 @@ async function qt(e, t, r, n, o) {
|
|
|
4680
4709
|
}
|
|
4681
4710
|
} catch {
|
|
4682
4711
|
}
|
|
4683
|
-
return Z.set(r, n + jt(a)), o ?? await
|
|
4712
|
+
return Z.set(r, n + jt(a)), o ?? await $e(e.siteKey, t);
|
|
4684
4713
|
}
|
|
4685
4714
|
function Ve(e, t, r, n) {
|
|
4686
4715
|
return new Response(JSON.stringify({ wd_clearance: true, nonce: e, mode: t, site_key: r, capabilities: n }), { status: 200, headers: { "content-type": "application/json", "cache-control": "no-store", "access-control-allow-origin": "*" } });
|
|
@@ -4875,7 +4904,7 @@ var Qt = 6e3;
|
|
|
4875
4904
|
var je = 40;
|
|
4876
4905
|
var er = 60;
|
|
4877
4906
|
var tr = 16;
|
|
4878
|
-
var
|
|
4907
|
+
var k = new TextEncoder();
|
|
4879
4908
|
var rr = 60;
|
|
4880
4909
|
var nr = 24;
|
|
4881
4910
|
var or = 3e3;
|
|
@@ -4893,32 +4922,32 @@ function qe(e, t, r, n, o = Date.now()) {
|
|
|
4893
4922
|
let d = N(t);
|
|
4894
4923
|
if (!d) return;
|
|
4895
4924
|
let w = Math.floor(o / 1e3 / ee) * ee, b = cr(w, i, d);
|
|
4896
|
-
for (let [m, y] of x) y.bucketStart !== w && (
|
|
4925
|
+
for (let [m, y] of x) y.bucketStart !== w && (K(y, r, n), x.delete(m));
|
|
4897
4926
|
let g = x.get(b);
|
|
4898
4927
|
if (!g) {
|
|
4899
|
-
if (x.size >= sr) for (let [m, y] of x)
|
|
4928
|
+
if (x.size >= sr) for (let [m, y] of x) K(y, r, n), x.delete(m);
|
|
4900
4929
|
g = { bucketStart: w, mode: i, host: d, counts: /* @__PURE__ */ new Map(), routes: /* @__PURE__ */ new Map(), previews: /* @__PURE__ */ new Map(), credentials: /* @__PURE__ */ new Map(), referrals: /* @__PURE__ */ new Map(), refusals: [], routeBytes: 0, total: 0 }, x.set(b, g), lr(b, g, r, n, o);
|
|
4901
4930
|
}
|
|
4902
4931
|
g.counts.set(a, (g.counts.get(a) ?? 0) + 1);
|
|
4903
4932
|
let A = typeof s == "string" ? s : "", u = typeof p == "string" ? p : "", f = typeof l == "string" ? l : "", v = `${A}
|
|
4904
4933
|
${a}
|
|
4905
4934
|
${u}
|
|
4906
|
-
${f}`,
|
|
4907
|
-
|
|
4935
|
+
${f}`, S = g.routes.get(v);
|
|
4936
|
+
S ? S.count++ : (g.routes.set(v, { pattern: A, verdict: a, behavior: u, crawlerBehavior: f, count: 1 }), g.routeBytes += k.encode(A).length + k.encode(a).length + k.encode(u).length + k.encode(f).length + je);
|
|
4908
4937
|
for (let m of Array.isArray(c) ? c : []) {
|
|
4909
4938
|
if (!m || typeof m.pattern != "string" || !m.pattern) continue;
|
|
4910
4939
|
let y = g.previews.get(m.pattern);
|
|
4911
|
-
y || (y = { evaluated: 0, refused: /* @__PURE__ */ new Map() }, g.previews.set(m.pattern, y), g.routeBytes +=
|
|
4940
|
+
y || (y = { evaluated: 0, refused: /* @__PURE__ */ new Map() }, g.previews.set(m.pattern, y), g.routeBytes += k.encode(m.pattern).length + er), y.evaluated++, typeof m.refused == "string" && m.refused && (y.refused.has(m.refused) || (g.routeBytes += k.encode(m.refused).length + tr), y.refused.set(m.refused, (y.refused.get(m.refused) ?? 0) + 1));
|
|
4912
4941
|
}
|
|
4913
4942
|
typeof h == "string" && h && g.credentials.set(h, (g.credentials.get(h) ?? 0) + 1);
|
|
4914
4943
|
let _ = e?.referral;
|
|
4915
4944
|
if (_ && typeof _.platform == "string" && _.platform && typeof _.path == "string") {
|
|
4916
4945
|
let m = `${_.platform}
|
|
4917
4946
|
${_.path}`, y = g.referrals.get(m);
|
|
4918
|
-
y ? y.count++ : (g.referrals.set(m, { platform: _.platform, path: _.path, count: 1 }), g.routeBytes +=
|
|
4947
|
+
y ? y.count++ : (g.referrals.set(m, { platform: _.platform, path: _.path, count: 1 }), g.routeBytes += k.encode(_.platform).length + k.encode(_.path).length + je);
|
|
4919
4948
|
}
|
|
4920
|
-
let
|
|
4921
|
-
|
|
4949
|
+
let R = e?.refusal;
|
|
4950
|
+
R && typeof R.ip == "string" && R.ip && typeof R.path == "string" && R.path.startsWith("/") && (g.refusals.push({ ip: R.ip, path: R.path, at: Math.floor(o / 1e3), verdict: a }), g.routeBytes += rr), g.total++, (g.total >= Zt || g.routeBytes >= Qt) && (K(g, r, n), x.delete(b));
|
|
4922
4951
|
} catch {
|
|
4923
4952
|
}
|
|
4924
4953
|
}
|
|
@@ -4928,7 +4957,7 @@ function lr(e, t, r, n, o) {
|
|
|
4928
4957
|
n.waitUntil(new Promise((c) => {
|
|
4929
4958
|
setTimeout(() => {
|
|
4930
4959
|
try {
|
|
4931
|
-
x.get(e) === t && (
|
|
4960
|
+
x.get(e) === t && (K(t, r, n), x.delete(e));
|
|
4932
4961
|
} catch {
|
|
4933
4962
|
}
|
|
4934
4963
|
c();
|
|
@@ -4937,7 +4966,7 @@ function lr(e, t, r, n, o) {
|
|
|
4937
4966
|
} catch {
|
|
4938
4967
|
}
|
|
4939
4968
|
}
|
|
4940
|
-
function
|
|
4969
|
+
function K(e, t, r) {
|
|
4941
4970
|
try {
|
|
4942
4971
|
if (e.total <= 0 || e.counts.size === 0) return;
|
|
4943
4972
|
let n = {};
|
|
@@ -4976,7 +5005,7 @@ function $(e, t, r) {
|
|
|
4976
5005
|
}
|
|
4977
5006
|
}
|
|
4978
5007
|
async function ur(e, t, r) {
|
|
4979
|
-
let n = await crypto.subtle.digest("SHA-256",
|
|
5008
|
+
let n = await crypto.subtle.digest("SHA-256", k.encode(`${e.toLowerCase()}|${t}|${r}`)), o = "";
|
|
4980
5009
|
for (let a of new Uint8Array(n)) o += a.toString(16).padStart(2, "0");
|
|
4981
5010
|
return o.slice(0, nr);
|
|
4982
5011
|
}
|
|
@@ -5003,11 +5032,11 @@ function dr(e, t) {
|
|
|
5003
5032
|
}
|
|
5004
5033
|
return null;
|
|
5005
5034
|
}
|
|
5006
|
-
var
|
|
5035
|
+
var $ = /* @__PURE__ */ new Map();
|
|
5007
5036
|
var hr = 36e5;
|
|
5008
5037
|
var mr = 5e3;
|
|
5009
5038
|
async function Je(e, t, r, n) {
|
|
5010
|
-
let o =
|
|
5039
|
+
let o = $.get(e);
|
|
5011
5040
|
if (o && n - o.at < hr) return o.category;
|
|
5012
5041
|
let a = null;
|
|
5013
5042
|
try {
|
|
@@ -5022,7 +5051,7 @@ async function Je(e, t, r, n) {
|
|
|
5022
5051
|
} catch {
|
|
5023
5052
|
a = null;
|
|
5024
5053
|
}
|
|
5025
|
-
return
|
|
5054
|
+
return $.size >= mr && $.clear(), $.set(e, { category: a, at: n }), a;
|
|
5026
5055
|
}
|
|
5027
5056
|
async function wr(e, t, r) {
|
|
5028
5057
|
let n = e.replace(/\.$/, ""), o = t.includes(":") ? [r.resolve6(n)] : [r.resolve4(n)];
|
|
@@ -5032,7 +5061,7 @@ async function wr(e, t, r) {
|
|
|
5032
5061
|
return false;
|
|
5033
5062
|
}
|
|
5034
5063
|
}
|
|
5035
|
-
var Ye = [["reflectionbot", "Reflectionbot", "reflectionbot", "crawler"], ["gptbot", "GPTBot", "gptbot", "crawler"], ["claudebot", "ClaudeBot", "claudebot", "crawler"], ["anthropic-ai", "Anthropic", "anthropic", "crawler"], ["claude-web", "Claude-Web", "claude-web", "crawler"], ["ccbot", "CCBot", "ccbot", "crawler"], ["google-extended", "Google-Extended", "google-extended", "crawler"], ["bytespider", "ByteSpider", "bytespider", "crawler"], ["amazonbot", "Amazonbot", "amazonbot", "crawler"], ["facebookbot", "FacebookBot", "facebookbot", "crawler"], ["meta-externalagent", "Meta-ExternalAgent", "meta-externalagent", "crawler"], ["cohere-ai", "Cohere", "cohere-ai", "crawler"], ["cohere", "Cohere", "cohere-ai", "crawler"], ["applebot-extended", "Applebot-Extended", "applebot-extended", "crawler"], ["youbot", "YouBot", "youbot", "crawler"], ["mistralbot", "MistralBot", "mistral", "crawler"], ["gemini", "Gemini", "gemini", "crawler"], ["ai2bot", "AI2Bot", "ai2bot", "crawler"], ["deepseek", "DeepSeek", "deepseek", "crawler"], ["qwen", "Qwen", "qwen", "crawler"], ["webzio", "Webz.io", "webzio", "crawler"], ["sentibot", "Sentibot", "sentibot", "crawler"], ["omgili", "Omgili", "omgili", "crawler"], ["img2dataset", "img2dataset", "img2dataset", "crawler"], ["timpibot", "Timpibot", "timpibot", "crawler"], ["velenpublicwebcrawler", "VelenPublicWebCrawler", "velenpublicwebcrawler", "crawler"], ["isscyberriskcrawler", "ISSCyberRiskCrawler", "isscyberriskcrawler", "crawler"], ["friendlycrawler", "FriendlyCrawler", "friendlycrawler", "crawler"], ["duckassistbot", "DuckAssistBot", "duckassistbot", "crawler"], ["sofyabot", "SofyaBot", "sofyabot", "crawler"], ["xai-searchbot", "xAI-SearchBot", "xai-searchbot", "crawler"], ["linkupbot", "LinkupBot", "linkupbot", "crawler"], ["perplexitybot", "PerplexityBot", "perplexitybot", "crawler"], ["claude-searchbot", "Claude-SearchBot", "claude-searchbot", "crawler"], ["oai-searchbot", "OAI-SearchBot", "oai-searchbot", "crawler"], ["searchgpt", "SearchGPT", "searchgpt", "crawler"], ["phind", "Phind", "phind", "crawler"], ["kagi", "Kagi", "kagi", "crawler"], ["exasearchbot", "Exa", "exa", "crawler"], ["exabot", "Exa", "exa", "crawler"], ["shapbot", "ShapBot", "shapbot", "crawler"], ["meta-webindexer", "Meta-WebIndexer", "meta-webindexer", "crawler"], ["metaphor", "Metaphor", "metaphor", "crawler"], ["tavily", "Tavily", "tavily", "crawler"], ["bravesearch", "BraveSearch", "brave-search", "crawler"], ["neevabot", "NeevaBot", "neeva", "crawler"], ["operator", "Operator", "operator", "crawler"], ["claude-user", "Claude-User", "claude-user", "crawler"], ["gemini-user", "Gemini-User", "gemini-user", "crawler"], ["googleagent-mariner", "GoogleAgent-Mariner", "googleagent-mariner", "crawler"], ["mariner", "GoogleAgent-Mariner", "googleagent-mariner", "crawler"], ["amazonbuyforme", "AmazonBuyForMe", "amazon-buyforme", "crawler"], ["buyforme", "AmazonBuyForMe", "amazon-buyforme", "crawler"], ["browser-use", "Browser-Use", "browser-use", "crawler"], ["stagehand", "Stagehand", "stagehand", "crawler"], ["manus-user", "Manus-User", "manus-user", "crawler"], ["multion", "MultiOn", "multion", "crawler"], ["iboubot", "IbouBot", "iboubot", "crawler"], ["googlebot", "Googlebot", "googlebot", "crawler"], ["google-inspectiontool", "Google-InspectionTool", "google-inspectiontool", "crawler"], ["bingbot", "Bingbot", "bingbot", "crawler"], ["msnbot", "MSNBot", "msnbot", "crawler"], ["yandexbot", "YandexBot", "yandexbot", "crawler"], ["baiduspider", "Baiduspider", "baiduspider", "crawler"], ["petalbot", "PetalBot", "petalbot", "crawler"], ["duckduckbot", "DuckDuckBot", "duckduckbot", "crawler"], ["applebot", "Applebot", "applebot", "crawler"], ["sogou", "Sogou Spider", "sogou", "crawler"], ["qwantify", "Qwantify", "qwantify", "crawler"], ["naver", "Naver", "naver", "crawler"], ["yeti", "Naver", "naver", "crawler"], ["seznambot", "SeznamBot", "seznam", "crawler"], ["ecosia", "Ecosia", "ecosia", "crawler"], ["mojeekbot", "MojeekBot", "mojeek", "crawler"], ["slurp", "Yahoo! Slurp", "yahoo-slurp", "crawler"], ["ahrefsbot", "AhrefsBot", "ahrefsbot", "crawler"], ["ahrefs", "AhrefsBot", "ahrefsbot", "crawler"], ["semrushbot", "SemrushBot", "semrushbot", "crawler"], ["semrush", "SemrushBot", "semrushbot", "crawler"], ["mj12bot", "MJ12bot", "mj12bot", "crawler"], ["dotbot", "DotBot", "dotbot", "crawler"], ["rogerbot", "Rogerbot", "rogerbot", "crawler"], ["screaming frog", "Screaming Frog", "screaming-frog", "crawler"], ["sitebulb", "Sitebulb", "sitebulb", "crawler"], ["deepcrawl", "DeepCrawl", "deepcrawl", "crawler"], ["oncrawl", "OnCrawl", "oncrawl", "crawler"], ["botify", "Botify", "botify", "crawler"], ["contentking", "ContentKing", "contentking", "crawler"], ["sistrix", "SISTRIX", "sistrix", "crawler"], ["serpstat", "Serpstat", "serpstat", "crawler"], ["spyfu", "SpyFu", "spyfu", "crawler"], ["nessus", "Nessus", "nessus", "crawler"], ["qualys", "Qualys", "qualys", "crawler"], ["shodan", "Shodan", "shodan", "crawler"], ["censys", "Censys", "censys", "crawler"], ["nmap", "Nmap", "nmap", "crawler"], ["zap/", "OWASP ZAP", "zap", "crawler"], ["burp", "Burp Suite", "burp", "crawler"], ["nikto", "Nikto", "nikto", "crawler"], ["nuclei", "Nuclei", "nuclei", "crawler"], ["acunetix", "Acunetix", "acunetix", "crawler"], ["netsparker", "Netsparker", "netsparker", "crawler"], ["detectify", "Detectify", "detectify", "crawler"], ["intruder", "Intruder", "intruder", "crawler"], ["python-requests", "Python-Requests", "python-requests", "tool"], ["python-urllib", "Python-urllib", "python-urllib", "tool"], ["python/", "Python", "python", "tool"], ["scrapy", "Scrapy", "scrapy", "tool"], ["httpx", "HTTPX", "httpx", "tool"], ["aiohttp", "aiohttp", "aiohttp", "tool"], ["beautifulsoup", "BeautifulSoup", "beautifulsoup", "tool"], ["node-fetch", "node-fetch", "node-fetch", "tool"], ["axios/", "Axios", "axios", "tool"], ["got/", "Got", "got", "tool"], ["undici", "Undici", "undici", "tool"], ["go-http-client", "Go-HTTP-Client", "go-http-client", "tool"], ["colly", "Colly", "colly", "tool"], ["java/", "Java", "java", "tool"], ["okhttp", "OkHttp", "okhttp", "tool"], ["apache-httpclient", "Apache-HttpClient", "apache-httpclient", "tool"], ["jsoup", "Jsoup", "jsoup", "tool"], ["guzzlehttp", "GuzzleHttp", "guzzlehttp", "tool"], ["php/", "PHP", "php", "tool"], ["ruby", "Ruby", "ruby", "tool"], ["faraday", "Faraday", "faraday", "tool"], ["mechanize", "Mechanize", "mechanize", "tool"], ["headlesschrome", "HeadlessChrome", "headlesschrome", "tool"], ["puppeteer", "Puppeteer", "puppeteer", "tool"], ["playwright", "Playwright", "playwright", "tool"], ["selenium", "Selenium", "selenium", "tool"], ["phantomjs", "PhantomJS", "phantomjs", "tool"], ["splash", "Splash", "splash", "tool"], ["browserless", "Browserless", "browserless", "tool"], ["browserbase", "Browserbase", "browserbase", "tool"], ["ia_archiver", "Internet Archive", "ia-archiver", "crawler"], ["archive.org_bot", "Archive.org", "archive-org-bot", "crawler"], ["wayback", "Wayback Machine", "wayback", "crawler"], ["heritrix", "Heritrix", "heritrix", "crawler"], ["brozzler", "Brozzler", "brozzler", "crawler"], ["facebookexternalhit", "Facebook", "facebookexternalhit", "crawler"], ["facebot", "Facebot", "facebot", "crawler"], ["twitterbot", "Twitterbot", "twitterbot", "crawler"], ["linkedinbot", "LinkedInBot", "linkedinbot", "crawler"], ["slackbot", "Slackbot", "slackbot", "crawler"], ["telegrambot", "TelegramBot", "telegrambot", "crawler"], ["whatsapp", "WhatsApp", "whatsapp", "crawler"], ["discordbot", "Discordbot", "discordbot", "crawler"], ["pinterest", "Pinterest", "pinterestbot", "crawler"], ["tumblr", "Tumblr", "tumblr", "crawler"], ["reddit", "Reddit", "reddit", "crawler"], ["embedly", "Embedly", "embedly", "crawler"], ["iframely", "Iframely", "iframely", "crawler"], ["curl/", "cURL", "curl", "tool"], ["wget/", "Wget", "wget", "tool"], ["libwww-perl", "libwww-perl", "libwww-perl", "tool"], ["lwp-", "LWP", "lwp", "tool"], ["httrack", "HTTrack", "httrack", "tool"], ["webdecoybot", "WebDecoyBot", "webdecoybot", "crawler"], ["uptimerobot", "UptimeRobot", "uptimerobot", "crawler"], ["pingdom", "Pingdom", "pingdom", "crawler"], ["statuscake", "StatusCake", "statuscake", "crawler"], ["betteruptime", "Better Uptime", "better-uptime", "crawler"], ["datadog", "Datadog Synthetics", "datadog-synthetics", "crawler"], ["newrelic", "New Relic", "newrelic", "crawler"], ["site24x7", "Site24x7", "site24x7", "crawler"], ["freshping", "Freshping", "freshping", "crawler"], ["hetrixtools", "HetrixTools", "hetrixtools", "crawler"], ["nodeping", "NodePing", "nodeping", "crawler"], ["gtmetrix", "GTmetrix", "gtmetrix", "crawler"], ["chrome-lighthouse", "Lighthouse", "chrome-lighthouse", "crawler"], ["google page speed", "Lighthouse", "chrome-lighthouse", "crawler"], ["feedly", "Feedly", "feedly", "crawler"], ["feedfetcher", "Feedfetcher-Google", "feedfetcher-google", "crawler"], ["newsblur", "NewsBlur", "newsblur", "crawler"], ["inoreader", "Inoreader", "inoreader", "crawler"], ["theoldreader", "The Old Reader", "theoldreader", "crawler"], ["feedbin", "Feedbin", "feedbin", "crawler"], ["miniflux", "Miniflux", "miniflux", "crawler"], ["freshrss", "FreshRSS", "freshrss", "crawler"], ["commafeed", "CommaFeed", "commafeed", "crawler"], ["diffbot", "Diffbot", "diffbot", "crawler"], ["import.io", "Import.io", "import-io", "crawler"], ["brightdata", "Bright Data", "bright-data", "crawler"], ["luminati", "Bright Data", "bright-data", "crawler"], ["oxylabs", "Oxylabs", "oxylabs", "crawler"], ["scrapingbee", "ScrapingBee", "scrapingbee", "crawler"], ["scrapingant", "ScrapingAnt", "scrapingant", "crawler"], ["zyte", "Zyte", "zyte", "crawler"], ["scrapinghub", "Zyte", "zyte", "crawler"], ["apify", "Apify", "apify", "crawler"], ["crawlbase", "Crawlbase", "crawlbase", "crawler"], ["webscrapingapi", "WebScrapingAPI", "webscrapingapi", "crawler"], ["chatgpt-user", "ChatGPT-User", "chatgpt-user", "crawler"], ["perplexity-user", "Perplexity-User", "perplexity-user", "crawler"], ["mistralai-user", "MistralAI-User", "mistralai-user", "crawler"], ["exauser", "ExaUser", "exauser", "crawler"], ["shap-user", "Shap-User", "shap-user", "crawler"], ["meta-externalfetcher", "Meta-ExternalFetcher", "meta-externalfetcher", "crawler"], ["gemini-deep-research", "Gemini-Deep-Research", "gemini-deep-research", "crawler"], ["copilot", "Microsoft Copilot", "copilot", "crawler"], ["cortana", "Cortana", "cortana", "crawler"], ["siri", "Siri", "siri", "crawler"]];
|
|
5064
|
+
var Ye = [["reflectionbot", "Reflectionbot", "reflectionbot", "crawler"], ["gptbot", "GPTBot", "gptbot", "crawler"], ["claudebot", "ClaudeBot", "claudebot", "crawler"], ["anthropic-ai", "Anthropic", "anthropic", "crawler"], ["claude-web", "Claude-Web", "claude-web", "crawler"], ["ccbot", "CCBot", "ccbot", "crawler"], ["google-extended", "Google-Extended", "google-extended", "crawler"], ["bytespider", "ByteSpider", "bytespider", "crawler"], ["amazonbot", "Amazonbot", "amazonbot", "crawler"], ["facebookbot", "FacebookBot", "facebookbot", "crawler"], ["meta-externalagent", "Meta-ExternalAgent", "meta-externalagent", "crawler"], ["cohere-ai", "Cohere", "cohere-ai", "crawler"], ["cohere", "Cohere", "cohere-ai", "crawler"], ["applebot-extended", "Applebot-Extended", "applebot-extended", "crawler"], ["youbot", "YouBot", "youbot", "crawler"], ["mistralbot", "MistralBot", "mistral", "crawler"], ["gemini", "Gemini", "gemini", "crawler"], ["ai2bot", "AI2Bot", "ai2bot", "crawler"], ["deepseek", "DeepSeek", "deepseek", "crawler"], ["qwen", "Qwen", "qwen", "crawler"], ["webzio", "Webz.io", "webzio", "crawler"], ["sentibot", "Sentibot", "sentibot", "crawler"], ["omgili", "Omgili", "omgili", "crawler"], ["img2dataset", "img2dataset", "img2dataset", "crawler"], ["timpibot", "Timpibot", "timpibot", "crawler"], ["velenpublicwebcrawler", "VelenPublicWebCrawler", "velenpublicwebcrawler", "crawler"], ["isscyberriskcrawler", "ISSCyberRiskCrawler", "isscyberriskcrawler", "crawler"], ["friendlycrawler", "FriendlyCrawler", "friendlycrawler", "crawler"], ["elevenlabscrawler", "ElevenlabsCrawler", "elevenlabscrawler", "crawler"], ["kimibot", "KimiBot", "kimibot", "crawler"], ["moonshotbot", "MoonshotBot", "moonshotbot", "crawler"], ["chatglm-spider", "ChatGLM-Spider", "chatglm-spider", "crawler"], ["duckassistbot", "DuckAssistBot", "duckassistbot", "crawler"], ["sofyabot", "SofyaBot", "sofyabot", "crawler"], ["xai-searchbot", "xAI-SearchBot", "xai-searchbot", "crawler"], ["linkupbot", "LinkupBot", "linkupbot", "crawler"], ["perplexitybot", "PerplexityBot", "perplexitybot", "crawler"], ["claude-searchbot", "Claude-SearchBot", "claude-searchbot", "crawler"], ["oai-searchbot", "OAI-SearchBot", "oai-searchbot", "crawler"], ["searchgpt", "SearchGPT", "searchgpt", "crawler"], ["phind", "Phind", "phind", "crawler"], ["kagi", "Kagi", "kagi", "crawler"], ["exasearchbot", "Exa", "exa", "crawler"], ["exabot", "Exa", "exa", "crawler"], ["shapbot", "ShapBot", "shapbot", "crawler"], ["meta-webindexer", "Meta-WebIndexer", "meta-webindexer", "crawler"], ["metaphor", "Metaphor", "metaphor", "crawler"], ["tavily", "Tavily", "tavily", "crawler"], ["bravesearch", "BraveSearch", "brave-search", "crawler"], ["neevabot", "NeevaBot", "neeva", "crawler"], ["kimi-searchbot", "Kimi-SearchBot", "kimi-searchbot", "crawler"], ["keenablebot", "KeenableBot", "keenablebot", "crawler"], ["azureai-searchbot", "AzureAI-SearchBot", "azureai-searchbot", "crawler"], ["grokbot", "GrokBot", "grokbot", "crawler"], ["operator", "Operator", "operator", "crawler"], ["claude-user", "Claude-User", "claude-user", "crawler"], ["gemini-user", "Gemini-User", "gemini-user", "crawler"], ["googleagent-mariner", "GoogleAgent-Mariner", "googleagent-mariner", "crawler"], ["mariner", "GoogleAgent-Mariner", "googleagent-mariner", "crawler"], ["amazonbuyforme", "AmazonBuyForMe", "amazon-buyforme", "crawler"], ["buyforme", "AmazonBuyForMe", "amazon-buyforme", "crawler"], ["browser-use", "Browser-Use", "browser-use", "crawler"], ["stagehand", "Stagehand", "stagehand", "crawler"], ["manus-user", "Manus-User", "manus-user", "crawler"], ["multion", "MultiOn", "multion", "crawler"], ["opencode-user", "OpenCode-User", "opencode-user", "crawler"], ["iboubot", "IbouBot", "iboubot", "crawler"], ["ibou-search", "IbouBot", "iboubot", "crawler"], ["googlebot", "Googlebot", "googlebot", "crawler"], ["google-inspectiontool", "Google-InspectionTool", "google-inspectiontool", "crawler"], ["bingbot", "Bingbot", "bingbot", "crawler"], ["msnbot", "MSNBot", "msnbot", "crawler"], ["yandexbot", "YandexBot", "yandexbot", "crawler"], ["baiduspider", "Baiduspider", "baiduspider", "crawler"], ["petalbot", "PetalBot", "petalbot", "crawler"], ["duckduckbot", "DuckDuckBot", "duckduckbot", "crawler"], ["applebot", "Applebot", "applebot", "crawler"], ["sogou", "Sogou Spider", "sogou", "crawler"], ["qwantify", "Qwantify", "qwantify", "crawler"], ["qwantbot", "Qwantify", "qwantify", "crawler"], ["naver", "Naver", "naver", "crawler"], ["yeti", "Naver", "naver", "crawler"], ["seznambot", "SeznamBot", "seznam", "crawler"], ["ecosia", "Ecosia", "ecosia", "crawler"], ["mojeekbot", "MojeekBot", "mojeek", "crawler"], ["slurp", "Yahoo! Slurp", "yahoo-slurp", "crawler"], ["bravebot", "Bravebot", "bravebot", "crawler"], ["coccocbot", "Coc Coc", "coccocbot", "crawler"], ["yisouspider", "YisouSpider", "yisouspider", "crawler"], ["yepbot", "YepBot", "yepbot", "crawler"], ["ahrefsbot", "AhrefsBot", "ahrefsbot", "crawler"], ["ahrefs", "AhrefsBot", "ahrefsbot", "crawler"], ["semrushbot", "SemrushBot", "semrushbot", "crawler"], ["semrush", "SemrushBot", "semrushbot", "crawler"], ["mj12bot", "MJ12bot", "mj12bot", "crawler"], ["dotbot", "DotBot", "dotbot", "crawler"], ["rogerbot", "Rogerbot", "rogerbot", "crawler"], ["screaming frog", "Screaming Frog", "screaming-frog", "crawler"], ["sitebulb", "Sitebulb", "sitebulb", "crawler"], ["deepcrawl", "DeepCrawl", "deepcrawl", "crawler"], ["oncrawl", "OnCrawl", "oncrawl", "crawler"], ["botify", "Botify", "botify", "crawler"], ["contentking", "ContentKing", "contentking", "crawler"], ["sistrix", "SISTRIX", "sistrix", "crawler"], ["serpstat", "Serpstat", "serpstat", "crawler"], ["spyfu", "SpyFu", "spyfu", "crawler"], ["meta-externalads", "meta-externalads", "meta-externalads", "crawler"], ["dataforseobot", "DataForSeoBot", "dataforseobot", "crawler"], ["serankingbacklinksbot", "SERankingBacklinksBot", "serankingbacklinksbot", "crawler"], ["awariobot", "AwarioBot", "awariobot", "crawler"], ["awariosmartbot", "AwarioBot", "awariobot", "crawler"], ["seojuice-searchbot", "SEOJuice-SearchBot", "seojuice-searchbot", "crawler"], ["trendictionbot", "trendictionbot", "trendictionbot", "crawler"], ["hubspot crawler", "HubSpot Crawler", "hubspot-crawler", "crawler"], ["nessus", "Nessus", "nessus", "crawler"], ["qualys", "Qualys", "qualys", "crawler"], ["shodan", "Shodan", "shodan", "crawler"], ["censys", "Censys", "censys", "crawler"], ["nmap", "Nmap", "nmap", "crawler"], ["zap/", "OWASP ZAP", "zap", "crawler"], ["burp", "Burp Suite", "burp", "crawler"], ["nikto", "Nikto", "nikto", "crawler"], ["nuclei", "Nuclei", "nuclei", "crawler"], ["acunetix", "Acunetix", "acunetix", "crawler"], ["netsparker", "Netsparker", "netsparker", "crawler"], ["detectify", "Detectify", "detectify", "crawler"], ["intruder", "Intruder", "intruder", "crawler"], ["python-requests", "Python-Requests", "python-requests", "tool"], ["python-urllib", "Python-urllib", "python-urllib", "tool"], ["python/", "Python", "python", "tool"], ["scrapy", "Scrapy", "scrapy", "tool"], ["httpx", "HTTPX", "httpx", "tool"], ["aiohttp", "aiohttp", "aiohttp", "tool"], ["beautifulsoup", "BeautifulSoup", "beautifulsoup", "tool"], ["node-fetch", "node-fetch", "node-fetch", "tool"], ["axios/", "Axios", "axios", "tool"], ["got/", "Got", "got", "tool"], ["undici", "Undici", "undici", "tool"], ["go-http-client", "Go-HTTP-Client", "go-http-client", "tool"], ["colly", "Colly", "colly", "tool"], ["java/", "Java", "java", "tool"], ["okhttp", "OkHttp", "okhttp", "tool"], ["apache-httpclient", "Apache-HttpClient", "apache-httpclient", "tool"], ["jsoup", "Jsoup", "jsoup", "tool"], ["guzzlehttp", "GuzzleHttp", "guzzlehttp", "tool"], ["php/", "PHP", "php", "tool"], ["ruby", "Ruby", "ruby", "tool"], ["faraday", "Faraday", "faraday", "tool"], ["mechanize", "Mechanize", "mechanize", "tool"], ["headlesschrome", "HeadlessChrome", "headlesschrome", "tool"], ["puppeteer", "Puppeteer", "puppeteer", "tool"], ["playwright", "Playwright", "playwright", "tool"], ["selenium", "Selenium", "selenium", "tool"], ["phantomjs", "PhantomJS", "phantomjs", "tool"], ["splash", "Splash", "splash", "tool"], ["browserless", "Browserless", "browserless", "tool"], ["browserbase", "Browserbase", "browserbase", "tool"], ["ia_archiver", "Internet Archive", "ia-archiver", "crawler"], ["archive.org_bot", "Archive.org", "archive-org-bot", "crawler"], ["wayback", "Wayback Machine", "wayback", "crawler"], ["heritrix", "Heritrix", "heritrix", "crawler"], ["brozzler", "Brozzler", "brozzler", "crawler"], ["facebookexternalhit", "Facebook", "facebookexternalhit", "crawler"], ["facebot", "Facebot", "facebot", "crawler"], ["twitterbot", "Twitterbot", "twitterbot", "crawler"], ["linkedinbot", "LinkedInBot", "linkedinbot", "crawler"], ["slackbot", "Slackbot", "slackbot", "crawler"], ["telegrambot", "TelegramBot", "telegrambot", "crawler"], ["whatsapp", "WhatsApp", "whatsapp", "crawler"], ["discordbot", "Discordbot", "discordbot", "crawler"], ["pinterest", "Pinterest", "pinterestbot", "crawler"], ["tumblr", "Tumblr", "tumblr", "crawler"], ["reddit", "Reddit", "reddit", "crawler"], ["embedly", "Embedly", "embedly", "crawler"], ["iframely", "Iframely", "iframely", "crawler"], ["adsbot-google", "AdsBot-Google", "adsbot-google", "crawler"], ["google-read-aloud", "Google-Read-Aloud", "google-read-aloud", "crawler"], ["google-safety", "Google-Safety", "google-safety", "crawler"], ["oai-adsbot", "OAI-AdsBot", "oai-adsbot", "crawler"], ["kakaobot", "KakaoBot", "kakaobot", "crawler"], ["curl/", "cURL", "curl", "tool"], ["wget/", "Wget", "wget", "tool"], ["libwww-perl", "libwww-perl", "libwww-perl", "tool"], ["lwp-", "LWP", "lwp", "tool"], ["httrack", "HTTrack", "httrack", "tool"], ["webdecoybot", "WebDecoyBot", "webdecoybot", "crawler"], ["uptimerobot", "UptimeRobot", "uptimerobot", "crawler"], ["pingdom", "Pingdom", "pingdom", "crawler"], ["statuscake", "StatusCake", "statuscake", "crawler"], ["betteruptime", "Better Uptime", "better-uptime", "crawler"], ["datadog", "Datadog Synthetics", "datadog-synthetics", "crawler"], ["newrelic", "New Relic", "newrelic", "crawler"], ["site24x7", "Site24x7", "site24x7", "crawler"], ["freshping", "Freshping", "freshping", "crawler"], ["hetrixtools", "HetrixTools", "hetrixtools", "crawler"], ["nodeping", "NodePing", "nodeping", "crawler"], ["gtmetrix", "GTmetrix", "gtmetrix", "crawler"], ["chrome-lighthouse", "Lighthouse", "chrome-lighthouse", "crawler"], ["google page speed", "Lighthouse", "chrome-lighthouse", "crawler"], ["feedly", "Feedly", "feedly", "crawler"], ["feedfetcher", "Feedfetcher-Google", "feedfetcher-google", "crawler"], ["newsblur", "NewsBlur", "newsblur", "crawler"], ["inoreader", "Inoreader", "inoreader", "crawler"], ["theoldreader", "The Old Reader", "theoldreader", "crawler"], ["feedbin", "Feedbin", "feedbin", "crawler"], ["miniflux", "Miniflux", "miniflux", "crawler"], ["freshrss", "FreshRSS", "freshrss", "crawler"], ["commafeed", "CommaFeed", "commafeed", "crawler"], ["diffbot", "Diffbot", "diffbot", "crawler"], ["import.io", "Import.io", "import-io", "crawler"], ["brightdata", "Bright Data", "bright-data", "crawler"], ["luminati", "Bright Data", "bright-data", "crawler"], ["oxylabs", "Oxylabs", "oxylabs", "crawler"], ["scrapingbee", "ScrapingBee", "scrapingbee", "crawler"], ["scrapingant", "ScrapingAnt", "scrapingant", "crawler"], ["zyte", "Zyte", "zyte", "crawler"], ["scrapinghub", "Zyte", "zyte", "crawler"], ["apify", "Apify", "apify", "crawler"], ["crawlbase", "Crawlbase", "crawlbase", "crawler"], ["webscrapingapi", "WebScrapingAPI", "webscrapingapi", "crawler"], ["chatgpt-user", "ChatGPT-User", "chatgpt-user", "crawler"], ["perplexity-user", "Perplexity-User", "perplexity-user", "crawler"], ["mistralai-user", "MistralAI-User", "mistralai-user", "crawler"], ["exauser", "ExaUser", "exauser", "crawler"], ["shap-user", "Shap-User", "shap-user", "crawler"], ["meta-externalfetcher", "Meta-ExternalFetcher", "meta-externalfetcher", "crawler"], ["gemini-deep-research", "Gemini-Deep-Research", "gemini-deep-research", "crawler"], ["copilot", "Microsoft Copilot", "copilot", "crawler"], ["cortana", "Cortana", "cortana", "crawler"], ["siri", "Siri", "siri", "crawler"], ["kimi-user", "Kimi-User", "kimi-user", "crawler"], ["keenable-user", "Keenable-User", "keenable-user", "crawler"], ["elevenlabsbot", "ElevenlabsBot", "elevenlabsbot", "crawler"], ["klaviyoaibot", "KlaviyoAIBot", "klaviyoaibot", "crawler"]];
|
|
5036
5065
|
function br(e) {
|
|
5037
5066
|
for (let [t, r, n, o] of Ye) if (e.includes(t)) return { name: r, id: n, kind: o };
|
|
5038
5067
|
return null;
|
|
@@ -5059,14 +5088,14 @@ function Ar(e) {
|
|
|
5059
5088
|
function Ze(e, t, r, n = typeof Deno < "u" && Deno && typeof Deno.resolveDns == "function" ? Deno.resolveDns.bind(Deno) : void 0, o = Date.now()) {
|
|
5060
5089
|
return !r || !e || !n || !Xe(t) ? Promise.resolve("") : Je(e, _r, Ar(n), o).then((a) => a === "search_engines" ? vr : "").catch(() => "");
|
|
5061
5090
|
}
|
|
5062
|
-
var
|
|
5063
|
-
var
|
|
5064
|
-
var
|
|
5065
|
-
function
|
|
5091
|
+
var kr = "https://cloudflare-dns.com/dns-query";
|
|
5092
|
+
var Sr = 1e3;
|
|
5093
|
+
var Rr = { A: 1, PTR: 12, AAAA: 28 };
|
|
5094
|
+
function Cr(e = fetch) {
|
|
5066
5095
|
return async (t, r) => {
|
|
5067
|
-
let n =
|
|
5096
|
+
let n = Rr[r];
|
|
5068
5097
|
if (!n) throw new Error(`unsupported record type ${r}`);
|
|
5069
|
-
let o = `${
|
|
5098
|
+
let o = `${kr}?name=${encodeURIComponent(t)}&type=${r}`, a = await e(o, { headers: { accept: "application/dns-json" }, signal: AbortSignal.timeout(Sr) });
|
|
5070
5099
|
if (!a.ok) throw new Error(`doh ${a.status}`);
|
|
5071
5100
|
let i = await a.json();
|
|
5072
5101
|
if (i.Status !== 0) throw new Error(`dns status ${i.Status}`);
|
|
@@ -5076,9 +5105,9 @@ function kr(e = fetch) {
|
|
|
5076
5105
|
};
|
|
5077
5106
|
}
|
|
5078
5107
|
function Qe(e, t, r, n = fetch) {
|
|
5079
|
-
return Ze(e, t, r,
|
|
5108
|
+
return Ze(e, t, r, Cr(n));
|
|
5080
5109
|
}
|
|
5081
|
-
var ne = "vercel-
|
|
5110
|
+
var ne = "vercel-5ee62f4b6deb";
|
|
5082
5111
|
var et = "https://in.webdecoy.com";
|
|
5083
5112
|
function tt(e) {
|
|
5084
5113
|
let t = new Headers(e.headers);
|
|
@@ -5095,10 +5124,10 @@ async function Er(e, t, r) {
|
|
|
5095
5124
|
if (o.pathname === Q) return { action: "respond", response: await ze(e, n) };
|
|
5096
5125
|
if (o.pathname === L) return { action: "respond", response: await De(e, { apiBase: n, siteKey: r.siteKey, sensorKey: r.sensorKey, host: i }) };
|
|
5097
5126
|
if (!s) return oe(e, null);
|
|
5098
|
-
let c = await
|
|
5127
|
+
let c = await Se(e, s, { siteKey: r.siteKey, verifiedBotCategory: (p, l) => Qe(t.ip, p.headers.get("user-agent") ?? "", l, t.fetch ?? fetch) });
|
|
5099
5128
|
if (j(c)) {
|
|
5100
5129
|
let p = q(e.headers.get("cookie") ?? "", J);
|
|
5101
|
-
p && await Ie(p, r.sensorKey, i, e.headers.get("user-agent") ?? "", Date.now()) && (c =
|
|
5130
|
+
p && await Ie(p, r.sensorKey, i, e.headers.get("user-agent") ?? "", Date.now()) && (c = Re(c));
|
|
5102
5131
|
}
|
|
5103
5132
|
return qe({ ...c, refusal: c.pass ? null : { ip: t.ip, path: o.pathname } }, o.hostname, { siteKey: r.siteKey, apiBase: n, scannerId: r.scannerId, sensorKey: r.sensorKey, bundleVersion: ne, capabilities: G }, { waitUntil: (p) => t.waitUntil?.(p) }, Date.now()), c.pass || c.mode !== "enforce" ? oe(e, c.label) : { action: "respond", response: We(e, n, r.siteKey, c.label) };
|
|
5104
5133
|
} catch {
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveGateEnv,
|
|
12
12
|
ruleBlockResponse,
|
|
13
13
|
shouldSkipPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-POXOR4DB.mjs";
|
|
15
15
|
import {
|
|
16
16
|
ATTACK_SIGNATURE_IDS,
|
|
17
17
|
AgentVerifier,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
tripwire,
|
|
69
69
|
upstashRateLimitStore,
|
|
70
70
|
webBotAuth
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-F2T5V6NK.mjs";
|
|
72
72
|
|
|
73
73
|
// src/client-signals.ts
|
|
74
74
|
var MemoryClientSignalStore = class {
|
|
@@ -310,7 +310,7 @@ declare function readEdgeVerdict(headers: Record<string, string> | undefined): E
|
|
|
310
310
|
* agents share User-Agent substrings, so sorting this array changes how real
|
|
311
311
|
* traffic is classified.
|
|
312
312
|
*
|
|
313
|
-
*
|
|
313
|
+
* 221 agents across 15 categories.
|
|
314
314
|
*/
|
|
315
315
|
/**
|
|
316
316
|
* Classification categories, mirroring `agents.Category` in Go.
|
|
@@ -310,7 +310,7 @@ declare function readEdgeVerdict(headers: Record<string, string> | undefined): E
|
|
|
310
310
|
* agents share User-Agent substrings, so sorting this array changes how real
|
|
311
311
|
* traffic is classified.
|
|
312
312
|
*
|
|
313
|
-
*
|
|
313
|
+
* 221 agents across 15 categories.
|
|
314
314
|
*/
|
|
315
315
|
/**
|
|
316
316
|
* Classification categories, mirroring `agents.Category` in Go.
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as WebDecoyConfig, H as RequestMetadata, W as WebDecoy, P as ProtectResult, K as RuleState } from './sdk-
|
|
1
|
+
import { Z as WebDecoyConfig, H as RequestMetadata, W as WebDecoy, P as ProtectResult, K as RuleState } from './sdk-U_qp9ync.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Testing utilities, for the application's test suite rather than ours.
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as WebDecoyConfig, H as RequestMetadata, W as WebDecoy, P as ProtectResult, K as RuleState } from './sdk-
|
|
1
|
+
import { Z as WebDecoyConfig, H as RequestMetadata, W as WebDecoy, P as ProtectResult, K as RuleState } from './sdk-U_qp9ync.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Testing utilities, for the application's test suite rather than ours.
|