depending on what bots they are, you might try using javascript to open the link instead of using the href.
most 'stupid' bots don't support javascript
but others use real browsers and will support javascript and i can't think of a method on the top of my head to block those
and ofcourse, use robots.txt for spiders etc