I have a folder off my webroot that is linked to a subdomain. The folder can be accessed from either sub.domain.com or domain.com/sub … I want to limit access ONLY to people accessing it from the subdomain. I’m currently doing this in php on the index page but I’m sure theres a better way. Advice?
Share
I would have move that directory outside the
domain.comfolders.Then you point your
sub.domain.comvirtual host to this new directory.Maybe you can also use the rewrite engine to redirect
domain.com/subon a error403 Forbidden