Do you propose to only let people from a whitelist of countries use internet? Because many countries would have no qualms giving their troll farms bunch of fake electronic ids.
It wouldn't be the internet as a whole, and instead be done at the individual service level (potentially with big plateforms being regulated in what they accept)
And indeed, it is to be expected that some countries be banned from most of the internet, or at least get a read-only version of it, because their digital credentials aren't deemed trustworthy enough. Not unlike how the travel visa system works nowadays.