Texhost
02-07-2002, 03:46 PM
I know I have seen this before, but I was unable to locate a thread when I searched. Thanks in advance, Bryant
![]() | View Full Version : How do you allow access to directory based on IP address Texhost 02-07-2002, 03:46 PM I know I have seen this before, but I was unable to locate a thread when I searched. Thanks in advance, Bryant Chicken 02-07-2002, 04:15 PM I'm not exactly certain what you mean. Can you give an example or word it another way? Texhost 02-07-2002, 05:11 PM I am trying to restirct access to my "newuser" directory. I want it only to open upon being referred from my payment gateway or my office IP address. for eg. my customer pays at www.payme.com/pay.cig, then I only want my directory www.myhostingsite.com/newsuser/ to only allow access from www.payme.com/pay.cig and my home ip as referring pages? Hopefully this is clear enough. thanks. Chicken 02-07-2002, 05:31 PM I think you want... http://httpd.apache.org/docs/misc/FAQ-G.html#remote-auth-only Deny from all Allow from .domain.com AuthType Basic AuthUserFile /usr/local/apache/conf/htpasswd.users AuthName "special directory" Require valid-user Satisfy any Though this is for either password or URL access, you could probably skip the satisfy part and the Auth/Require lines |