On Mon, Sep 7, 2009 at 1:15 PM, Markus Wolf<makuswol...@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. however,
RewriteRules operate on URLs, not on file paths.
IF the IP addresses are also visible in the requeste URL you could do
something like:

RewriteCond    %{REMOTE_ADDR}             !$1
RewriteRule     /(\d+\.\d+\.\d+\.\d+)_.*      -      [F]

Basically this captures the IP address from the URL in $s using a
regular expression, and then uses it in the RewriteCond (remember that
RewriteRules get evaluated first, and when the URL matches the
RewriteCond's get tested. In this case the rule does not do any
rewriting.

Krist

-- 
krist.vanbes...@gmail.com
kr...@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to