Healthy animals are more resilient to pests. Feed them a balanced diet appropriate for their stage of life. Work with a nutritionist if needed, especially if you're growing your own feed.
Install walk-through fly traps in high-traffic areas like water stations. Cattle often seek them out for relief. Brushes and grooming stations also help remove manure and mud from animals’ coats.