Results 1 to 2 of 2

Thread: how can i avoid access to specific subdomain directly

  1. #1
    Join Date
    Jul 2015
    Posts
    8

    Question how can i avoid access to specific subdomain directly

    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.

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,704
    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.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •