You’re thinking of a blacklist: “block NONE except [list]”. I’m speaking of a whitelist: “block ALL except [list]”.
Making a list of IPs registered with, and allowed by the government, is quite easy. China, Russia, Iran, etc. have been making those lists for years at this point.