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.

Restrict Access to Addon Domains through the Main Domain

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

  1. kodyxgen

    kodyxgen Member

    Joined:
    Jul 9, 2013
    Messages:
    20
    Likes Received:
    1
    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!
     
  2. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    54
    Likes Received:
    6
    Trophy Points:
    8
    cPanel Access Level:
    Website Owner
    I guess that cannot be done though WHM , you will have to go with .htacess rules to restrict the access.
     
  3. kodyxgen

    kodyxgen Member

    Joined:
    Jul 9, 2013
    Messages:
    20
    Likes Received:
    1
    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 :)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,708
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page