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!

Deny access to all sites via IP address?

Discussion in 'Security' started by mickael, Mar 6, 2019.

  1. mickael

    mickael Member

    Joined:
    Aug 3, 2014
    Messages:
    13
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hi,

    Around January, 15 I took a new dedicated server with cpanel and whm but I just noticed that all of my sites can connect to https://domain (it's normal) and also https://ip (it's not normal).

    How to deny access to all sites via ip (https://[ip])? because it creates duplicates contents for SEO.

    The server has about thirty ip about.
    The main ip of the server is not affected

    Thank
     
    #1 mickael, Mar 6, 2019
    Last edited: Mar 6, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,468
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mickael

    mickael Member

    Joined:
    Aug 3, 2014
    Messages:
    13
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Yes each site to a dedicated IP. There would not be another solution instead of redirection 301 for example to have them redirected to a "Forbidden" folder or to /cgi-sys/defaultwebpage.cgi ?

    Like on CentOS 6 before with something like that in pre_virtualhost_global.conf:

    <VirtualHost 178.32.xx.xx:80>
    ServerName 178.32.xx.xx
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin [email protected]
    <IfModule mod_suphp.c>
    suPHP_UserGroup nobody nobody
    </IfModule>
    UserDir disabled
    </VirtualHost>

    Cldt
     
  4. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    149
    Likes Received:
    15
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Website Owner
    Twitter:
    Just to add IP to Domain and domain to dedicated IP view is common and this should not affect SEO of your websites.
     
    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