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!

Prevent Unparked Domains Resolving on Dedicated IP

Discussion in 'Bind/DNS/Nameserver' started by Craig., Mar 7, 2018.

  1. Craig.

    Craig. Registered

    Joined:
    Mar 7, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    IOM
    cPanel Access Level:
    Root Administrator
    Hi

    I've seen a couple similar threads but couldn't find a solid resolution to what I'm experiencing

    If I set up an account in WHM "domain.com" and give it the dedicated IP "123.12.34.123"

    Then, I point an A record on "domain.com" to 123.12.34.123

    I can see the website content on example.com and on 123.12.34.123

    This is all fine and as expected, however...

    If I then register the domain "domain.com" and point an A record to 123.12.34.123

    I can then access the whole website from somethingelse.com

    How can I prevent an unrelated third party domain from resolving the website on a dedicated IP?

    I need the solution to be server wide, there must be a way to switch this behaviour off and only resolve domains that have been added in to cPanel/WHM

    Thanks
    Craig
     
    #1 Craig., Mar 7, 2018
    Last edited by a moderator: Mar 7, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi Craig,

    Here are a few third-party URLs you may find helpful:

    Block a random domain pointing at my dedicated IP
    How do I configure my Apache web server to respond only to requests made to it's domain name and not the IP address?
    How should I block unwanted domain names?

    Generally, the easiest approach to prevent this from happening is to setup a default VirtualHost entry for the dedicated IP address, but note this will prevent direct access to the website over the IP address.

    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