There is
Create a file in your main directory (usually htdocs) called robots.txt
In it, place this text...
This will stop 99.9% of robots. The only ones it doesn't stop are the ones that don't follow the robots exclusion protocol.
(The
naughty bots.)