Regulating online platforms to combat hate speech