They really can’t. They would need some kind of firewall to do it, and ISPs simply aren’t setup for that. They can’t even ban child porn sites effectively (instead the police must rely on catching viewers of such and shutting down sites physically if possible).
Indian government frequently does this, so technically it's possible even with multiple ISPs in a big country.