Ofcom has warned social media sites they could be named and shamed – and banned for under-18s – if they fail to comply with new online safety rules. The media regulator has published draft codes of practice which require tech firms to have more robust age-checking measures, and to reformulate their algorithms to steer children away from what it called “toxic” material.