On Mon, Sep 7, 2009 at 1:15 PM, Markus Wolf<makuswolf03@xxxxxxxxx> wrote: > > > --- On Mon, 9/7/09, Krist van Besien <krist.vanbesien@xxxxxxxxx> 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.vanbesien@xxxxxxxxx krist@xxxxxxxxxxxxx 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-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx