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!

Restrict Access to Addon Domains through the Main Domain

Discussion in 'General Discussion' started by kodyxgen, May 18, 2016.

  1. kodyxgen

    kodyxgen Active Member

    Joined:
    Jul 9, 2013
    Messages:
    27
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hello,

    is there a way to restrict access to addonDomain through the main domain?
    Can i do somthing on WHM level so this change affects all my cPanel client accounts?


    Thank you!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    140
    Likes Received:
    14
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Website Owner
    Twitter:
    I guess that cannot be done though WHM , you will have to go with .htacess rules to restrict the access.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kodyxgen

    kodyxgen Active Member

    Joined:
    Jul 9, 2013
    Messages:
    27
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hi,
    Thank you for your replay, i know that i can redirect addon-domain.main-domain.com to addon-domain.com from .htaccess
    but i was thingking that someone know a better way than go in every account and every addon domain and put this in the htaccess file :(
    There must be a better way for this :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you provide a specific example of how you want to restrict access? Or, are you asking if .htaccess rules within the public_html directory apply to your addon domain names, located inside or outside of the public_html directory?

    Thank you.
     
    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