I mean it's not the only way, hence why corporate networks need authentication at the network phy level, and home networks should have IOT separated from the computers and connection access to your router blocked.