Hmm bots have no effect whatsoever on resource usage on our sites so that is odd that they would be causing any significant resource usage on your site/server. Are you sure that bots are causing the high resource usage issue and not something else? Since you probably want to allow any/all visitors to your website then only allowing literally google.com, etc. would block any/all visitors to your website besides just literally google.com, etc. I think you need to figure out exactly what is causing high resource usage first before doing anything else.
Since you have a VPS, Dedicated or you own in-house server then try doing Google searches using search terms like this: how to reduce server resource usage, how to reduce server memory usage, etc.