how can i avoid access to specific subdomain directly

drstreet

Verified User
Joined
Jul 8, 2015
Messages
8
hello ,

i want to avoid access to specific subdomain directly ,
I mean, consider i have subdomain.mydomain.com and i want just load this subdomain embedded in mydomain.com and not load in directly
subdomain.mydomain.com use proxy_pass to load 127.0.0.1:8000 and i don't have access to code for edit and more ... and i should use nginx rewrite or cross origin or ...

Nginx installed by directadmin

can anyone help me please?



thanks.
 
Hello,

You might try and use mod_rewrite and check referers with every request to subdomain.mydomain.com. If a referer is either empty or does not match your domain you drop an error.


 
Back
Top