Restricting Subdomain Access

Hi experts,

I have a subdomain which can be directly accessed publicly as www.subdomain.example.com , however I want to stop people from directly going to it.
I want the traffic to come to example.com and then be automatically redirected to the subdomain.example.com after they click something on www.example.com

Key Question

  • How do I ensure that only people who have visited the main landing page can go to the subdomain?

Is there a rule I can create (Zone rule or firewall rule) which checks that the person has been re-directed from my main domain and is not coming directly?

Perhaps, http-referer or something better?

The issue I am trying to fix is that the subdomain is accessible publicly and I want to restrict it to not being accessed by any user by just typing the URL www.subdomain.example.com. I want them to only be automatically redirected from the landing page when they have visited www.example.com

Thanks to all you experts for your suggestions and helpful advice!

Vim

PS: Oh and one more thing

  • Is it possible to redirect users bak to my domain if they directly try to access the subdomain rather than show a nasty page blocked message?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.