Blocking .php from google in robots.txt

Discussion in 'robots.txt' started by matthecool, Jun 4, 2012.

  1. #1
    Hi there,

    I have a number of URLS structured like this:
    /report.php

    but many in the directory like
    /report.php?example1
    /report.php?example2

    What is the correct format to use in robots.txt please?
     
    matthecool, Jun 4, 2012 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    This will block everything that starts with /report.php

    User-agent: *
    Disallow: /report.php
    Code (markup):
     
    digitalpoint, Jun 4, 2012 IP