0

Is it possible to setup a website so that it only accepts requests from one particular domain / subfolder?

If so, how is this done?

splattne
  • 28,348
  • 19
  • 97
  • 147

2 Answers2

0

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.

Matthew Flaschen
  • 868
  • 2
  • 7
  • 11
0

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.