Need Rules to Block Host


I have been receiving referrals traffic from 3 websites and that flood apache with errors and cause server to slow down. I want a rules where i can add host to block request from them. I searched online many people are facing problem with and the apache gets flooded.

More information here: