I found this really helpful. I asked for advice and Justin published this shortly afterwards! Banning Bots with nginx maps