Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

disable rdns lookup on Apache access log

Discussion in 'EasyApache' started by Opal69, Aug 2, 2015.

  1. Opal69

    Opal69 Registered

    Joined:
    Aug 2, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    IRAN
    cPanel Access Level:
    Website Owner
    Hello

    is someone know how i can disable rdns lookup on Apache access log ?
    for example check this log line :

    Code:
    msnbot-157-55-39-143.search.msn.com - - [02/Aug/2015:04:46:36 -0400] "GET /showthread.php?t=72811 HTTP/1.1" 200 14849 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
    
     
    #1 Opal69, Aug 2, 2015
    Last edited by a moderator: Aug 2, 2015
  2. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    In:
    Code:
    /usr/local/apache/conf/httpd.conf
    If you didn't find it, add it:
    Code:
    HostnameLookups Off
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Opal69

    Opal69 Registered

    Joined:
    Aug 2, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    IRAN
    cPanel Access Level:
    Website Owner
    Hello

    Thank you for reply,
    I put this config on httpd.conf before I post this topic but it doesn't work .
     
    #3 Opal69, Aug 2, 2015
    Last edited: Aug 2, 2015
  4. Opal69

    Opal69 Registered

    Joined:
    Aug 2, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    IRAN
    cPanel Access Level:
    Website Owner
    Hi all

    I edited the httpd.conf and replace %h with %a in LogFormat lines .
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Please ensure you follow the instructions on the following document to preserve changes you make to the Apache configuration file:

    Advanced Apache Configuration

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice