If a url link adds this for a single page view and blocking those from search engines

Hi folks,

Using pagination on posts and pages, we have a link that appends this /?singlepage=1
(the "?singlepage=1" part after the / ). How can we block thos links from search engines from craweling? We only want the /?singlepage=1 blocked and not the other pagination version of the entire page and post (ONLY when the single page view above is clicked).