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 domain.com/~user in WHM?

Discussion in 'General Discussion' started by Rydel, Jul 10, 2007.

  1. Rydel

    Rydel Member

    Joined:
    Jul 31, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to disable the feature that allows the domain.com/~user function? I have found it allows accounts to use another account's bandwidth.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes, it is easy to disable this functionality.

    WHM -> Security -> Security Center. Click on "Apache mod_userdir Tweak" and enable the protection. If it is enabled and you're still able to access the accounts using /~user then ensure you haven't excluded that user/domain from the protection.
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    The sure fire way to do this is to not compile Apache with mod_userdir ....

    In all the servers I setup, I always leave "mod_userdir" out of Apache
    and instead setup wildcard DNS allowing all sites to have temporary
    subdomains instead of "~user" access.
     
Loading...

Share This Page