Search
Setup for Free
CD
Cloudflare Developers
•
13mo ago
sungod
how to block a cookie in response header in cloudflare?
A random session value is present for this cookie
.
I am trying it using Transform rules but not successful yet
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,420
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
S
sungod
A random session value is present for this cookie. I am trying it using Transfor...
C
Chaika
•
12/18/24, 5:58 PM
block
? like removing a specific set
-cookie value
?
S
sungod
OP
•
12/18/24, 6:12 PM
Hi yes
S
sungod
OP
•
12/18/24, 6:13 PM
I am able to achieve this now
S
sungod
OP
•
12/18/24, 6:14 PM
(not http
.request
.full
_uri contains
"
https://domain.com/login.php
" and http
.request
.full
_uri wildcard r
"
https://domain.com/*
"
)
S
sungod
OP
•
12/18/24, 6:14 PM
Remove Cookie name
S
sungod
OP
•
12/18/24, 6:14 PM
its in Transform rules
S
sungod
(not http.request.full_uri contains "https://domain.com/login.php" and http.requ...
C
Chaika
•
12/18/24, 6:50 PM
break that down and go simpler
C
Chaika
•
12/18/24, 6:50 PM
then you can use account level
"Trace
" tool
:
https://dash.cloudflare.com/?to=/:account/trace/search
, make sure it matches
S
sungod
OP
•
12/18/24, 6:52 PM
Thank you for the information
. I also would want to make exception for say business
.domain
.com
/
*
S
sungod
OP
•
12/18/24, 6:53 PM
The login php is also an exception so i have not equal to php full path in my solution above
.
S
sungod
Thank you for the information. I also would want to make exception for say busi...
C
Chaika
•
12/18/24, 6:54 PM
then you would set up that expression shown above
, and then click
"Or
" and
"Hostname eq business
.domain
.com
"
C
Chaika
•
12/18/24, 6:55 PM
so you
'd have two blocks
:
(hostname eq domain
.com and path is
/login
.php
, OR hostname is business
.domain
.com
)
C
Chaika
•
12/18/24, 6:55 PM
hostnames do not contain protocols
, paths
, or anything else
, simple to match on
, and matches all traffic to the hostname
S
sungod
OP
•
12/18/24, 6:55 PM
That seems
great
S
sungod
OP
•
12/18/24, 6:56 PM
I will test it out soon
Similar Threads
Cloudflare Images. Add Content-Disposition Header to response.
CD
Cloudflare Developers / general-help
2y ago
Cloudflare doesnt block a countries
CD
Cloudflare Developers / general-discussions
2y ago
Customize WAF Block Response
CD
Cloudflare Developers / general-help
3y ago
how to convert puppeteer.HTTPResponse to cloudflare Response
CD
Cloudflare Developers / workers-and-pages-help
2y ago