N
Nuxt9mo ago
leemartin

Redirect based on referring domain

I've developed a Netlify hosted Nuxt app and I'm trying to prevent access to said site depending on the domain users originate from. I realize that is sort of a hack but any simple hacked solution would be fine I think. So, if users go to said site directly, it would redirect them off BUT if they arrive at said site from a particular domain, it would let them through. Any ideas on how to pull this off?
1 Reply
manniL
manniL9mo ago
Maybe with a nitro middleware checking the referer header, then setting a cookie or similar to "allow access"? 🤔
Want results from more Discord servers?
Add your server