• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Can I NOT log certain IPs?

Ace69

Senior member
I have an Apache webserver running on Red Hat 7.1 and I have 3 virtual domains on it. I have some friends that I know their IP and I don't want to log them because I know that they are not doing anything bad. Is there a way to NOT log specified IPs? Also, can I change an IP in a log to a name? ie. 192.168.1.1 = testIP, and in the logs, it would come up testIP instead of 192.168.1.1?
 
Turn on DNS lookups in the Apache conf file, it's usually off by defautl for speed.

I don't believe you can exclude certain IPs from logging, it's all or none. Although I could be very wrong...
 
I don't want to have it display DNS names, I just want to be able to give them aliases of my own, just for the logs.
 
Sorry, it's DNS names or IPs. I'm sure you could write an Apache module to do that but for most people that's pointless. You could write some sort of script to format the logs in another way for you, then you can do whatever you want, but AFAIK it's not possible to do that.
 
Back
Top