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.

How to block domain which is pointed to my server ip... and are not mine

Discussion in 'General Discussion' started by amoloo7, Jul 20, 2014.

  1. amoloo7

    amoloo7 Member

    Joined:
    Jan 17, 2013
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Hello
    I have a server and some one has pointed his site to my server ip... and if that ip is share it will show default cpanel page on that pointed domain if that ip is dedicated to only one user it will show my client site data on that pointed domain .... Is there any way to stop this or block domains which has nothing to do with my server.... ???

    Like we can block ip from CSF is there something we can do to block site which are pointed to my server ip and are not myne...
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    This isn't something blockable by CSF/etc. Just let Apache do its job - change the default page to something else so any site that is not configured on your server but is pointed to it will show whatever you want. This is an excellent time to learn about Internet porn.
     
    Infopro likes this.
  3. amoloo7

    amoloo7 Member

    Joined:
    Jan 17, 2013
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    If ip is shared then i have no problem because it will show default page if ip is dedicated to one user then default page will not show it will start showing client site on that ip.... and if any one point his site to that dedicated ip it will start showing my client site on pointed domain... There must be some way to keep default page of cpanel even if the ip is dedicated to only one user...
     
  4. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    You just need to create a default vhost for each dedicated IP on your server, so any request for a site that isn't configured will return something else.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, by default a dedicated IP address will display the default contents of the account assigned that IP. You can customize the Apache configuration file by adding a default VirtualHost with the standard document root as the first VirtualHost for that IP if you want to see the default cPanel page for that IP.

    Thank you.
     
Loading...

Share This Page