I have the URL http://www.example.com/shopping/books/?b=9and the following robots.txt file:User-agent: *Disallow: /?b=9But when I test this in Google Webmaster Tool's robots.txt tester it is showing allowed when it should be disallowed.Whilst /?b=9 is fixed, /shopping/books will change with different categories and I need to block them all.Please tell me what's wrong with my robots.txt.
How do I disallow a specific query string in robots.txt?
robots.txt;query string