Loading

Detecting and Managing AI Crawler and Shopping Agent Traffic With eCDN Rules in B2C Commerce

Publiceringsdatum: Oct 2, 2026
Beskrivning

Overview

AI crawlers and shopping agents (e.g., search-engine AI bots, Meta Muse-style shopping agents) increasingly browse storefronts on shoppers' behalf. Unlike malicious scraping (see Detecting and Mitigating Product Scraping Bot Traffic With eCDN Rules in B2C Commerce), much of this traffic is legitimate — but at volume it can drive up resource consumption, including high token/LLM usage on AI-powered ("agentic") search, and can skew analytics by landing on Product Detail Pages (PDPs) as "direct" traffic with no referrer/UTM. This article explains how to detect this traffic using B2C Commerce's Embedded Content Delivery Network (eCDN), decide how to treat each traffic category, and apply eCDN rules and discoverability controls accordingly.

 

Who This Affects / Symptoms

  • Rising token/LLM cost on agentic-search endpoints out of proportion to human sessions.
  • Spikes of "direct" traffic (no referrer/UTM) landing straight on PDPs or search.
  • Repeated identical or near-identical queries hundreds of times within minutes.
  • A growing share of traffic in unverified bot categories.

 

Real-Life Example

A B2C Commerce merchant notices their agentic-search endpoint's LLM token cost tripled over two weeks, with no corresponding increase in human checkout sessions. Reviewing eCDN logs, the merchant finds that traffic tagged with verified-bot-category = AI Crawler is issuing the same handful of product-search queries hundreds of times per hour. Using the workflow below, the merchant classifies this traffic, decides to allow verified AI Search and AI Assistant categories (since they drive legitimate shopping-agent referrals) but rate-limits the AI Crawler category specifically on the agentic-search endpoint, cutting LLM cost without blocking any human shopper traffic.

Lösning

Step 1 — Detect

Use the eCDN verified-bot field (true/false) and verified-bot-category field to identify known search-engine and AI-agent crawlers in logs/analytics, alongside behavioral signals you can already see — direct-to-PDP traffic with no referrer, and identical queries repeating at machine speed.

 

Step 2 — Decide (Policy Per Category)

Separate traffic you want (verified search engines, legitimate AI shopping agents that drive discoverability/revenue) from unverified or abusive automation. For each category choose: allow, rate-limit, challenge, or block. Make this a business decision — some AI-agent traffic is desirable commerce.

 

Step 3 — Mitigate At The Edge Using eCDN Rules

  • Allow the verified bots you want. Use the verified-bot / verified-bot-category fields as mentioned in Allow Traffic from Search Engine and Other Verified Bots with eCDN Rules to admit known-good crawlers. Example: allow verified search-engine and verified AI-shopping-agent categories to reach catalog/PDP paths.
  • Rate-limit the token-expensive paths. Scope a rate-limit rule narrowly to the agentic-search / high-cost endpoints so bursts of automated queries don't run up LLM cost. For example, a rule can match verified-bot-category equals "AI Crawler" AND request path starts with "/search", then apply a rate limit of a fixed number of requests per minute. This can be done with verified-bot-category conditions alone (self-service); customers with Bot Management enabled can further scope by Bot Score for finer control (internal/Support note).
  • Challenge or block abusive unverified automation. For unverified AI-crawler traffic showing abusive patterns, apply a managed challenge or block. Customers with Bot Management + JA4 fingerprinting enabled can target this more precisely (internal/Support note); self-service customers rely on verified-bot-category alone.

eCDN rules can be created in two ways using the eCDN Rule Expression Fields:

  1. Business Manager: Create a Custom Firewall Rule for an eCDN Zone & Create a Rate Limiting Rule for an eCDN Zone
  2. CDN Zones API: eCDN Custom Rules & eCDN Rate Limiting Rules

Pay attention to the rule order as they execute in a top-to-bottom order. Rules can be created and ordered in the eCDN zone's custom rules editor if using Business Manager or set when using the CDN Zones API.

 

Step 4 — Govern Discoverability (SEO / Crawler Controls)

Alongside edge enforcement, use Search Engine Optimization (SEO) and discoverability controls to tell crawlers what they may access, through robots directives and crawler settings in the platform's SEO configuration. Edge rules say "limit/block"; discoverability controls say "here's what's open." See SEO & Discoverability for B2C Commerce Overview for the full set of discoverability controls available, including how they interact with AI-crawler directives.

 

Step 5 — Measure Before You Enforce

Deploy new rules in log-only/observe mode first and tune so they fire only during actual abuse — never catch legitimate shoppers (e.g., a shopper applying 8+ PLP refinements should not trip a challenge). Promote to enforce only after logs confirm clean separation.

 

Appendix: Verified Bot Category Reference

The Verified Bot Category field (cf.verified_bot_category) in the eCDN rule builder in Business Manager exposes the following 17 bot categories:

CategoryDefinitionExample Bots
Academic ResearchGathers data for scholarly research or academic purposes.Library of Congress, TurnItInBot, Bibliothèque nationale de France
AccessibilityScans websites to identify their accessibility.Accessible Web Bot
Advertising & MarketingAutomates marketing tasks including ad placement and performance tracking.Google Adsbot
AggregatorCollects content from various online sources and consolidates it in one place.Pinterest, Indeed Jobsbot
AI AssistantAutomated AI bot driven by user action.Perplexity-User, DuckAssistBot
AI CrawlerCrawls websites for content used to train AI models.Google-Extended, GPTBot
AI SearchPowers AI-driven search experiences.OAI-SearchBot
ArchiverSaves snapshots of websites to preserve digital content for historical records.Internet Archive, CommonCrawl
Feed FetcherRetrieves updates from feeds to power readers or other applications.RSS/Podcast feed updaters
Monitoring & AnalyticsTracks a website's uptime, performance, and user traffic.Uptime Monitors
Page PreviewGenerates previews for links shared on social media or messaging apps.Facebook, Slack, Twitter, Discord link preview tools
Search Engine CrawlerDiscovers and indexes web pages for search results.Googlebot, Bingbot, Yandexbot, Baidubot
Search Engine OptimizationAnalyzes websites to improve search engine ranking.Google Lighthouse, GTmetrix, Pingdom, AddThis
SecurityScans websites to detect security vulnerabilities and threats.Vulnerability scanners, SSL/DCV check tools
Social Media MarketingManages and automates activities on social platforms.Brandwatch
WebhooksSends data from one application to another for specific events.Payment processors, WordPress integration tools
OtherCatch-all for bots that don't fit other classifications.—

 

Ytterligare resurser
Knowledge-artikelnummer

005460913

 
Laddar
Salesforce Help | Article