Skip to main content

Deny access to all sites via IP address?

Comments

3 comments

  • cPanelLauren
    Hi @mickael Do the sites all have dedicated IP addresses? If so this is the default behavior. You might be able to implement a redirect like the one noted here: IP Address Redirect to URL when visited in browser Thanks!
    0
  • mickael
    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: ServerName 178.32.xx.xx DocumentRoot /usr/local/apache/htdocs ServerAdmin admin@website.com suPHP_UserGroup nobody nobody UserDir disabled Cldt
    0
  • webhostuk
    Just to add IP to Domain and domain to dedicated IP view is common and this should not affect SEO of your websites.
    0

Please sign in to leave a comment.