Apple should fix this by creating a kid mode, where the user can only contact people approved by parents and visit sites approved by parents or conforming to kid safety requirements. In this case the children will be perfectly safe.
Why Apple doesn't do it? I guess because it is unprofitable, it requires major investments and doesn't promise any returns.
Kids must be banned from the Internet completely instead of trying to patch different issues here and there.