Nearly half the traffic on the internet is generated by automated entities called bots, and a large portion of them pose threats to consumers and businesses on the web.