This is what China did during the SARS outbreak. Not only were people not allowed to move around in the country, but entire hospitals were quarantined so that people who got SARS would be sent there to die. My father was stuck in China during the entire SARS crisis in a small village and he was forbidden to leave. I called him several times during this period so it was eyeopening.