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 Wolfmakuswol...@yahoo.com 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

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 krist.vanbes...@gmail.com 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

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

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 Wolfmakuswol...@yahoo.com wrote: --- On Mon, 9/7/09, Krist van Besien krist.vanbes...@gmail.com 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

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 Wolfmakuswol...@yahoo.com wrote: --- On Mon, 9/7/09, Krist van Besien krist.vanbes...@gmail.com 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.

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 krist.vanbes...@gmail.com 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.

[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