Social media platforms

Would you be in favour or against banning access to social media platforms that are found to have broken the law by circulating illegal images?