Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Markus Wolf
--- On Mon, 9/7/09, Krist van Besien wrote: > RewriteCond    %{REMOTE_ADDR}      >        !$1 > RewriteRule  >    /(\d+\.\d+\.\d+\.\d+)_.*    >   -      [F] > Thank you very much. That seems to do the trick. I'll give that a go. ---

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Krist van Besien
On Mon, Sep 7, 2009 at 1:15 PM, Markus Wolf wrote: > > > --- On Mon, 9/7/09, Krist van Besien wrote: >> What do you actually mean with the "referer IP address". > > Sorry, yes, it should have said REMOTE_IP. You can do something like that with rewrite rules. however, RewriteRules operate on URLs,

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Krist van Besien
On Mon, Sep 7, 2009 at 1:15 PM, Markus Wolf wrote: > > > --- On Mon, 9/7/09, Krist van Besien wrote: >> What do you actually mean with the "referer IP address". > > Sorry, yes, it should have said REMOTE_IP. > > >> Or maybe you want to restrict access based on client IP? >> That is >> something di

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Markus Wolf
> > What do you actually mean with the "referer IP > address". > > Sorry, yes, it should have said REMOTE_IP. Uhm, REMOTE_ADDR. ;) - The official User-To-User support forum of the Apache HTTP Server Project. See htt

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Markus Wolf
--- On Mon, 9/7/09, Krist van Besien wrote: > What do you actually mean with the "referer IP address". Sorry, yes, it should have said REMOTE_IP. > Or maybe you want to restrict access based on client IP? > That is > something different, however. That's what I would like to do. --

Re: [us...@httpd] Access restriction to a particular folder by IP

2009-09-07 Thread Krist van Besien
On Sun, Sep 6, 2009 at 4:54 PM, Markus Wolf wrote: > I have directories that contain IP addresses. > > /171.35.110.12_some_characters > /172.30.97.4_some_other_random_characters > > Now I would like to only allow access to a folder in .htaccess when the > referer IP address matches the first part

[us...@httpd] Access restriction to a particular folder by IP

2009-09-06 Thread Markus Wolf
Hello, I have spent the last few days trying to find a solution for this, but to no avail. I have directories that contain IP addresses. /171.35.110.12_some_characters /172.30.97.4_some_other_random_characters Now I would like to only allow access to a folder in .htaccess when the referer IP