http://www.cafecounterintelligence.c...p?articleid=23
This security script (PHP), should prevent any connections to your pages from any programs. Also helps prevent flooding/DOS and other such things.
I'm sure that nothing is a perfect defence, but have a look at it, you may find it useful.