Forum Moderators: Robert Charlton & goodroi
[edited by: aakk9999 at 3:37 pm (utc) on Sep 23, 2015]
[edit reason] Corrected spelling of exemple.com to be example.com [/edit]
Disallow: /?PageSpeed=noscriptshould work. I would check a few to be sure by using the tester here: [support.google.com...] or in your GSC (old GWT). The tool to add the URL Parameter as lucy24 suggested is in your GSC and it does answer the need to prevent crawling of those URLs in case the robots.txt doesn't work the way you want. Query parameters can be tricky in robots.txt - sometimes accidentally blocking unintended URLs, but easy to deal with using URL Parameters.
Disallow: /?PageSpeed=noscriptwill only disallow the home page with this parameter.
Disallow: /*?PageSpeed=noscriptor
Disallow: ?PageSpeed=noscript