Robots .txt question

Hi there,

I have installed an affiliate scheme recently but now the search engines are indexing pages with my affiliate id’s like mydomain.com?affid=otherdomain

Can I block just this type of url using robots.txt?

Thanks if anyone can help.

robots.txt files are discussed in the Sticky threads, and have been, and are being, discussed on other threads.

Please Search using the vBulletin Advanced Search and SitePoint’s [URL=“http://search.sitepoint.com/”]Advanced Search