How can i block 1000 links by short codes in robots.txt?

Discussion in 'Google' started by nikipink, Feb 28, 2014.

  1. #1
    Hi dear Friends

    My website have more than 1000 bad links. How can i block them in robots.txt
    i have 2 Type links:

    http://MYDOMAIN.com/all?order=title&ord_t=asc
    http://MYDOMAIN.com/all?order=cat&ord_t=asc
    http://MYDOMAIN.com/all?order=loc&ord_t=asc
    http://MYDOMAIN.com/all?order=price&ord_t=asc
    -
    http://MYDOMAIN.com/all?uid=1003
    -
    http://MYDOMAIN.com/all?se=1&se_regs[0]=72
    http://MYDOMAIN.com/all?se=1&se_regs[0]=73
    http://MYDOMAIN.com/all?se=1&se_regs[0]=74
    http://MYDOMAIN.com/all?se=1&se_regs[0]=75
    
    -----------------
    
    http://MYDOMAIN.com/15?order=title&ord_t=asc
    http://MYDOMAIN.com/15?order=cat&ord_t=asc
    http://MYDOMAIN.com/15?order=loc&ord_t=asc
    http://MYDOMAIN.com/15?order=price&ord_t=asc
    -
    http://MYDOMAIN.com/16?order=title&ord_t=asc
    http://MYDOMAIN.com/16?order=cat&ord_t=asc
    http://MYDOMAIN.com/16?order=loc&ord_t=asc
    http://MYDOMAIN.com/16?order=price&ord_t=asc
    Code (markup):

    This code is true or false?

    Disallow: /all*/
    Disallow: /15*/
    Disallow: /16*/
    Code (markup):

    Thanks a lot ♥
     
    nikipink, Feb 28, 2014 IP
  2. HassanKhalid

    HassanKhalid Active Member

    Messages:
    158
    Likes Received:
    6
    Best Answers:
    4
    Trophy Points:
    90
    #2
    Disallow: *.pdf$
    Code (markup):
    The sample code blocks crawlers from accessing all URLs containing the file type “*.pdf”. By comparison, omitting the $ wildcard would block any file paths containing the string “.pdf”, such as /docs.pdf/newcars.htm.
     
    HassanKhalid, Feb 28, 2014 IP
  3. nikipink

    nikipink Well-Known Member

    Messages:
    873
    Likes Received:
    16
    Best Answers:
    1
    Trophy Points:
    130
    #3
    thanks
    so this code:
    Disallow: /all*/
    Code (markup):
    can block this links?
    http://MYDOMAIN.com/all?order=title&ord_t=asc
    http://MYDOMAIN.com/all?order=cat&ord_t=asc
    http://MYDOMAIN.com/all?order=loc&ord_t=asc
    http://MYDOMAIN.com/all?order=price&ord_t=asc
    -
    http://MYDOMAIN.com/all?uid=1003
    -
    http://MYDOMAIN.com/all?se=1&se_regs[0]=72
    http://MYDOMAIN.com/all?se=1&se_regs[0]=73
    http://MYDOMAIN.com/all?se=1&se_regs[0]=74
    http://MYDOMAIN.com/all?se=1&se_regs[0]=75
    Code (markup):
     
    nikipink, Feb 28, 2014 IP
  4. HassanKhalid

    HassanKhalid Active Member

    Messages:
    158
    Likes Received:
    6
    Best Answers:
    4
    Trophy Points:
    90
    #4
    Disallow: /all.*
    Code (markup):
     
    Last edited: Mar 1, 2014
    HassanKhalid, Feb 28, 2014 IP