How do I limit access to a folder to one subdomain?

Discussion in 'General troubleshooting' started by ScottW, Mar 29, 2013.

  1. I have a domain, 'blahblahblah.com'. I have a subdomain, 'labs', intended for proof of concept type projects. The POC subdomain, 'labs.blahblahblah.com', contains projects and folders I do not want exposed to the main site. For example, one project is accessible by visiting 'https://labs.blahblahblah.com/labs/project1'. Unfortunately, I can also access it by going to 'https://www.blahblahblah.com/labs/project1', if I ignore the SSL certificate warning. How do I ensure project1 is accessible only from the labs subdomain and access from all others, including www, is prohibited?
     
  2. Last edited by a moderator: Oct 14, 2015

Share This Page