httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Conditions based on reverse lookup
Date Thu, 10 Aug 2006 15:32:47 GMT
On 8/10/06, Marc Perkel <> wrote:
> I'm running Apache 2.2. Here's what I want to do. I want to restrict
> access based on a failed reverse host lookup. For example, if the IP of
> the client fails revers lookup I want then to not be able to post.
> Can that be done?

There's probably some module that does this, but a quick hack would be
HostnameLookups On
SetEnvIf Remote_Host [0-9]$ noname=1
<Location />
Order deny,allow
Deny from env=noname

This *will* slow down your server.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message