Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    6

    Default Domain access through hostname

    Hello,

    Say i have a configured domain abc.com (user: abcuser) on server with host name "myhostname.com".

    People are able to access it like

    Code:
    http://myhostname.com/~abcuser/index.html
    How can i stop that.

    Thanks,
    foka

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    From WHM find > Security Center on left menu then > Apache mod_userdir Tweak

    The mod_userdir tweak prevents users from stealing bandwidth by disabling access their websites using host.example.com/~username. When a website is accessed this way, the bandwidth used is attributed to the host's main domain.

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Infopro is correct; you will want to ensure the Apache mod_userdir Tweak is enabled and verify that no accounts are excluded from the protection.

    Just to help clarify, here is the full menu path in WHM where the protection feature (tweak) can be accessed:
    WHM: Main >> Security >> Security Center >> Apache mod_userdir Tweak

    Documentation for Security Center and mod_userdir protection:
    WHM Security Center
    Apache mod_userdir Tweak
    Last edited by cPanelDon; 01-11-2010 at 10:34 PM. Reason: Revised documentation links

Similar Threads & Tags
Similar threads

  1. Hostname changed. cPanel/WHM still try to access original hostname
    By Nathan D. in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-24-2009, 04:42 PM
  2. Access denied for user test_test1@hostname .com
    By crazyaboutlinux in forum Database Discussions
    Replies: 2
    Last Post: 04-29-2009, 01:11 PM
  3. stopping access via http://hostname/~username
    By BigLebowski in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-19-2008, 11:27 AM
  4. Access to PHP via http://hostname/~username
    By graham_w in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-16-2007, 05:12 AM
  5. Remote SSH ROOT access for single hostname/IP
    By lostinspace in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-26-2005, 12:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube