You mentioned China. China did a little bit more than "keep them where they are".
Actually, I did not mention China—that was another poster—but, no matter, see my posts on US quarantines in 1918—you will get the idea....