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 wildcard subdomain

Discussion in 'Security' started by freemannn, Apr 29, 2012.

  1. freemannn

    freemannn Member

    Joined:
    Dec 17, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Montreal, QC, Canada
    cPanel Access Level:
    Root Administrator
    There is an option (way) to disable wildcard subdomain creation, like *.domain.com ?

    I don't know if I am in the good forum.


    Regards
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm not able to duplicate this. Can you explain a bit more please?

    wildcard.sub.ng.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Nimmi

    Nimmi Member

    Joined:
    Apr 30, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    As far as I know, root user will be having privilege to create wilcard DNS entries.

    If you simply want to remove the wild card record of a domain, you may remove the corresponding entries from the apache configuration file ( ServerAlias in VirtualHost entry) and DNS zone file (*.domain.com ).

    Else, if you are talking about disabling the creation of such wild card records by root, it is not possible because, root user is having full privilege to edit these files (in my point of view).

    However, you can limit the options available for a Cpanel user, from the FeatureManager in WHM.
     
  4. freemannn

    freemannn Member

    Joined:
    Dec 17, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Montreal, QC, Canada
    cPanel Access Level:
    Root Administrator
    cp.jpg I am sorry, maybe I didn't explain correctly. So a user created a subdomain [*.domain.com] with directory [/home/user/public_html]. Is it possible to limit or block any * in the subdomain field?

    Thank you.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Interesting. Adding a single asterisk is ok, but 2 is not, nor as in my picture above, is *.* allowed.

    I would consider this a bug to be honest. Someone much smarter than I might have a more proper answer to this, but mine is, you should open a Defect report on this one, here:
    http://go.cpanel.net/bugs

    When you do, please feel free to link to this thread in that report you make.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. freemannn

    freemannn Member

    Joined:
    Dec 17, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Montreal, QC, Canada
    cPanel Access Level:
    Root Administrator
    I don't think so is a bug, that's why I don't know if I have to submit this like a bug. This is used in "WordPress Multisite". I have seen this on youtube.com (I don't want to put here the link because there is a name of a webhosting company there).

    Regards
     
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