Blocking an ASN (or similar)

How do I stop a chunk of artificial bad traffic to my sites