@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/README.md
CHANGED
|
@@ -68,6 +68,41 @@ Behind a proxy, `req.socket.remoteAddress` is the proxy. Use `resolveClientIp()`
|
|
|
68
68
|
|
|
69
69
|
To get a key: sign up at [app.webdecoy.com](https://app.webdecoy.com), add your site, then create a key on the **API Keys** page. Keys start with `sk_live_` (production) or `sk_test_` (testing); any other prefix throws when the SDK is constructed. Keep the key on the server and out of committed files.
|
|
70
70
|
|
|
71
|
+
### Confirm an SSRF callback
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
const canary = await wd.createSSRFCanary({
|
|
75
|
+
routeTemplate: '/api/fetch/:id',
|
|
76
|
+
test: true,
|
|
77
|
+
});
|
|
78
|
+
await wd.reportSSRFInitiation(canary);
|
|
79
|
+
await applicationFetch(canary.callbackUrl);
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
The marker is property-scoped, single-use, and expires after 15 minutes. The
|
|
83
|
+
SDK reports only its marker ID and route template on the initiation edge.
|
|
84
|
+
WebDecoy never fetches a supplied URL; a finding is created only after the
|
|
85
|
+
matching callback arrives. Use `test: true` for controlled validation so it is
|
|
86
|
+
kept out of production threat metrics.
|
|
87
|
+
|
|
88
|
+
### Correlate an inert decoy credential
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
const created = await wd.createHoneyCredential({ test: true });
|
|
92
|
+
await putInDecoyConfig(created.bearer);
|
|
93
|
+
|
|
94
|
+
// Call from the decoy's delivery hook, only when that decoy is actually read.
|
|
95
|
+
await wd.reportHoneyCredentialRetrieval(created.handle, '/decoy/config');
|
|
96
|
+
|
|
97
|
+
const result = await wd.observeHoneyCredentialPresentation(candidate, created.handle, '/login');
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Discard `created.bearer` after placing it in the decoy and retain only the
|
|
101
|
+
handle. A keyed fingerprint is registered; neither the bearer nor a candidate
|
|
102
|
+
credential is sent. A presentation request is made only when the candidate is
|
|
103
|
+
an exact local match for the inert token. Retrieval alone remains an ordinary
|
|
104
|
+
decoy event, and this API never blocks or grants access.
|
|
105
|
+
|
|
71
106
|
### Monitor first
|
|
72
107
|
|
|
73
108
|
`protect()` only returns a decision. It never writes a response, so nothing is blocked until your code acts on `decision.allowed`. The framework adapters and `createFetchGuard()` follow the same rule: they start in **monitor mode** (`mode: 'monitor'`), record the decision and serve every request. Set `mode: 'enforce'` only after you have reviewed what would have been blocked.
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
isInjectableHtml,
|
|
5
5
|
siteHoneytoken,
|
|
6
6
|
tripwire
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ABIJ7NMX.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client-ip.ts
|
|
10
10
|
var IPV4 = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;
|
|
@@ -154,13 +154,13 @@ function resolveClientIp(options) {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
// src/clearance/gate.generated.js
|
|
157
|
-
var
|
|
157
|
+
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" };
|
|
158
158
|
var rt = ["utm_source", "ref", "utm_medium"];
|
|
159
159
|
var ae = 500;
|
|
160
160
|
function nt(e, t) {
|
|
161
161
|
let r = (e ?? "").trim();
|
|
162
162
|
if (r) try {
|
|
163
|
-
return
|
|
163
|
+
return R[new URL(r).hostname.toLowerCase()] ?? "";
|
|
164
164
|
} catch {
|
|
165
165
|
return "";
|
|
166
166
|
}
|
|
@@ -185,9 +185,9 @@ function ot(e) {
|
|
|
185
185
|
n && (t = n.toLowerCase());
|
|
186
186
|
} catch {
|
|
187
187
|
}
|
|
188
|
-
if (t = t.replace(/\.$/, ""),
|
|
188
|
+
if (t = t.replace(/\.$/, ""), R[t]) return R[t];
|
|
189
189
|
let r = ie(t);
|
|
190
|
-
for (let [n, o] of Object.entries(
|
|
190
|
+
for (let [n, o] of Object.entries(R)) if (r === ie(o.toLowerCase()) || r === n.replace(/^www\./, "").replace(/\./g, "")) return o;
|
|
191
191
|
return "";
|
|
192
192
|
}
|
|
193
193
|
function se(e, t) {
|
|
@@ -591,8 +591,8 @@ var Ct = I;
|
|
|
591
591
|
function ve(e, t, r) {
|
|
592
592
|
return e ? t ? t.some((n) => Ct(r, n)) : true : false;
|
|
593
593
|
}
|
|
594
|
-
var
|
|
595
|
-
var
|
|
594
|
+
var St = "x-wd-service-token";
|
|
595
|
+
var Rt = "wd_clearance";
|
|
596
596
|
function _e(e, t, r = []) {
|
|
597
597
|
if (e.graded && t && !It(e.graded.trust, t)) return { pass: false, label: "insufficient-trust" };
|
|
598
598
|
if (e.crawler && r.length > 0) {
|
|
@@ -615,9 +615,9 @@ async function Et(e, t, r, n, o) {
|
|
|
615
615
|
return a.outsideReach ? { ...i, outsideReach: a.outsideReach } : i;
|
|
616
616
|
}
|
|
617
617
|
async function Pt(e, t, r) {
|
|
618
|
-
let n = e.headers.get(
|
|
618
|
+
let n = e.headers.get(St);
|
|
619
619
|
if (!n) return { grants: false, outsideReach: "" };
|
|
620
|
-
let o = await
|
|
620
|
+
let o = await Re(n, t.keys, r.siteKey);
|
|
621
621
|
if (!o || o.typ !== "machine" || !o.sub) return { grants: false, outsideReach: "" };
|
|
622
622
|
if (t.active_credentials.includes(o.sub)) return { grants: true, outsideReach: "" };
|
|
623
623
|
let a = (t.restricted_credentials ?? []).find((s) => s && s.id === o.sub);
|
|
@@ -635,9 +635,9 @@ async function Tt(e, t, r, n, o) {
|
|
|
635
635
|
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 } };
|
|
636
636
|
if (s.status === "invalid" && n) return { pass: false, label: "agent-impersonation", crawler: i };
|
|
637
637
|
if (!n) return o ? { pass: true, label: "excepted", crawler: i } : { pass: true, label: "unscoped", crawler: i };
|
|
638
|
-
let c = q(e.headers.get("cookie") ?? "",
|
|
638
|
+
let c = q(e.headers.get("cookie") ?? "", Rt);
|
|
639
639
|
if (!c) return { pass: false, label: "missing", crawler: i };
|
|
640
|
-
let f = await
|
|
640
|
+
let f = await Re(c, t.keys, r.siteKey);
|
|
641
641
|
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 };
|
|
642
642
|
}
|
|
643
643
|
function Bt(e) {
|
|
@@ -674,7 +674,7 @@ function Lt(e, t) {
|
|
|
674
674
|
function j(e) {
|
|
675
675
|
return !e.pass && e.mode === "enforce" && (e.label === "missing" || e.label === "invalid");
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Se(e) {
|
|
678
678
|
return j(e) ? { ...e, pass: true, label: "outage-pass" } : e;
|
|
679
679
|
}
|
|
680
680
|
function q(e, t) {
|
|
@@ -684,7 +684,7 @@ function q(e, t) {
|
|
|
684
684
|
}
|
|
685
685
|
return null;
|
|
686
686
|
}
|
|
687
|
-
async function
|
|
687
|
+
async function Re(e, t, r) {
|
|
688
688
|
try {
|
|
689
689
|
let n = e.indexOf(".");
|
|
690
690
|
if (n < 0) return null;
|
|
@@ -1142,8 +1142,8 @@ ${p}`, C = g.routes.get(v);
|
|
|
1142
1142
|
${_.path}`, y = g.referrals.get(m);
|
|
1143
1143
|
y ? y.count++ : (g.referrals.set(m, { platform: _.platform, path: _.path, count: 1 }), g.routeBytes += k.encode(_.platform).length + k.encode(_.path).length + je);
|
|
1144
1144
|
}
|
|
1145
|
-
let
|
|
1146
|
-
|
|
1145
|
+
let S = e?.refusal;
|
|
1146
|
+
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));
|
|
1147
1147
|
} catch {
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
@@ -1257,7 +1257,7 @@ async function br(e, t, r) {
|
|
|
1257
1257
|
return false;
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
|
-
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"]];
|
|
1260
|
+
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"]];
|
|
1261
1261
|
function yr(e) {
|
|
1262
1262
|
for (let [t, r, n, o] of Je) if (e.includes(t)) return { name: r, id: n, kind: o };
|
|
1263
1263
|
return null;
|
|
@@ -1285,13 +1285,13 @@ function Ze(e, t, r, n = typeof Deno < "u" && Deno && typeof Deno.resolveDns ==
|
|
|
1285
1285
|
return !r || !e || !n || !Xe(t) ? Promise.resolve("") : Ye(e, xr, kr(n), o).then((a) => a === "search_engines" ? _r : "").catch(() => "");
|
|
1286
1286
|
}
|
|
1287
1287
|
var Cr = "https://cloudflare-dns.com/dns-query";
|
|
1288
|
-
var
|
|
1289
|
-
var
|
|
1288
|
+
var Sr = 1e3;
|
|
1289
|
+
var Rr = { A: 1, PTR: 12, AAAA: 28 };
|
|
1290
1290
|
function Er(e = fetch) {
|
|
1291
1291
|
return async (t, r) => {
|
|
1292
|
-
let n =
|
|
1292
|
+
let n = Rr[r];
|
|
1293
1293
|
if (!n) throw new Error(`unsupported record type ${r}`);
|
|
1294
|
-
let o = `${Cr}?name=${encodeURIComponent(t)}&type=${r}`, a = await e(o, { headers: { accept: "application/dns-json" }, signal: AbortSignal.timeout(
|
|
1294
|
+
let o = `${Cr}?name=${encodeURIComponent(t)}&type=${r}`, a = await e(o, { headers: { accept: "application/dns-json" }, signal: AbortSignal.timeout(Sr) });
|
|
1295
1295
|
if (!a.ok) throw new Error(`doh ${a.status}`);
|
|
1296
1296
|
let i = await a.json();
|
|
1297
1297
|
if (i.Status !== 0) throw new Error(`dns status ${i.Status}`);
|
|
@@ -1303,7 +1303,7 @@ function Er(e = fetch) {
|
|
|
1303
1303
|
function Qe(e, t, r, n = fetch) {
|
|
1304
1304
|
return Ze(e, t, r, Er(n));
|
|
1305
1305
|
}
|
|
1306
|
-
var ne = "vercel-
|
|
1306
|
+
var ne = "vercel-f058e3270d3c";
|
|
1307
1307
|
var et = "https://in.webdecoy.com";
|
|
1308
1308
|
function tt(e) {
|
|
1309
1309
|
let t = new Headers(e.headers);
|
|
@@ -1323,7 +1323,7 @@ async function Pr(e, t, r) {
|
|
|
1323
1323
|
let c = await Ce(e, s, { siteKey: r.siteKey, verifiedBotCategory: (f, l) => Qe(t.ip, f.headers.get("user-agent") ?? "", l, t.fetch ?? fetch) });
|
|
1324
1324
|
if (j(c)) {
|
|
1325
1325
|
let f = q(e.headers.get("cookie") ?? "", Y);
|
|
1326
|
-
f && await Ie(f, r.sensorKey, i, e.headers.get("user-agent") ?? "", Date.now()) && (c =
|
|
1326
|
+
f && await Ie(f, r.sensorKey, i, e.headers.get("user-agent") ?? "", Date.now()) && (c = Se(c));
|
|
1327
1327
|
}
|
|
1328
1328
|
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) };
|
|
1329
1329
|
} catch {
|
|
@@ -17,6 +17,9 @@ var BOT_CATEGORIES = [
|
|
|
17
17
|
"none"
|
|
18
18
|
];
|
|
19
19
|
var BOT_REGISTRY = [
|
|
20
|
+
{ id: "speridlabsresearchcrawler", name: "SperidLabsResearchCrawler", category: "training_crawler", organization: "Speridlabs", baseScore: 75, respectsRobots: false, uaPatterns: ["speridlabsresearchcrawler"] },
|
|
21
|
+
{ id: "abliterantbot", name: "AbliterantBot", category: "training_crawler", organization: "Abliterant", baseScore: 75, respectsRobots: false, uaPatterns: ["abliterantbot"] },
|
|
22
|
+
{ id: "tokenfoundrybot", name: "TokenFoundryBot", category: "training_crawler", organization: "Unknown", baseScore: 75, respectsRobots: false, uaPatterns: ["tokenfoundrybot"] },
|
|
20
23
|
{ id: "reflectionbot", name: "Reflectionbot", category: "training_crawler", organization: "Reflection AI", baseScore: 70, respectsRobots: true, uaPatterns: ["reflectionbot"] },
|
|
21
24
|
{ id: "gptbot", name: "GPTBot", category: "training_crawler", organization: "OpenAI", baseScore: 85, respectsRobots: true, uaPatterns: ["gptbot"] },
|
|
22
25
|
{ id: "claudebot", name: "ClaudeBot", category: "training_crawler", organization: "Anthropic", baseScore: 85, respectsRobots: true, uaPatterns: ["claudebot"] },
|
|
@@ -49,6 +52,9 @@ var BOT_REGISTRY = [
|
|
|
49
52
|
{ id: "kimibot", name: "KimiBot", category: "training_crawler", organization: "Moonshot AI", baseScore: 80, respectsRobots: true, uaPatterns: ["kimibot"] },
|
|
50
53
|
{ id: "moonshotbot", name: "MoonshotBot", category: "training_crawler", organization: "Moonshot AI", baseScore: 80, respectsRobots: false, uaPatterns: ["moonshotbot"] },
|
|
51
54
|
{ id: "chatglm-spider", name: "ChatGLM-Spider", category: "training_crawler", organization: "Zhipu AI", baseScore: 80, respectsRobots: false, uaPatterns: ["chatglm-spider"] },
|
|
55
|
+
{ id: "talarionsearchbot", name: "TalarionSearchBot", category: "ai_search_crawler", organization: "Talarion", baseScore: 65, respectsRobots: false, uaPatterns: ["talarionsearchbot"] },
|
|
56
|
+
{ id: "unfragilebot", name: "UnfragileBot", category: "ai_search_crawler", organization: "Unfragile", baseScore: 65, respectsRobots: true, uaPatterns: ["unfragilebot"] },
|
|
57
|
+
{ id: "aranet-searchbot", name: "Aranet-SearchBot", category: "ai_search_crawler", organization: "Aranet", baseScore: 65, respectsRobots: false, uaPatterns: ["aranet-searchbot"] },
|
|
52
58
|
{ id: "duckassistbot", name: "DuckAssistBot", category: "ai_search_crawler", organization: "DuckDuckGo", baseScore: 65, respectsRobots: true, uaPatterns: ["duckassistbot"] },
|
|
53
59
|
{ id: "sofyabot", name: "SofyaBot", category: "ai_search_crawler", organization: "Sofya", baseScore: 65, respectsRobots: true, uaPatterns: ["sofyabot"] },
|
|
54
60
|
{ id: "xai-searchbot", name: "xAI-SearchBot", category: "ai_search_crawler", organization: "xAI", baseScore: 70, respectsRobots: true, uaPatterns: ["xai-searchbot"] },
|
|
@@ -102,6 +108,7 @@ var BOT_REGISTRY = [
|
|
|
102
108
|
{ id: "coccocbot", name: "Coc Coc", category: "search_crawler", organization: "Coc Coc", baseScore: 35, respectsRobots: true, uaPatterns: ["coccocbot"] },
|
|
103
109
|
{ id: "yisouspider", name: "YisouSpider", category: "search_crawler", organization: "Alibaba", baseScore: 40, respectsRobots: true, uaPatterns: ["yisouspider"] },
|
|
104
110
|
{ id: "yepbot", name: "YepBot", category: "search_crawler", organization: "Ahrefs", baseScore: 30, respectsRobots: true, uaPatterns: ["yepbot"] },
|
|
111
|
+
{ id: "crolbot", name: "CrolBot", category: "seo_crawler", organization: "cloro", baseScore: 50, respectsRobots: false, uaPatterns: ["crolbot"] },
|
|
105
112
|
{ id: "ahrefsbot", name: "AhrefsBot", category: "seo_crawler", organization: "Ahrefs", baseScore: 50, respectsRobots: true, uaPatterns: ["ahrefsbot", "ahrefs"] },
|
|
106
113
|
{ id: "semrushbot", name: "SemrushBot", category: "seo_crawler", organization: "Semrush", baseScore: 50, respectsRobots: true, uaPatterns: ["semrushbot", "semrush"] },
|
|
107
114
|
{ id: "mj12bot", name: "MJ12bot", category: "seo_crawler", organization: "Majestic", baseScore: 50, respectsRobots: true, uaPatterns: ["mj12bot"] },
|
|
@@ -126,6 +133,7 @@ var BOT_REGISTRY = [
|
|
|
126
133
|
{ id: "seojuice-searchbot", name: "SEOJuice-SearchBot", category: "seo_crawler", organization: "SEOJuice", baseScore: 50, respectsRobots: true, uaPatterns: ["seojuice-searchbot"] },
|
|
127
134
|
{ id: "trendictionbot", name: "trendictionbot", category: "seo_crawler", organization: "Talkwalker", baseScore: 50, respectsRobots: true, uaPatterns: ["trendictionbot"] },
|
|
128
135
|
{ id: "hubspot-crawler", name: "HubSpot Crawler", category: "seo_crawler", organization: "HubSpot", baseScore: 45, respectsRobots: true, uaPatterns: ["hubspot crawler"] },
|
|
136
|
+
{ id: "artex", name: "ARTEX", category: "security_scanner", organization: "Open Source", baseScore: 90, respectsRobots: false, uaPatterns: ["artex-enrich/"] },
|
|
129
137
|
{ id: "nessus", name: "Nessus", category: "security_scanner", organization: "Tenable", baseScore: 70, respectsRobots: false, uaPatterns: ["nessus"] },
|
|
130
138
|
{ id: "qualys", name: "Qualys", category: "security_scanner", organization: "Qualys", baseScore: 70, respectsRobots: false, uaPatterns: ["qualys"] },
|
|
131
139
|
{ id: "shodan", name: "Shodan", category: "security_scanner", organization: "Shodan", baseScore: 75, respectsRobots: false, uaPatterns: ["shodan"] },
|
|
@@ -143,6 +151,7 @@ var BOT_REGISTRY = [
|
|
|
143
151
|
{ id: "cloudflare-security-center", name: "Cloudflare Security Center", category: "security_scanner", organization: "Cloudflare", baseScore: 40, respectsRobots: false, uaPatterns: ["developers.cloudflare.com/security-center"] },
|
|
144
152
|
{ id: "virustotal-cloud", name: "VirusTotal", category: "security_scanner", organization: "Google", baseScore: 40, respectsRobots: false, uaPatterns: ["virustotalcloud"] },
|
|
145
153
|
{ id: "intruder", name: "Intruder", category: "security_scanner", organization: "Intruder", baseScore: 65, respectsRobots: false, uaPatterns: ["intruder"] },
|
|
154
|
+
{ id: "norma", name: "Norma WebFetch", category: "generic_scraper", organization: "Open Source", baseScore: 70, respectsRobots: false, uaPatterns: ["norma/"] },
|
|
146
155
|
{ id: "python-requests", name: "Python-Requests", category: "generic_scraper", organization: "Open Source", baseScore: 55, respectsRobots: false, uaPatterns: ["python-requests"] },
|
|
147
156
|
{ id: "python-urllib", name: "Python-urllib", category: "generic_scraper", organization: "Python", baseScore: 55, respectsRobots: false, uaPatterns: ["python-urllib"] },
|
|
148
157
|
{ id: "python", name: "Python", category: "generic_scraper", organization: "Python", baseScore: 50, respectsRobots: false, uaPatterns: ["python/"] },
|
|
@@ -225,6 +234,7 @@ var BOT_REGISTRY = [
|
|
|
225
234
|
{ id: "miniflux", name: "Miniflux", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["miniflux"] },
|
|
226
235
|
{ id: "freshrss", name: "FreshRSS", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["freshrss"] },
|
|
227
236
|
{ id: "commafeed", name: "CommaFeed", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["commafeed"] },
|
|
237
|
+
{ id: "terncrawler", name: "TernCrawler", category: "commercial_scraper", organization: "Unknown", baseScore: 60, respectsRobots: false, uaPatterns: ["terncrawler"] },
|
|
228
238
|
{ id: "diffbot", name: "Diffbot", category: "commercial_scraper", organization: "Diffbot", baseScore: 70, respectsRobots: true, uaPatterns: ["diffbot"] },
|
|
229
239
|
{ id: "import-io", name: "Import.io", category: "commercial_scraper", organization: "Import.io", baseScore: 65, respectsRobots: true, uaPatterns: ["import.io"] },
|
|
230
240
|
{ id: "bright-data", name: "Bright Data", category: "commercial_scraper", organization: "Bright Data", baseScore: 70, respectsRobots: false, uaPatterns: ["brightdata", "luminati"] },
|
|
@@ -2771,6 +2781,87 @@ var WebDecoyClient = class {
|
|
|
2771
2781
|
}
|
|
2772
2782
|
return response.data;
|
|
2773
2783
|
}
|
|
2784
|
+
async createSSRFCanary(options) {
|
|
2785
|
+
const response = await this.request("POST", "/api/v1/sdk/ssrf/markers", {
|
|
2786
|
+
property_id: options.propertyId,
|
|
2787
|
+
route_template: options.routeTemplate,
|
|
2788
|
+
test: options.test === true
|
|
2789
|
+
});
|
|
2790
|
+
this.requireSuccess(response);
|
|
2791
|
+
const data = response.data;
|
|
2792
|
+
if (!data.marker_id || !data.callback_url || !data.route_template || !data.expires_at) {
|
|
2793
|
+
throw new Error("WebDecoy returned an invalid SSRF canary");
|
|
2794
|
+
}
|
|
2795
|
+
return {
|
|
2796
|
+
markerId: data.marker_id,
|
|
2797
|
+
callbackUrl: data.callback_url,
|
|
2798
|
+
routeTemplate: data.route_template,
|
|
2799
|
+
expiresAt: data.expires_at,
|
|
2800
|
+
test: data.test === true
|
|
2801
|
+
};
|
|
2802
|
+
}
|
|
2803
|
+
async reportSSRFInitiation(canary) {
|
|
2804
|
+
const response = await this.request("POST", "/api/v1/sdk/ssrf/initiate", {
|
|
2805
|
+
marker_id: canary.markerId,
|
|
2806
|
+
route_template: canary.routeTemplate
|
|
2807
|
+
});
|
|
2808
|
+
this.requireSuccess(response);
|
|
2809
|
+
const data = response.data;
|
|
2810
|
+
if (!data.detection_id || !data.marker_id) {
|
|
2811
|
+
throw new Error("WebDecoy returned an invalid SSRF initiation receipt");
|
|
2812
|
+
}
|
|
2813
|
+
return { detectionId: data.detection_id, markerId: data.marker_id, test: data.test === true };
|
|
2814
|
+
}
|
|
2815
|
+
async registerHoneyCredential(tokenId, keyedFingerprint, options) {
|
|
2816
|
+
const response = await this.request("POST", "/api/v1/sdk/honey-credentials", {
|
|
2817
|
+
property_id: options.propertyId,
|
|
2818
|
+
token_id: tokenId,
|
|
2819
|
+
keyed_fingerprint: keyedFingerprint,
|
|
2820
|
+
test: options.test === true
|
|
2821
|
+
});
|
|
2822
|
+
this.requireSuccess(response);
|
|
2823
|
+
const data = response.data;
|
|
2824
|
+
if (!data.token_id || !data.expires_at) {
|
|
2825
|
+
throw new Error("WebDecoy returned an invalid honey credential handle");
|
|
2826
|
+
}
|
|
2827
|
+
return {
|
|
2828
|
+
tokenId: data.token_id,
|
|
2829
|
+
keyedFingerprint,
|
|
2830
|
+
propertyId: options.propertyId,
|
|
2831
|
+
expiresAt: data.expires_at,
|
|
2832
|
+
test: data.test === true
|
|
2833
|
+
};
|
|
2834
|
+
}
|
|
2835
|
+
async reportHoneyCredentialEvent(event, handle, routeTemplate) {
|
|
2836
|
+
const response = await this.request("POST", `/api/v1/sdk/honey-credentials/${event}`, {
|
|
2837
|
+
property_id: handle.propertyId,
|
|
2838
|
+
token_id: handle.tokenId,
|
|
2839
|
+
keyed_fingerprint: handle.keyedFingerprint,
|
|
2840
|
+
route_template: routeTemplate
|
|
2841
|
+
});
|
|
2842
|
+
this.requireSuccess(response);
|
|
2843
|
+
const data = response.data;
|
|
2844
|
+
if (!data.detection_id || !data.token_id) {
|
|
2845
|
+
throw new Error("WebDecoy returned an invalid honey credential receipt");
|
|
2846
|
+
}
|
|
2847
|
+
return { detectionId: data.detection_id, tokenId: data.token_id, test: data.test === true };
|
|
2848
|
+
}
|
|
2849
|
+
requireSuccess(response) {
|
|
2850
|
+
if (response.status === 401) {
|
|
2851
|
+
throw new Error("Invalid API key. Please check your Web Decoy configuration.");
|
|
2852
|
+
}
|
|
2853
|
+
if (response.status === 429) {
|
|
2854
|
+
throw new Error("Rate limit exceeded. Please try again later.");
|
|
2855
|
+
}
|
|
2856
|
+
if (response.status >= 400) {
|
|
2857
|
+
throw new Error(
|
|
2858
|
+
response.data?.error || response.data?.message || `API request failed: HTTP ${response.status}`
|
|
2859
|
+
);
|
|
2860
|
+
}
|
|
2861
|
+
if (!response.data) {
|
|
2862
|
+
throw new Error("WebDecoy returned an empty response");
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2774
2865
|
/**
|
|
2775
2866
|
* Send violation events to the ingest service
|
|
2776
2867
|
*/
|
|
@@ -3482,6 +3573,62 @@ var WebDecoy = class {
|
|
|
3482
3573
|
async detectBot(request) {
|
|
3483
3574
|
return this.getAgentVerifier().verify(request);
|
|
3484
3575
|
}
|
|
3576
|
+
/** Mint a signed, single-use callback marker for an SSRF test or observation. */
|
|
3577
|
+
async createSSRFCanary(options) {
|
|
3578
|
+
if (!this.client) {
|
|
3579
|
+
throw new Error("An apiKey is required to create an SSRF canary");
|
|
3580
|
+
}
|
|
3581
|
+
return this.client.createSSRFCanary(options);
|
|
3582
|
+
}
|
|
3583
|
+
/**
|
|
3584
|
+
* Report the initiating server request immediately before the application's
|
|
3585
|
+
* ordinary fetch. Only the marker ID and route template are sent.
|
|
3586
|
+
*/
|
|
3587
|
+
async reportSSRFInitiation(canary) {
|
|
3588
|
+
if (!this.client) {
|
|
3589
|
+
throw new Error("An apiKey is required to report an SSRF initiation");
|
|
3590
|
+
}
|
|
3591
|
+
return this.client.reportSSRFInitiation(canary);
|
|
3592
|
+
}
|
|
3593
|
+
/**
|
|
3594
|
+
* Create an inert decoy bearer. WebDecoy receives only a tenant-scoped ID
|
|
3595
|
+
* and keyed fingerprint; the bearer is returned locally exactly once.
|
|
3596
|
+
*/
|
|
3597
|
+
async createHoneyCredential(options = {}) {
|
|
3598
|
+
if (!this.client || !this.config.apiKey) {
|
|
3599
|
+
throw new Error("An apiKey is required to create a honey credential");
|
|
3600
|
+
}
|
|
3601
|
+
const tokenId = crypto.randomUUID();
|
|
3602
|
+
const bearer = `wd_hc_v1_${randomHex(32)}`;
|
|
3603
|
+
const keyedFingerprint = await this.honeyCredentialFingerprint(tokenId, bearer);
|
|
3604
|
+
const handle = await this.client.registerHoneyCredential(tokenId, keyedFingerprint, options);
|
|
3605
|
+
return { bearer, handle };
|
|
3606
|
+
}
|
|
3607
|
+
/** Report that the inert credential was exposed by a decoy route. */
|
|
3608
|
+
async reportHoneyCredentialRetrieval(handle, routeTemplate) {
|
|
3609
|
+
if (!this.client) {
|
|
3610
|
+
throw new Error("An apiKey is required to report a honey credential retrieval");
|
|
3611
|
+
}
|
|
3612
|
+
return this.client.reportHoneyCredentialEvent("retrieval", handle, routeTemplate);
|
|
3613
|
+
}
|
|
3614
|
+
/**
|
|
3615
|
+
* Compare a presented value locally. A mismatch—including a real
|
|
3616
|
+
* credential—never leaves the process and creates no WebDecoy request.
|
|
3617
|
+
*/
|
|
3618
|
+
async observeHoneyCredentialPresentation(candidate, handle, routeTemplate) {
|
|
3619
|
+
if (!this.client || !this.config.apiKey) {
|
|
3620
|
+
throw new Error("An apiKey is required to observe a honey credential presentation");
|
|
3621
|
+
}
|
|
3622
|
+
const candidateFingerprint = await this.honeyCredentialFingerprint(handle.tokenId, candidate);
|
|
3623
|
+
if (!timingSafeEqualStr(candidateFingerprint, handle.keyedFingerprint)) {
|
|
3624
|
+
return { matched: false };
|
|
3625
|
+
}
|
|
3626
|
+
const receipt = await this.client.reportHoneyCredentialEvent("presentation", handle, routeTemplate);
|
|
3627
|
+
return { matched: true, receipt };
|
|
3628
|
+
}
|
|
3629
|
+
honeyCredentialFingerprint(tokenId, bearer) {
|
|
3630
|
+
return hmacSha256Hex(this.config.apiKey, `webdecoy/honey-credential/v1\0${tokenId}\0${bearer}`);
|
|
3631
|
+
}
|
|
3485
3632
|
/**
|
|
3486
3633
|
* Whether this SDK instance has filter rules that need async enrichment
|
|
3487
3634
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a5 as WebDecoyConfig, O as ProtectOptions, s as Decision, W as WebDecoy } from './sdk-D8Cn_xRm.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Resolving the client IP address behind a proxy.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a5 as WebDecoyConfig, O as ProtectOptions, s as Decision, W as WebDecoy } from './sdk-D8Cn_xRm.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Resolving the client IP address behind a proxy.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-
|
|
2
|
-
export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, D as DEFAULT_CHARACTERISTICS,
|
|
3
|
-
export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-
|
|
1
|
+
import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-D8Cn_xRm.mjs';
|
|
2
|
+
export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, r as CreatedHoneyCredential, D as DEFAULT_CHARACTERISTICS, s as Decision, t as DecisionCache, u as DecisionCacheOptions, v as DecisionInit, E as EDGE_CLASS_HEADER, w as EDGE_CLEARANCE_HEADER, x as EdgeClass, y as EdgeVerdict, H as HoneyCredentialHandle, z as HoneyCredentialOptions, G as HoneyCredentialPresentationResult, I as HoneyCredentialReceipt, J as IPEnrichmentData, L as LocalAnalysis, K as LogFields, M as Logger, N as MemoryRateLimitStore, O as ProtectOptions, Q as RequestMetadata, U as RuleOutcome, V as RuleState, X as SDKDetectionRequest, Y as SDKDetectionResponse, Z as SSRFCanary, _ as SSRFCanaryOptions, $ as SSRFInitiationReceipt, a0 as Span, a1 as SyncRateLimitStore, a2 as TLSInfo, a3 as Tracer, a4 as ViolationEvent, a5 as WebDecoyConfig, a6 as classifyUserAgent, a7 as consoleLogger, a8 as deriveKey, a9 as fromPino, aa as matchUserAgent, ab as newDecisionId, ac as readEdgeVerdict, ad as silentLogger } from './sdk-D8Cn_xRm.mjs';
|
|
3
|
+
export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-DhKYwcQ1.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The reserved test trigger.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-
|
|
2
|
-
export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, D as DEFAULT_CHARACTERISTICS,
|
|
3
|
-
export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-
|
|
1
|
+
import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-D8Cn_xRm.js';
|
|
2
|
+
export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, r as CreatedHoneyCredential, D as DEFAULT_CHARACTERISTICS, s as Decision, t as DecisionCache, u as DecisionCacheOptions, v as DecisionInit, E as EDGE_CLASS_HEADER, w as EDGE_CLEARANCE_HEADER, x as EdgeClass, y as EdgeVerdict, H as HoneyCredentialHandle, z as HoneyCredentialOptions, G as HoneyCredentialPresentationResult, I as HoneyCredentialReceipt, J as IPEnrichmentData, L as LocalAnalysis, K as LogFields, M as Logger, N as MemoryRateLimitStore, O as ProtectOptions, Q as RequestMetadata, U as RuleOutcome, V as RuleState, X as SDKDetectionRequest, Y as SDKDetectionResponse, Z as SSRFCanary, _ as SSRFCanaryOptions, $ as SSRFInitiationReceipt, a0 as Span, a1 as SyncRateLimitStore, a2 as TLSInfo, a3 as Tracer, a4 as ViolationEvent, a5 as WebDecoyConfig, a6 as classifyUserAgent, a7 as consoleLogger, a8 as deriveKey, a9 as fromPino, aa as matchUserAgent, ab as newDecisionId, ac as readEdgeVerdict, ad as silentLogger } from './sdk-D8Cn_xRm.js';
|
|
3
|
+
export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-CEpuKXTE.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The reserved test trigger.
|