To block another computer's internet access, change its network settings or use firewall rules.
To block another computer's internet access, change its network settings or use firewall rules.
You can turn off Wi-Fi when needed, but with a LAN cable you won’t be able to disable internet access. There isn’t a direct method to block the connection in both cases.
Some routers offer this feature, usually via parental controls. Prior to that, I used my son’s computer connected to a router that had its power controlled through a smart switch, which was turned off during certain hours—effectively blocking internet access after bedtime.