The quick way to prevent robots visiting your site is put these two lines into the /robots.txt file on your server:
User-agent: *
Disallow: /
but this only helps with well-behaved robots
Can I block just bad robots?
In theory yes, in practice, no. If the bad robot obeys /robots.txt, and you...