How do I limit access to a subdomain?

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2012-12-15T22:40:53Z Indexed on 2012/12/15 23:03 UTC
Read the original article Hit count: 248

Filed under:
|

I can set up the following:

mydomain.com (ex m.com) CNAME points to: mysubdomain.hostingprovider.com (ex s1.h.com)

subdomain.mydomain.com (ex s2.m.com) CNAME points to: www.anotherdomain.com (ex a.com)

There are files in www.anotherdomain.com/mysubfolder/ that I want mydomain.com to be able to access through the subdomain, but I don't want any of the files on the subdomain to be accessable directly.

I have full direct access (ftp) to mydomain.com, but I have opono direct access to www.anotherdomain.com (online booking & shopping cart). Is there anyway to make it so access to subdomain.mydomain.com can only be accessed by mydomain.com?

© Stack Overflow or respective owner

Related posts about redirect

Related posts about subdomain