Protect Redirect Rules with WAF

Hi, I would like to protect a Whataspp Group Join url with a few features, so what I have done is created a hostname and then use Whatsapp redirect feature to redirect the URL to the Whatsapp Group Join URL. This part has worked very well, however the rules that I add to the hostname do not seem to apply (Interactive Challenge, geo restrictions). Is there a better way to do this? Thanks
1 Reply
Chaika
Chaika2mo ago
If you have a big enough screen size (normal desktop is fine) and view redirect rules, you can see on the right side the traffic sequence (see below) Redirects run before WAF. So anything you do in WAF/Custom Rules is just never going to apply. You could make a simple worker to handle the redirect, free gets 100k requests/day free
export default {
async fetch(request, env, ctx) {
return Response.redirect("https://google.com")
},
};
export default {
async fetch(request, env, ctx) {
return Response.redirect("https://google.com")
},
};
Bind to Custom Domain, then whatever you set in Custom Rules will apply
No description
Want results from more Discord servers?
Add your server