Great idea in theory but in practice it would be trivial to bypass. You’d just need one cheeky proxy to MITM the connection and you end up in a worse situation than you started (from a security standpoint).
Rather than limiting access, what we really should be doing is limiting the negative harm that social networks can cause. For example YouTube Kids is a vast improvement over regular YouTube with regards to younger audiences.