@webdecoy/node 0.24.1 → 0.25.0
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/README.md +35 -0
- package/dist/{chunk-VM74DDIP.mjs → chunk-6EZSYRYE.mjs} +22 -22
- package/dist/{chunk-ANOZMV4M.mjs → chunk-ABIJ7NMX.mjs} +147 -0
- package/dist/{detect-and-gate-BUFbu1y5.d.mts → detect-and-gate-CEpuKXTE.d.ts} +1 -1
- package/dist/{detect-and-gate-CU2u2EZD.d.ts → detect-and-gate-DhKYwcQ1.d.mts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +168 -21
- package/dist/index.mjs +2 -2
- package/dist/{sdk-CmWmCDuZ.d.mts → sdk-D8Cn_xRm.d.mts} +78 -2
- package/dist/{sdk-CmWmCDuZ.d.ts → sdk-D8Cn_xRm.d.ts} +78 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +164 -0
- package/dist/testing.mjs +1 -1
- package/dist/vercel.d.mts +2 -2
- package/dist/vercel.d.ts +2 -2
- package/dist/vercel.js +174 -21
- package/dist/vercel.mjs +2 -2
- package/package.json +1 -1
package/dist/vercel.js
CHANGED
|
@@ -28,13 +28,13 @@ __export(vercel_exports, {
|
|
|
28
28
|
module.exports = __toCommonJS(vercel_exports);
|
|
29
29
|
|
|
30
30
|
// src/clearance/gate.generated.js
|
|
31
|
-
var
|
|
31
|
+
var R = { "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" };
|
|
32
32
|
var rt = ["utm_source", "ref", "utm_medium"];
|
|
33
33
|
var ae = 500;
|
|
34
34
|
function nt(e, t) {
|
|
35
35
|
let r = (e ?? "").trim();
|
|
36
36
|
if (r) try {
|
|
37
|
-
return
|
|
37
|
+
return R[new URL(r).hostname.toLowerCase()] ?? "";
|
|
38
38
|
} catch {
|
|
39
39
|
return "";
|
|
40
40
|
}
|
|
@@ -59,9 +59,9 @@ function ot(e) {
|
|
|
59
59
|
n && (t = n.toLowerCase());
|
|
60
60
|
} catch {
|
|
61
61
|
}
|
|
62
|
-
if (t = t.replace(/\.$/, ""),
|
|
62
|
+
if (t = t.replace(/\.$/, ""), R[t]) return R[t];
|
|
63
63
|
let r = ie(t);
|
|
64
|
-
for (let [n, o] of Object.entries(
|
|
64
|
+
for (let [n, o] of Object.entries(R)) if (r === ie(o.toLowerCase()) || r === n.replace(/^www\./, "").replace(/\./g, "")) return o;
|
|
65
65
|
return "";
|
|
66
66
|
}
|
|
67
67
|
function se(e, t) {
|
|
@@ -465,8 +465,8 @@ var Ct = I;
|
|
|
465
465
|
function ve(e, t, r) {
|
|
466
466
|
return e ? t ? t.some((n) => Ct(r, n)) : true : false;
|
|
467
467
|
}
|
|
468
|
-
var
|
|
469
|
-
var
|
|
468
|
+
var St = "x-wd-service-token";
|
|
469
|
+
var Rt = "wd_clearance";
|
|
470
470
|
function _e(e, t, r = []) {
|
|
471
471
|
if (e.graded && t && !It(e.graded.trust, t)) return { pass: false, label: "insufficient-trust" };
|
|
472
472
|
if (e.crawler && r.length > 0) {
|
|
@@ -489,9 +489,9 @@ async function Et(e, t, r, n, o) {
|
|
|
489
489
|
return a.outsideReach ? { ...i, outsideReach: a.outsideReach } : i;
|
|
490
490
|
}
|
|
491
491
|
async function Pt(e, t, r) {
|
|
492
|
-
let n = e.headers.get(
|
|
492
|
+
let n = e.headers.get(St);
|
|
493
493
|
if (!n) return { grants: false, outsideReach: "" };
|
|
494
|
-
let o = await
|
|
494
|
+
let o = await Re(n, t.keys, r.siteKey);
|
|
495
495
|
if (!o || o.typ !== "machine" || !o.sub) return { grants: false, outsideReach: "" };
|
|
496
496
|
if (t.active_credentials.includes(o.sub)) return { grants: true, outsideReach: "" };
|
|
497
497
|
let a = (t.restricted_credentials ?? []).find((s) => s && s.id === o.sub);
|
|
@@ -509,9 +509,9 @@ async function Tt(e, t, r, n, o) {
|
|
|
509
509
|
if (s.status === "verified" && Mt(s.category, t)) return { pass: true, label: "signed-agent", behavior: Ae(s.category), crawler: { behavior: Ae(s.category), exempted: true } };
|
|
510
510
|
if (s.status === "invalid" && n) return { pass: false, label: "agent-impersonation", crawler: i };
|
|
511
511
|
if (!n) return o ? { pass: true, label: "excepted", crawler: i } : { pass: true, label: "unscoped", crawler: i };
|
|
512
|
-
let c = q(e.headers.get("cookie") ?? "",
|
|
512
|
+
let c = q(e.headers.get("cookie") ?? "", Rt);
|
|
513
513
|
if (!c) return { pass: false, label: "missing", crawler: i };
|
|
514
|
-
let f = await
|
|
514
|
+
let f = await Re(c, t.keys, r.siteKey);
|
|
515
515
|
return !f || (f.typ ?? "") !== "" ? { pass: false, label: "invalid", crawler: i } : t.denied_fps && t.denied_fps.includes(f.fp) ? { pass: false, label: "revoked", crawler: i } : { pass: true, label: "valid", graded: { trust: f.trust }, crawler: i };
|
|
516
516
|
}
|
|
517
517
|
function Bt(e) {
|
|
@@ -548,7 +548,7 @@ function Lt(e, t) {
|
|
|
548
548
|
function j(e) {
|
|
549
549
|
return !e.pass && e.mode === "enforce" && (e.label === "missing" || e.label === "invalid");
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function Se(e) {
|
|
552
552
|
return j(e) ? { ...e, pass: true, label: "outage-pass" } : e;
|
|
553
553
|
}
|
|
554
554
|
function q(e, t) {
|
|
@@ -558,7 +558,7 @@ function q(e, t) {
|
|
|
558
558
|
}
|
|
559
559
|
return null;
|
|
560
560
|
}
|
|
561
|
-
async function
|
|
561
|
+
async function Re(e, t, r) {
|
|
562
562
|
try {
|
|
563
563
|
let n = e.indexOf(".");
|
|
564
564
|
if (n < 0) return null;
|
|
@@ -1016,8 +1016,8 @@ ${p}`, C = g.routes.get(v);
|
|
|
1016
1016
|
${_.path}`, y = g.referrals.get(m);
|
|
1017
1017
|
y ? y.count++ : (g.referrals.set(m, { platform: _.platform, path: _.path, count: 1 }), g.routeBytes += k.encode(_.platform).length + k.encode(_.path).length + je);
|
|
1018
1018
|
}
|
|
1019
|
-
let
|
|
1020
|
-
|
|
1019
|
+
let S = e?.refusal;
|
|
1020
|
+
S && typeof S.ip == "string" && S.ip && typeof S.path == "string" && S.path.startsWith("/") && (g.refusals.push({ ip: S.ip, path: S.path, at: Math.floor(o / 1e3), verdict: a }), g.routeBytes += nr), g.total++, (g.total >= Qt || g.routeBytes >= er) && (K(g, r, n), x.delete(b));
|
|
1021
1021
|
} catch {
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
@@ -1131,7 +1131,7 @@ async function br(e, t, r) {
|
|
|
1131
1131
|
return false;
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
var Je = [["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"], ["riverbot", "RiverBot", "riverbot", "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"], ["isonsearchbot", "IsonSearchBot", "isonsearchbot", "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"], ["barkrowler", "Barkrowler", "barkrowler", "crawler"], ["scrunchbot", "Scrunchbot", "scrunchbot", "crawler"], ["webxtrendbot", "webXtrendBot", "webxtrendbot", "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"], ["artex-enrich/", "ARTEX", "artex", "tool"], ["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"], ["palo alto networks", "Palo Alto Networks Cortex Xpanse", "paloalto-xpanse", "crawler"], ["recordedfuture", "Recorded Future Crawler", "recordedfuture", "crawler"], ["developers.cloudflare.com/security-center", "Cloudflare Security Center", "cloudflare-security-center", "crawler"], ["virustotalcloud", "VirusTotal", "virustotal-cloud", "crawler"], ["intruder", "Intruder", "intruder", "crawler"], ["norma/", "Norma WebFetch", "norma", "tool"], ["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"], ["stripebot", "Stripebot", "stripebot", "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"], ["livelapbot", "LivelapBot", "livelapbot", "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"], ["brightbot", "Brightbot", "brightbot", "crawler"], ["cloudflarebrowserrenderingcrawler", "Cloudflare Browser Rendering Crawler", "cloudflare-crawl", "crawler"], ["ev-crawler", "ev-crawler", "ev-crawler", "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"]];
|
|
1134
|
+
var Je = [["speridlabsresearchcrawler", "SperidLabsResearchCrawler", "speridlabsresearchcrawler", "crawler"], ["abliterantbot", "AbliterantBot", "abliterantbot", "crawler"], ["tokenfoundrybot", "TokenFoundryBot", "tokenfoundrybot", "crawler"], ["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"], ["riverbot", "RiverBot", "riverbot", "crawler"], ["kimibot", "KimiBot", "kimibot", "crawler"], ["moonshotbot", "MoonshotBot", "moonshotbot", "crawler"], ["chatglm-spider", "ChatGLM-Spider", "chatglm-spider", "crawler"], ["talarionsearchbot", "TalarionSearchBot", "talarionsearchbot", "crawler"], ["unfragilebot", "UnfragileBot", "unfragilebot", "crawler"], ["aranet-searchbot", "Aranet-SearchBot", "aranet-searchbot", "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"], ["isonsearchbot", "IsonSearchBot", "isonsearchbot", "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"], ["crolbot", "CrolBot", "crolbot", "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"], ["barkrowler", "Barkrowler", "barkrowler", "crawler"], ["scrunchbot", "Scrunchbot", "scrunchbot", "crawler"], ["webxtrendbot", "webXtrendBot", "webxtrendbot", "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"], ["artex-enrich/", "ARTEX", "artex", "tool"], ["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"], ["palo alto networks", "Palo Alto Networks Cortex Xpanse", "paloalto-xpanse", "crawler"], ["recordedfuture", "Recorded Future Crawler", "recordedfuture", "crawler"], ["developers.cloudflare.com/security-center", "Cloudflare Security Center", "cloudflare-security-center", "crawler"], ["virustotalcloud", "VirusTotal", "virustotal-cloud", "crawler"], ["intruder", "Intruder", "intruder", "crawler"], ["norma/", "Norma WebFetch", "norma", "tool"], ["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"], ["stripebot", "Stripebot", "stripebot", "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"], ["livelapbot", "LivelapBot", "livelapbot", "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"], ["terncrawler", "TernCrawler", "terncrawler", "crawler"], ["diffbot", "Diffbot", "diffbot", "crawler"], ["import.io", "Import.io", "import-io", "crawler"], ["brightdata", "Bright Data", "bright-data", "crawler"], ["luminati", "Bright Data", "bright-data", "crawler"], ["brightbot", "Brightbot", "brightbot", "crawler"], ["cloudflarebrowserrenderingcrawler", "Cloudflare Browser Rendering Crawler", "cloudflare-crawl", "crawler"], ["ev-crawler", "ev-crawler", "ev-crawler", "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"]];
|
|
1135
1135
|
function yr(e) {
|
|
1136
1136
|
for (let [t, r, n, o] of Je) if (e.includes(t)) return { name: r, id: n, kind: o };
|
|
1137
1137
|
return null;
|
|
@@ -1159,13 +1159,13 @@ function Ze(e, t, r, n = typeof Deno < "u" && Deno && typeof Deno.resolveDns ==
|
|
|
1159
1159
|
return !r || !e || !n || !Xe(t) ? Promise.resolve("") : Ye(e, xr, kr(n), o).then((a) => a === "search_engines" ? _r : "").catch(() => "");
|
|
1160
1160
|
}
|
|
1161
1161
|
var Cr = "https://cloudflare-dns.com/dns-query";
|
|
1162
|
-
var
|
|
1163
|
-
var
|
|
1162
|
+
var Sr = 1e3;
|
|
1163
|
+
var Rr = { A: 1, PTR: 12, AAAA: 28 };
|
|
1164
1164
|
function Er(e = fetch) {
|
|
1165
1165
|
return async (t, r) => {
|
|
1166
|
-
let n =
|
|
1166
|
+
let n = Rr[r];
|
|
1167
1167
|
if (!n) throw new Error(`unsupported record type ${r}`);
|
|
1168
|
-
let o = `${Cr}?name=${encodeURIComponent(t)}&type=${r}`, a = await e(o, { headers: { accept: "application/dns-json" }, signal: AbortSignal.timeout(
|
|
1168
|
+
let o = `${Cr}?name=${encodeURIComponent(t)}&type=${r}`, a = await e(o, { headers: { accept: "application/dns-json" }, signal: AbortSignal.timeout(Sr) });
|
|
1169
1169
|
if (!a.ok) throw new Error(`doh ${a.status}`);
|
|
1170
1170
|
let i = await a.json();
|
|
1171
1171
|
if (i.Status !== 0) throw new Error(`dns status ${i.Status}`);
|
|
@@ -1177,7 +1177,7 @@ function Er(e = fetch) {
|
|
|
1177
1177
|
function Qe(e, t, r, n = fetch) {
|
|
1178
1178
|
return Ze(e, t, r, Er(n));
|
|
1179
1179
|
}
|
|
1180
|
-
var ne = "vercel-
|
|
1180
|
+
var ne = "vercel-f058e3270d3c";
|
|
1181
1181
|
var et = "https://in.webdecoy.com";
|
|
1182
1182
|
function tt(e) {
|
|
1183
1183
|
let t = new Headers(e.headers);
|
|
@@ -1197,7 +1197,7 @@ async function Pr(e, t, r) {
|
|
|
1197
1197
|
let c = await Ce(e, s, { siteKey: r.siteKey, verifiedBotCategory: (f, l) => Qe(t.ip, f.headers.get("user-agent") ?? "", l, t.fetch ?? fetch) });
|
|
1198
1198
|
if (j(c)) {
|
|
1199
1199
|
let f = q(e.headers.get("cookie") ?? "", Y);
|
|
1200
|
-
f && await Ie(f, r.sensorKey, i, e.headers.get("user-agent") ?? "", Date.now()) && (c =
|
|
1200
|
+
f && await Ie(f, r.sensorKey, i, e.headers.get("user-agent") ?? "", Date.now()) && (c = Se(c));
|
|
1201
1201
|
}
|
|
1202
1202
|
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: (f) => t.waitUntil?.(f) }, Date.now()), c.pass || c.mode !== "enforce" ? oe(e, c.label) : { action: "respond", response: We(e, n, r.siteKey, c.label) };
|
|
1203
1203
|
} catch {
|
|
@@ -1543,6 +1543,87 @@ var WebDecoyClient = class {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
return response.data;
|
|
1545
1545
|
}
|
|
1546
|
+
async createSSRFCanary(options) {
|
|
1547
|
+
const response = await this.request("POST", "/api/v1/sdk/ssrf/markers", {
|
|
1548
|
+
property_id: options.propertyId,
|
|
1549
|
+
route_template: options.routeTemplate,
|
|
1550
|
+
test: options.test === true
|
|
1551
|
+
});
|
|
1552
|
+
this.requireSuccess(response);
|
|
1553
|
+
const data = response.data;
|
|
1554
|
+
if (!data.marker_id || !data.callback_url || !data.route_template || !data.expires_at) {
|
|
1555
|
+
throw new Error("WebDecoy returned an invalid SSRF canary");
|
|
1556
|
+
}
|
|
1557
|
+
return {
|
|
1558
|
+
markerId: data.marker_id,
|
|
1559
|
+
callbackUrl: data.callback_url,
|
|
1560
|
+
routeTemplate: data.route_template,
|
|
1561
|
+
expiresAt: data.expires_at,
|
|
1562
|
+
test: data.test === true
|
|
1563
|
+
};
|
|
1564
|
+
}
|
|
1565
|
+
async reportSSRFInitiation(canary) {
|
|
1566
|
+
const response = await this.request("POST", "/api/v1/sdk/ssrf/initiate", {
|
|
1567
|
+
marker_id: canary.markerId,
|
|
1568
|
+
route_template: canary.routeTemplate
|
|
1569
|
+
});
|
|
1570
|
+
this.requireSuccess(response);
|
|
1571
|
+
const data = response.data;
|
|
1572
|
+
if (!data.detection_id || !data.marker_id) {
|
|
1573
|
+
throw new Error("WebDecoy returned an invalid SSRF initiation receipt");
|
|
1574
|
+
}
|
|
1575
|
+
return { detectionId: data.detection_id, markerId: data.marker_id, test: data.test === true };
|
|
1576
|
+
}
|
|
1577
|
+
async registerHoneyCredential(tokenId, keyedFingerprint, options) {
|
|
1578
|
+
const response = await this.request("POST", "/api/v1/sdk/honey-credentials", {
|
|
1579
|
+
property_id: options.propertyId,
|
|
1580
|
+
token_id: tokenId,
|
|
1581
|
+
keyed_fingerprint: keyedFingerprint,
|
|
1582
|
+
test: options.test === true
|
|
1583
|
+
});
|
|
1584
|
+
this.requireSuccess(response);
|
|
1585
|
+
const data = response.data;
|
|
1586
|
+
if (!data.token_id || !data.expires_at) {
|
|
1587
|
+
throw new Error("WebDecoy returned an invalid honey credential handle");
|
|
1588
|
+
}
|
|
1589
|
+
return {
|
|
1590
|
+
tokenId: data.token_id,
|
|
1591
|
+
keyedFingerprint,
|
|
1592
|
+
propertyId: options.propertyId,
|
|
1593
|
+
expiresAt: data.expires_at,
|
|
1594
|
+
test: data.test === true
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
async reportHoneyCredentialEvent(event, handle, routeTemplate) {
|
|
1598
|
+
const response = await this.request("POST", `/api/v1/sdk/honey-credentials/${event}`, {
|
|
1599
|
+
property_id: handle.propertyId,
|
|
1600
|
+
token_id: handle.tokenId,
|
|
1601
|
+
keyed_fingerprint: handle.keyedFingerprint,
|
|
1602
|
+
route_template: routeTemplate
|
|
1603
|
+
});
|
|
1604
|
+
this.requireSuccess(response);
|
|
1605
|
+
const data = response.data;
|
|
1606
|
+
if (!data.detection_id || !data.token_id) {
|
|
1607
|
+
throw new Error("WebDecoy returned an invalid honey credential receipt");
|
|
1608
|
+
}
|
|
1609
|
+
return { detectionId: data.detection_id, tokenId: data.token_id, test: data.test === true };
|
|
1610
|
+
}
|
|
1611
|
+
requireSuccess(response) {
|
|
1612
|
+
if (response.status === 401) {
|
|
1613
|
+
throw new Error("Invalid API key. Please check your Web Decoy configuration.");
|
|
1614
|
+
}
|
|
1615
|
+
if (response.status === 429) {
|
|
1616
|
+
throw new Error("Rate limit exceeded. Please try again later.");
|
|
1617
|
+
}
|
|
1618
|
+
if (response.status >= 400) {
|
|
1619
|
+
throw new Error(
|
|
1620
|
+
response.data?.error || response.data?.message || `API request failed: HTTP ${response.status}`
|
|
1621
|
+
);
|
|
1622
|
+
}
|
|
1623
|
+
if (!response.data) {
|
|
1624
|
+
throw new Error("WebDecoy returned an empty response");
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1546
1627
|
/**
|
|
1547
1628
|
* Send violation events to the ingest service
|
|
1548
1629
|
*/
|
|
@@ -1637,6 +1718,9 @@ function toWireDetectionRequest(request) {
|
|
|
1637
1718
|
|
|
1638
1719
|
// src/bots/registry.generated.ts
|
|
1639
1720
|
var BOT_REGISTRY = [
|
|
1721
|
+
{ id: "speridlabsresearchcrawler", name: "SperidLabsResearchCrawler", category: "training_crawler", organization: "Speridlabs", baseScore: 75, respectsRobots: false, uaPatterns: ["speridlabsresearchcrawler"] },
|
|
1722
|
+
{ id: "abliterantbot", name: "AbliterantBot", category: "training_crawler", organization: "Abliterant", baseScore: 75, respectsRobots: false, uaPatterns: ["abliterantbot"] },
|
|
1723
|
+
{ id: "tokenfoundrybot", name: "TokenFoundryBot", category: "training_crawler", organization: "Unknown", baseScore: 75, respectsRobots: false, uaPatterns: ["tokenfoundrybot"] },
|
|
1640
1724
|
{ id: "reflectionbot", name: "Reflectionbot", category: "training_crawler", organization: "Reflection AI", baseScore: 70, respectsRobots: true, uaPatterns: ["reflectionbot"] },
|
|
1641
1725
|
{ id: "gptbot", name: "GPTBot", category: "training_crawler", organization: "OpenAI", baseScore: 85, respectsRobots: true, uaPatterns: ["gptbot"] },
|
|
1642
1726
|
{ id: "claudebot", name: "ClaudeBot", category: "training_crawler", organization: "Anthropic", baseScore: 85, respectsRobots: true, uaPatterns: ["claudebot"] },
|
|
@@ -1669,6 +1753,9 @@ var BOT_REGISTRY = [
|
|
|
1669
1753
|
{ id: "kimibot", name: "KimiBot", category: "training_crawler", organization: "Moonshot AI", baseScore: 80, respectsRobots: true, uaPatterns: ["kimibot"] },
|
|
1670
1754
|
{ id: "moonshotbot", name: "MoonshotBot", category: "training_crawler", organization: "Moonshot AI", baseScore: 80, respectsRobots: false, uaPatterns: ["moonshotbot"] },
|
|
1671
1755
|
{ id: "chatglm-spider", name: "ChatGLM-Spider", category: "training_crawler", organization: "Zhipu AI", baseScore: 80, respectsRobots: false, uaPatterns: ["chatglm-spider"] },
|
|
1756
|
+
{ id: "talarionsearchbot", name: "TalarionSearchBot", category: "ai_search_crawler", organization: "Talarion", baseScore: 65, respectsRobots: false, uaPatterns: ["talarionsearchbot"] },
|
|
1757
|
+
{ id: "unfragilebot", name: "UnfragileBot", category: "ai_search_crawler", organization: "Unfragile", baseScore: 65, respectsRobots: true, uaPatterns: ["unfragilebot"] },
|
|
1758
|
+
{ id: "aranet-searchbot", name: "Aranet-SearchBot", category: "ai_search_crawler", organization: "Aranet", baseScore: 65, respectsRobots: false, uaPatterns: ["aranet-searchbot"] },
|
|
1672
1759
|
{ id: "duckassistbot", name: "DuckAssistBot", category: "ai_search_crawler", organization: "DuckDuckGo", baseScore: 65, respectsRobots: true, uaPatterns: ["duckassistbot"] },
|
|
1673
1760
|
{ id: "sofyabot", name: "SofyaBot", category: "ai_search_crawler", organization: "Sofya", baseScore: 65, respectsRobots: true, uaPatterns: ["sofyabot"] },
|
|
1674
1761
|
{ id: "xai-searchbot", name: "xAI-SearchBot", category: "ai_search_crawler", organization: "xAI", baseScore: 70, respectsRobots: true, uaPatterns: ["xai-searchbot"] },
|
|
@@ -1722,6 +1809,7 @@ var BOT_REGISTRY = [
|
|
|
1722
1809
|
{ id: "coccocbot", name: "Coc Coc", category: "search_crawler", organization: "Coc Coc", baseScore: 35, respectsRobots: true, uaPatterns: ["coccocbot"] },
|
|
1723
1810
|
{ id: "yisouspider", name: "YisouSpider", category: "search_crawler", organization: "Alibaba", baseScore: 40, respectsRobots: true, uaPatterns: ["yisouspider"] },
|
|
1724
1811
|
{ id: "yepbot", name: "YepBot", category: "search_crawler", organization: "Ahrefs", baseScore: 30, respectsRobots: true, uaPatterns: ["yepbot"] },
|
|
1812
|
+
{ id: "crolbot", name: "CrolBot", category: "seo_crawler", organization: "cloro", baseScore: 50, respectsRobots: false, uaPatterns: ["crolbot"] },
|
|
1725
1813
|
{ id: "ahrefsbot", name: "AhrefsBot", category: "seo_crawler", organization: "Ahrefs", baseScore: 50, respectsRobots: true, uaPatterns: ["ahrefsbot", "ahrefs"] },
|
|
1726
1814
|
{ id: "semrushbot", name: "SemrushBot", category: "seo_crawler", organization: "Semrush", baseScore: 50, respectsRobots: true, uaPatterns: ["semrushbot", "semrush"] },
|
|
1727
1815
|
{ id: "mj12bot", name: "MJ12bot", category: "seo_crawler", organization: "Majestic", baseScore: 50, respectsRobots: true, uaPatterns: ["mj12bot"] },
|
|
@@ -1746,6 +1834,7 @@ var BOT_REGISTRY = [
|
|
|
1746
1834
|
{ id: "seojuice-searchbot", name: "SEOJuice-SearchBot", category: "seo_crawler", organization: "SEOJuice", baseScore: 50, respectsRobots: true, uaPatterns: ["seojuice-searchbot"] },
|
|
1747
1835
|
{ id: "trendictionbot", name: "trendictionbot", category: "seo_crawler", organization: "Talkwalker", baseScore: 50, respectsRobots: true, uaPatterns: ["trendictionbot"] },
|
|
1748
1836
|
{ id: "hubspot-crawler", name: "HubSpot Crawler", category: "seo_crawler", organization: "HubSpot", baseScore: 45, respectsRobots: true, uaPatterns: ["hubspot crawler"] },
|
|
1837
|
+
{ id: "artex", name: "ARTEX", category: "security_scanner", organization: "Open Source", baseScore: 90, respectsRobots: false, uaPatterns: ["artex-enrich/"] },
|
|
1749
1838
|
{ id: "nessus", name: "Nessus", category: "security_scanner", organization: "Tenable", baseScore: 70, respectsRobots: false, uaPatterns: ["nessus"] },
|
|
1750
1839
|
{ id: "qualys", name: "Qualys", category: "security_scanner", organization: "Qualys", baseScore: 70, respectsRobots: false, uaPatterns: ["qualys"] },
|
|
1751
1840
|
{ id: "shodan", name: "Shodan", category: "security_scanner", organization: "Shodan", baseScore: 75, respectsRobots: false, uaPatterns: ["shodan"] },
|
|
@@ -1763,6 +1852,7 @@ var BOT_REGISTRY = [
|
|
|
1763
1852
|
{ id: "cloudflare-security-center", name: "Cloudflare Security Center", category: "security_scanner", organization: "Cloudflare", baseScore: 40, respectsRobots: false, uaPatterns: ["developers.cloudflare.com/security-center"] },
|
|
1764
1853
|
{ id: "virustotal-cloud", name: "VirusTotal", category: "security_scanner", organization: "Google", baseScore: 40, respectsRobots: false, uaPatterns: ["virustotalcloud"] },
|
|
1765
1854
|
{ id: "intruder", name: "Intruder", category: "security_scanner", organization: "Intruder", baseScore: 65, respectsRobots: false, uaPatterns: ["intruder"] },
|
|
1855
|
+
{ id: "norma", name: "Norma WebFetch", category: "generic_scraper", organization: "Open Source", baseScore: 70, respectsRobots: false, uaPatterns: ["norma/"] },
|
|
1766
1856
|
{ id: "python-requests", name: "Python-Requests", category: "generic_scraper", organization: "Open Source", baseScore: 55, respectsRobots: false, uaPatterns: ["python-requests"] },
|
|
1767
1857
|
{ id: "python-urllib", name: "Python-urllib", category: "generic_scraper", organization: "Python", baseScore: 55, respectsRobots: false, uaPatterns: ["python-urllib"] },
|
|
1768
1858
|
{ id: "python", name: "Python", category: "generic_scraper", organization: "Python", baseScore: 50, respectsRobots: false, uaPatterns: ["python/"] },
|
|
@@ -1845,6 +1935,7 @@ var BOT_REGISTRY = [
|
|
|
1845
1935
|
{ id: "miniflux", name: "Miniflux", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["miniflux"] },
|
|
1846
1936
|
{ id: "freshrss", name: "FreshRSS", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["freshrss"] },
|
|
1847
1937
|
{ id: "commafeed", name: "CommaFeed", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["commafeed"] },
|
|
1938
|
+
{ id: "terncrawler", name: "TernCrawler", category: "commercial_scraper", organization: "Unknown", baseScore: 60, respectsRobots: false, uaPatterns: ["terncrawler"] },
|
|
1848
1939
|
{ id: "diffbot", name: "Diffbot", category: "commercial_scraper", organization: "Diffbot", baseScore: 70, respectsRobots: true, uaPatterns: ["diffbot"] },
|
|
1849
1940
|
{ id: "import-io", name: "Import.io", category: "commercial_scraper", organization: "Import.io", baseScore: 65, respectsRobots: true, uaPatterns: ["import.io"] },
|
|
1850
1941
|
{ id: "bright-data", name: "Bright Data", category: "commercial_scraper", organization: "Bright Data", baseScore: 70, respectsRobots: false, uaPatterns: ["brightdata", "luminati"] },
|
|
@@ -2311,6 +2402,12 @@ function randomHex(bytes) {
|
|
|
2311
2402
|
crypto.getRandomValues(buf);
|
|
2312
2403
|
return toHex(buf);
|
|
2313
2404
|
}
|
|
2405
|
+
function timingSafeEqualStr(a, b) {
|
|
2406
|
+
if (a.length !== b.length) return false;
|
|
2407
|
+
let diff = 0;
|
|
2408
|
+
for (let i = 0; i < a.length; i++) diff |= a.charCodeAt(i) ^ b.charCodeAt(i);
|
|
2409
|
+
return diff === 0;
|
|
2410
|
+
}
|
|
2314
2411
|
|
|
2315
2412
|
// src/rules/honeytoken-site.ts
|
|
2316
2413
|
var HONEYTOKEN_BASE_PATH = "/__wd";
|
|
@@ -3762,6 +3859,62 @@ var WebDecoy = class {
|
|
|
3762
3859
|
async detectBot(request) {
|
|
3763
3860
|
return this.getAgentVerifier().verify(request);
|
|
3764
3861
|
}
|
|
3862
|
+
/** Mint a signed, single-use callback marker for an SSRF test or observation. */
|
|
3863
|
+
async createSSRFCanary(options) {
|
|
3864
|
+
if (!this.client) {
|
|
3865
|
+
throw new Error("An apiKey is required to create an SSRF canary");
|
|
3866
|
+
}
|
|
3867
|
+
return this.client.createSSRFCanary(options);
|
|
3868
|
+
}
|
|
3869
|
+
/**
|
|
3870
|
+
* Report the initiating server request immediately before the application's
|
|
3871
|
+
* ordinary fetch. Only the marker ID and route template are sent.
|
|
3872
|
+
*/
|
|
3873
|
+
async reportSSRFInitiation(canary) {
|
|
3874
|
+
if (!this.client) {
|
|
3875
|
+
throw new Error("An apiKey is required to report an SSRF initiation");
|
|
3876
|
+
}
|
|
3877
|
+
return this.client.reportSSRFInitiation(canary);
|
|
3878
|
+
}
|
|
3879
|
+
/**
|
|
3880
|
+
* Create an inert decoy bearer. WebDecoy receives only a tenant-scoped ID
|
|
3881
|
+
* and keyed fingerprint; the bearer is returned locally exactly once.
|
|
3882
|
+
*/
|
|
3883
|
+
async createHoneyCredential(options = {}) {
|
|
3884
|
+
if (!this.client || !this.config.apiKey) {
|
|
3885
|
+
throw new Error("An apiKey is required to create a honey credential");
|
|
3886
|
+
}
|
|
3887
|
+
const tokenId = crypto.randomUUID();
|
|
3888
|
+
const bearer = `wd_hc_v1_${randomHex(32)}`;
|
|
3889
|
+
const keyedFingerprint = await this.honeyCredentialFingerprint(tokenId, bearer);
|
|
3890
|
+
const handle = await this.client.registerHoneyCredential(tokenId, keyedFingerprint, options);
|
|
3891
|
+
return { bearer, handle };
|
|
3892
|
+
}
|
|
3893
|
+
/** Report that the inert credential was exposed by a decoy route. */
|
|
3894
|
+
async reportHoneyCredentialRetrieval(handle, routeTemplate) {
|
|
3895
|
+
if (!this.client) {
|
|
3896
|
+
throw new Error("An apiKey is required to report a honey credential retrieval");
|
|
3897
|
+
}
|
|
3898
|
+
return this.client.reportHoneyCredentialEvent("retrieval", handle, routeTemplate);
|
|
3899
|
+
}
|
|
3900
|
+
/**
|
|
3901
|
+
* Compare a presented value locally. A mismatch—including a real
|
|
3902
|
+
* credential—never leaves the process and creates no WebDecoy request.
|
|
3903
|
+
*/
|
|
3904
|
+
async observeHoneyCredentialPresentation(candidate, handle, routeTemplate) {
|
|
3905
|
+
if (!this.client || !this.config.apiKey) {
|
|
3906
|
+
throw new Error("An apiKey is required to observe a honey credential presentation");
|
|
3907
|
+
}
|
|
3908
|
+
const candidateFingerprint = await this.honeyCredentialFingerprint(handle.tokenId, candidate);
|
|
3909
|
+
if (!timingSafeEqualStr(candidateFingerprint, handle.keyedFingerprint)) {
|
|
3910
|
+
return { matched: false };
|
|
3911
|
+
}
|
|
3912
|
+
const receipt = await this.client.reportHoneyCredentialEvent("presentation", handle, routeTemplate);
|
|
3913
|
+
return { matched: true, receipt };
|
|
3914
|
+
}
|
|
3915
|
+
honeyCredentialFingerprint(tokenId, bearer) {
|
|
3916
|
+
return hmacSha256Hex(this.config.apiKey, `webdecoy/honey-credential/v1\0${tokenId}\0${bearer}`);
|
|
3917
|
+
}
|
|
3765
3918
|
/**
|
|
3766
3919
|
* Whether this SDK instance has filter rules that need async enrichment
|
|
3767
3920
|
*/
|
package/dist/vercel.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webdecoy/node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Bot detection and AI agent verification for Node.js and edge runtimes. Local honeypot tripwires, rate limiting and AI crawler policies, with optional WebDecoy dashboard reporting.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|