How to block internet access after bedtime?

This is one of my biggest fears! I’m so worried about them staying up all night on their devices or talking to strangers when we’re asleep. Are these blockers really foolproof? My kids are so clever with technology, I’m terrified they’d find a way around it. Following this thread closely