Cloudflare makes its Snippets feature generally available for all paying customers.
Cloudflare now makes its Snippets feature available to all customers with a Pro, Business, or Enterprise subscription. With Snippets, users can deploy pieces of JavaScript to process HTTP traffic, complementing the existing Cloudflare Rules.
Extension to Existing Rules
Snippets are intended as an extension to Cloudflare Rules, which, according to Cloudflare, allow users to set up simple traffic logic without code. In situations where these standard actions are not sufficient, Snippets can offer extra flexibility through custom JavaScript code. The Snippets are executed based on set conditions in incoming requests.
A key feature of Snippets is that they are executed directly on Cloudflare’s infrastructure. This means processing occurs without additional latency. It is possible to apply multiple Snippets to the same request. The user can determine the order of the Snippets themselves.
New Tools for Insight and Management
Cloudflare also introduces a renewed code editor in the dashboard, with support for testing and deploying Snippets. Additionally, there is integration with Cloudflare Trace, which provides insight into which Snippets were activated during a request. This can be useful when analyzing behavior or troubleshooting errors.
The Snippets feature is immediately available via the Cloudflare dashboard and you don’t need an additional license within your existing subscription.
read also