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!

MRTG allowed for only 1 IP

Discussion in 'General Discussion' started by sh4ka, Oct 11, 2005.

  1. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    444
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Uruguay
    cPanel Access Level:
    DataCenter Provider
    I installed MRTG but everybody can see the graphs at IP/mrtg, does anybody know how to deny access to everybody, except my local IP ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    444
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Uruguay
    cPanel Access Level:
    DataCenter Provider
    Added this to /usr/local/apache/conf/httpd.conf

    <Directory "/usr/local/apache/htdocs/mrtg/">
    order deny,allow
    allow from [SERVER IP]
    allow from [MY LOCAL IP]
    deny from all
    </Directory>

    And all done ;)
     
    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