HostnameLookups Off but still resolved hostnames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

our global config of Apache defines:

HostnameLookups Off

So we expected, that the REMOTE_ADDR part (%h) in our logfiles are only IP-addresses. Now we noticed, that a customer is using a Deny rule with a hostname rather than an IP-address in his .htaccess file which causes Apache to resolve REMOTE_ADDR. And once Apache has done that, it obviously stores the resolved hostname in the logfile rather than the IP-address.

When I looked at http://httpd.apache.org/docs/2.0/mod/mod_log_config.html recently I saw, that instead of %h for logging the REMOTE_ADDR %a can be used. Is it save to rely on an IP-address stored with %a or might there be any special conditions like with %h?

Regards
Marten

---------------------------------------------------------------------
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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux