0

I'm looking to ignore all URLs from bingbot that contain a query string variable at1= but i'm not clear on the pattern that should be used.

Should one of these work?

User-agent: bingbot
Disallow: /*at1=
Disallow: *at1=*

To confirm, I could have a URL like this:

/some-page?at1=4&ca1=5&op1=8

I still want /some-page to get visited but not when the URL listed has a query string parameters

EDIT

A poster has actually suggested a PHP solution that might make sense in terms of fine grained targeting but i'm not sure what the correct HTTP Status code would be to send to tell the spider it's not welcome. Any ideas?

robjmills
  • 18,438
  • 15
  • 77
  • 121

1 Answers1

1
if ( strstr($_SERVER['HTTP_USER_AGENT'], "www.bing.com/bingbot.htm") and isset($_GET['at1']) ) :
        @header("HTTP/1.0 480 Temporarily Unavailable");
        die;
endif;
user956584
  • 5,316
  • 3
  • 40
  • 50