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!

Stop Google from Indexing our server /~user

Discussion in 'General Discussion' started by Steini Petur, Oct 23, 2017.

  1. Steini Petur

    Steini Petur Active Member

    Joined:
    Apr 24, 2016
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Iceland
    cPanel Access Level:
    Root Administrator
    I am aware this How to stop google indexing of /~ is 1 year old, I still would like to understand, where did he place the robots.txt, did he put it in his /home/user/? or did he put it in the root directory for WHM/cPanel? It would help me a lot if I could leave the temporary URL possibility open yet block google from indexing our server because it was because of that we closed it, due to google finding malware in maybe 1 home user while other home user suffered as Google detected this as "1 website" and child directories.
     
  2. Steini Petur

    Steini Petur Active Member

    Joined:
    Apr 24, 2016
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Iceland
    cPanel Access Level:
    Root Administrator
    Nevermind, but it could come in handy for someone else so the file you are looking for is

    /usr/local/apache/conf/httpd.conf

    The entry you are looking for is

    <VirtualHost 82.221.129.19:80>
    ServerName 82.221.129.19
    ServerAlias <serverhostname>
    DocumentRoot /var/www/html
    .....

    You would most likely place the robots.txt with the disallow to prevent google from snooping in that folder, so the server.hostname/~user won't be searched allowing you to keep the Temporary URL open :)
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm glad to see you were able to find the answer to your question. Thank you for updating us with the outcome.
     
    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