Doug S
January 28th, 2018, 02:51 AM
On my web site I have a directory with simple restricted access using an .htaccess file. The apache server does reverse lookups for any client that is accessing those web pages. It never does reverse loookups for any access to normal pages. I do not want apache doing reverse loookups, but haven't been able to figure how to disable them.
HostnameLookups is set to Off in the apache.conf file:
#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off
I found a couple of references that say to not have comments at the end of a line in the .htaccess file, which I don't.
I also don't have any deny via fqdn in the file. Here is the file:
Allow from valid-user
Authtype basic
AuthName "Registered users only"
AuthUserFile /home/doug/.htkes
Require valid-user
Does anyone know how to disable the reverse lookups?
EDIT: If I eliminate the .htaccess file and do it via /etc/apache2/sites-available/000-default.conf instead, the reverse lookup issue persists.
HostnameLookups is set to Off in the apache.conf file:
#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off
I found a couple of references that say to not have comments at the end of a line in the .htaccess file, which I don't.
I also don't have any deny via fqdn in the file. Here is the file:
Allow from valid-user
Authtype basic
AuthName "Registered users only"
AuthUserFile /home/doug/.htkes
Require valid-user
Does anyone know how to disable the reverse lookups?
EDIT: If I eliminate the .htaccess file and do it via /etc/apache2/sites-available/000-default.conf instead, the reverse lookup issue persists.