Web Assets automatically discovers operations in web applications proxied through Cloudflare. Operation context helps you define security protections against application-specific functionalities.
For example, discovering operations that receive LLM prompts so AI Security for Apps can help you define targeted protections such as deterring prompt injections.
To access Web Assets in the Cloudflare dashboard, go to the Web Assets page.
Go to Web assets ↗An operation is a group of HTTP requests that serve the same purpose in your application. Each operation is defined by:
- HTTP method
- Hostname pattern
- Path pattern
For example, Web Assets can group requests to product detail pages into one operation:
GET example.com/products/{var1}The operation can match requests such as:
GET https://example.com/products/shoes
GET https://example.com/products/hats
GET https://example.com/products/jacketsThis lets Cloudflare identify requests that serve the same purpose in your application.
Operations can come from several sources:
- Discovery: Web Assets continuously reviews proxied HTTP traffic and groups similar requests into operations using machine learning (for API discovery) and heuristics.
- Manual entry: You can add operations by method, hostname pattern, and path pattern.
- Schema upload: You can upload an OpenAPI schema to create operations from an existing API definition.
These sources contribute to the same operation inventory. You do not need to review every discovered operation before security detections can use operation context.
Labels describe what an operation does, such as a login flow, sign-up flow, AI-powered operation, or another use case.
Cloudflare defines managed labels. Some managed labels can be discovered automatically, but not every managed label is currently auto-discovered.
Custom labels let you organize operations for your own workflows. They do not replace managed labels for Cloudflare security detections.
Security detections can use Web Assets to focus on the operations where their signals matter. For example, AI Security for Apps uses the cf-llm managed label to scan requests to AI-powered operations. For more information, refer to Define security protections.
Related API Shield features
Web Assets focuses on HTTP request operations. For API-specific protections such as schema validation, schema learning, mutual TLS, and JWT validation, refer to API Shield.