The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    18
    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
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page