Government could probably just block any DNS requests that want to resolve the ipfs.io domain. Though Spain probably does not have the censorship infrastructure deployed for that the way a country like China has.
For reference it's 147.135.130.181. Or if you want to go to the Catalan referendum page, it's http://147.135.130.181/ipns/QmZxWEBJBVkGDGaKdYPQUXX4KC5TCWbv.... Unfortunately SSL doesn't work, as the certificate is only valid on ipfs.io.
Mac/Homebrew users: brew cask install dnscrypt
Windows/Chocolatey users: choco install simplednscrypt (or alternative see [3])
Linux: should be in your package manager. Generally, searching for dnscrypt should yield some useful software. It isn't difficult to set up via command line IMO. There's probably howto's to be found via search engine as well.
[1] https://en.wikipedia.org/wiki/DNSCrypt