Under Attack Mode

Can I enable the under-attack mode for a specific subdomain, not the whole domain?
27 Replies
yvs8
yvs8OP•9mo 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
Walshy•9mo ago
No. You can enable challenges on subdomains through WAF
yvs8
yvs8OP•9mo ago
What is WAF please Im new
Walshy
Walshy•9mo 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
yvs8OP•9mo ago
nice
Walshy
Walshy•9mo 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
yvs8OP•9mo ago
But can I enable the challenges for two domains like: example.com and www.example.com or just for subdomains? thanks man
Walshy
Walshy•9mo ago
For whatever you configure
yvs8
yvs8OP•9mo ago
great i'll try thanks use hostname correct?
Walshy
Walshy•9mo ago
yes
yvs8
yvs8OP•9mo ago
what about Operator? same as it?
Walshy
Walshy•9mo ago
whatever fits best, if you want to match a specific you'll want equals e.g. hostname equals example.com
yvs8
yvs8OP•9mo ago
oh ok
yvs8
yvs8OP•9mo ago
I want a challenge like this one use this correct?
Walshy
Walshy•9mo ago
i'd recommend managed challenge but yeah, you can use js challenge too
yvs8
yvs8OP•9mo ago
nice
yvs8
yvs8OP•9mo ago
you're awesome! ❤️ after hitting deploy just like that I finished?
Walshy
Walshy•9mo ago
yep
yvs8
yvs8OP•9mo ago
I have a problem my status page get this problem everytime try to check the website status
Walshy
Walshy•9mo 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
yvs8OP•9mo ago
like using Managed Challenge correct?
Walshy
Walshy•9mo ago
no, in your matching rule you'll need to exclude it based on like header, ip, etc.
yvs8
yvs8OP•5mo ago
where is it? this? @Walshy Can I use the Under Attack Mode for a website hosted on vercel?
Walshy
Walshy•5mo ago
i don't see why not
yvs8
yvs8OP•5mo ago
ok 😂 Same as the way above, correct? @Walshy I connect Vercel website with my domain and configured the WAF but the protection isn't working edit: worked

Did you find this page helpful?