Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

Re: [users@httpd] allow from "hostname" not working..

André Warnier

2008-06-19

Replies: Find Java Web Hosting

Author LoginPost Reply


Michael Alipio wrote:
[...]

> Though I'm still wondering if there is a way to tell
> apache to just skip reverse resolving before
> evaluating the "allow from hostname" rule...
>

The rest is ok, but the phrase above shows that you are still missing a
part of the explanation.

Apache /does not know/ the hostname and domainname of the workstation
from which the request is sent. That information is not included in the
HTTP request from your browser.
Apache knows 3 things :
- the IP address from which the HTTP connection to itself is being made
- the hostname of the server that you are trying to reach
- the URL that you are requesting (of course)

(That's the essentials; there is more stuff, but nothing to do with the
IP addresses, domains, etc..)

So, Apache knows the IP address from which you are talking to it.
But if it wants to know which is the DNS name corresponding to that IP
address, it /must/ do a reverse DNS lookup.
And by saying "Allow from (domain)", you are telling it to do that.
You cannot stop it from doing that, or "Allow from (domain)" would never
work. Those two things depend absolutely on eachother.



---------------------------------------------------------------------
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@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.