Block a URL using Robots.txt

Discussion in 'robots.txt' started by viveknathr, Mar 24, 2013.

  1. #1
    Recently I moved to new host and I got a temporary URL for testing purpose. I did a search with my site name, google is showing both the temp url and original url. I want to remove the temp url completely. How I remove that url completely from google? Whats the exact code should I add in Robots.txt?
    This is the url I want to block http://digitaladvices.com.cp-21.webhostbox.net/
     
    viveknathr, Mar 24, 2013 IP
  2. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #2
    user-agent: *
    disallow: http://digitaladvices.com.cp-21.webhostbox.net/
    
    Code (markup):
     
    indyonline, Mar 24, 2013 IP
  3. viveknathr

    viveknathr Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #3
    Okay thanks for the reply. Will this code solve my problem?
     
    viveknathr, Mar 24, 2013 IP
  4. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #4
    it will block that URL. You could also remove the URL in Google webmaster tools.
     
    indyonline, Mar 24, 2013 IP