Easiest way to do this: Turn the modem off after bed time (you will also lose internet)
Most expensive but still easy way to do this: Buy a “smart router” with time-based parental controls (lets you use the internet at night).
Nerd way to do this: Pihole with a script that enables and disables certain blocklists at certain times (free and open source, because fuck “smart” products)
Easiest way to do this: Turn the modem off after bed time (you will also lose internet)
Most expensive but still easy way to do this: Buy a “smart router” with time-based parental controls (lets you use the internet at night).
Nerd way to do this: Pihole with a script that enables and disables certain blocklists at certain times (free and open source, because fuck “smart” products)