The Apache Haus Forum

Advanced search  


Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: access logs as delivered to cPanel  (Read 183 times)


  • Newbie
  • *
  • Offline Offline
  • Posts: 1
access logs as delivered to cPanel
« on: July 08, 2021, 02:06:09 AM »

My question is whether I can put a statement in .htaccess that will insure I receive IP addresses in my raw access log file.

I have a website on a shared hosting account.  Recently, my account began providing hostname_lookup rather than raw IPs. The best information from the hosting company tech support is that if I put hostname deny statements (eg., deny, then my raw access logs will show hostname_lookup. I have a pretty long deny list, but I attempted as a test to remove all hostname deny statements.  I still failed to get IP addresses. Maybe I have [still] overlooked an error, because among other things I found a deny statement I made that was "deny xxx-xxx-xxx-xxx" instead of "deny". It's possible I have overlooked a similar statement.

It would be helpful if I could elicit IP addresses along with hostname_lookup.  Hostname blocking can be more convenient than IP blocking. But, sometimes this is not useful.  The reason is, a few of the hostname_lookup names are gibberish and the IP cannot be found by DNS lookup. So, I could end up trying to block an infinite number of hostnames.

Thank you for any help you can provide.


  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 621
Re: access logs as delivered to cPanel
« Reply #1 on: July 08, 2021, 09:11:52 AM »

You can check HostnameLookups[1] in your apache config

Pages: [1]   Go Up

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13