Is it possible to setup a website so that it only accepts requests from one particular domain / subfolder?
If so, how is this done?
Is it possible to setup a website so that it only accepts requests from one particular domain / subfolder?
If so, how is this done?
Yes. You would just look at the CGI variable REMOTE_ADDR. Or, are you talking about the Referer? If you mean the latter, keep in mind it can be forged.
If you are using apache you could setup access using .htaccess files in the folder you want to restrict. Or you could modify the .conf files and set up restrictions there.