Stop R-U-Dead-Yet? (R.U.D.Y.) attacks
Last updated Apr 16, 2026 R-U-Dead-Yet (R.U.D.Y.) attacks accomplish denial of service (DoS) by submitting long form fields. Use custom rules to stop these attacks by blocking requests that do not have a legitimate session cookie.
This example combines three expressions to target HTTP POST requests that do not contain a legitimate authenticated session cookie:
- The first expression uses the
http.request.uri.pathfield to target the paths to secure from R.U.D.Y.:
txt
http.request.uri.path matches "(comment|conversation|event|poll)/create"
- The second uses a regular expression to match the format of a legitimate
auth_sessioncookie. Thenotoperator targets requests where that cookie is not formatted correctly:
txt
not http.cookie matches "auth_session=[0-9a-zA-Z]{32}-[0-9]{10}-[0-9a-z]{6}"
- The third expression targets HTTP
POSTrequests:
txt
http.request.method eq "POST"
To generate the final custom rule expression for this example, the three expressions are combined into a compound expression using the and operator. When an HTTP POST request to any of the specified URIs does not contain a properly formatted auth_session cookie, Cloudflare blocks the request:
- When incoming requests match:
Use the expression editor:
(http.request.method eq "POST" and http.request.uri.path matches "(comment|conversation|event|poll)/create" and not http.cookie matches "auth_session=[0-9a-zA-Z]{32}-[0-9]{10}-[0-9a-z]{6}")
- Then take action: Block
Note
The matches operator requires a Cloudflare Business or Enterprise plan.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/waf/custom-rules/use-cases/stop-rudy-attacks/#page","headline":"Stop R-U-Dead-Yet? (R.U.D.Y.) attacks","description":"Block R-U-Dead-Yet slow POST attacks with custom rules.","url":"https://developers.cloudflare.com/waf/custom-rules/use-cases/stop-rudy-attacks/","inLanguage":"en","image":"https://developers.cloudflare.com/waf/custom-rules/use-cases/stop-rudy-attacks/og.png?v=86a5524fe87c675f","dateModified":"2026-04-16","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Manage custom rules for customer and partner traffic. title: Update custom rules for customers or partners image: https://developers.cloudflare.com/waf/custom-rules/use-cases/update-rules-customers-partners/og.png?v=76fcae3eba975428
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/waf/llms.txt
Use this file to discover all available pages before exploring further.
Docs