Under Attack Mode

Can I enable the under-attack mode for a specific subdomain, not the whole domain?
31 Replies
yvs8
yvs8OP2mo ago
because I have two pages one for the main website and the other one to store images (something like CDN) but when I enable the under-attack mode it rejects access to the CDN website
Walshy
Walshy2mo ago
No. You can enable challenges on subdomains through WAF
yvs8
yvs8OP2mo ago
What is WAF please Im new
Walshy
Walshy2mo ago
Cloudflare Docs
Overview · Cloudflare Web Application Firewall (WAF) docs
The Cloudflare Web Application Firewall (WAF) provides automatic protection from vulnerabilities and the flexibility to create custom rules.
yvs8
yvs8OP2mo ago
nice
Walshy
Walshy2mo ago
Cloudflare Docs
Create a custom rule in the dashboard · Cloudflare Web Application ...
When you select the Block action in a rule you can optionally define a custom response.
yvs8
yvs8OP2mo ago
But can I enable the challenges for two domains like: example.com and www.example.com or just for subdomains? thanks man
Walshy
Walshy2mo ago
For whatever you configure
yvs8
yvs8OP2mo ago
great i'll try thanks
yvs8
yvs8OP2mo ago
use hostname correct?
No description
Walshy
Walshy2mo ago
yes
yvs8
yvs8OP2mo ago
what about Operator? same as it?
Walshy
Walshy2mo ago
whatever fits best, if you want to match a specific you'll want equals e.g. hostname equals example.com
yvs8
yvs8OP2mo ago
oh ok
yvs8
yvs8OP2mo ago
I want a challenge like this one
No description
yvs8
yvs8OP2mo ago
use this
yvs8
yvs8OP2mo ago
No description
yvs8
yvs8OP2mo ago
correct?
Walshy
Walshy2mo ago
i'd recommend managed challenge but yeah, you can use js challenge too
yvs8
yvs8OP2mo ago
nice
yvs8
yvs8OP2mo ago
you're awesome! ❤️ after hitting deploy just like that I finished?
Walshy
Walshy2mo ago
yep
yvs8
yvs8OP2mo ago
I have a problem
yvs8
yvs8OP2mo ago
my status page get this problem everytime try to check the website status
No description
Walshy
Walshy2mo ago
Well it's being challenged and it isn't human so it won't pass meaning it'll see a 403 rather than 200 If you want to exempt the status page you'll need to tweak your waf rule to ignore it
yvs8
yvs8OP2mo ago
like using Managed Challenge correct?
Walshy
Walshy2mo ago
no, in your matching rule you'll need to exclude it based on like header, ip, etc.
yvs8
yvs8OP2mo ago
where is it?
yvs8
yvs8OP2mo ago
this?
No description

Did you find this page helpful?