It's really the same principle. For physical goods that are crossing borders, but are illegal in the destination country, their customs officials can seize the goods. For data packets on the internet, the destination country is free to block them if they find them objectionable.