Examples
Filter resources...
Add a request header with the current bot score
Create a request header transform rule to add a `X-Bot-Score` HTTP header to the request with the current bot score.Add request header with a static value
Create a request header transform rule to add an `X-Source` HTTP header to the request with a static value (`Cloudflare`).Add a request header for subrequests from other zones
Create a request header transform rule to add an HTTP header when the Workers subrequest comes from a different zone.Add a response header with a static value
Create a response header transform rule to add a `set-cookie` HTTP header to the response with a static value (`cookiename=value`).Normalize encoded slashes in URL path
Create a URL rewrite rule (part of Transform Rules) to normalize encoded forward slashes (`%2F`) in the request path to standard slashes (`/`).Remove a request header
Create a request header transform rule (part of Transform Rules) to remove the `cf-connecting-ip` HTTP header from the request.Remove a response header
Create a response header transform rule (part of Transform Rules) to remove the `cf-connecting-ip` HTTP header from the response.Rewrite blog archive URLs
Create a transform rule to rewrite the URL format `/posts/<YYYY>-<MM>-<DD>-<TITLE>` to the new format `/posts/<YYYY>/<MM>/<DD>/<TITLE>`.Rewrite path of moved section of a website
Create a URL rewrite rule (part of Transform Rules) to rewrite everything under `/blog/<PATH>` to `/marketing/<PATH>`.Rewrite path of archived blog posts
Create a URL rewrite rule (part of Transform Rules) to rewrite any requests for `/news/2012/...` URI paths to `/archive/news/2012/...`.Rewrite path for object storage bucket
Create a URL rewrite rule (part of Transform Rules) to rewrite any requests for `/files/...` URI paths to `/...`.Rewrite image paths with several URL segments
Create a URL rewrite rule (part of Transform Rules) to rewrite any requests for `/images/<FOLDER1>/<FOLDER2>/<FILENAME>` to `/img/<FILENAME>`.Rewrite URL query string
Create a transform rule to rewrite the request path from `/blog` to `/blog?sort-by=date`.Set a response header with the current bot score
Create a response header transform rule (part of Transform Rules) to set an `X-Bot-Score` HTTP header in the response with the current bot score.Rewrite page path for visitors in specific countries
Create two URL rewrite rules (part of Transform Rules) to rewrite the path of the welcome page for visitors in specific countries.Set response header with a static value
Create a response header transform rule (part of Transform Rules) to set an `X-Bot-Score` HTTP header in the response to a static value (`Cloudflare`).Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark