Toxic players

Is it possible to ban toxic players? I was playing game and got 2 toxic but playing players. They were just shit talking so we lost it. Is it possible to ban them or any way to add them to “blacklist”?