Internet censorship is the control or suppression of what can be accessed, published, or viewed on the Internet.
I believe in a free and open internet and to help keep it that we're going to learn how to deploy a censorship resistant static website in just a few minutes with a few free tools.
To achieve censorship resistance we're going to use IPFS (Interplanetary File System) a distributed system for storing and accessing files, websites, and data.
You can run your own IPFS node to increase the strength of the network and store your own files but for this tutorial we're going to use a free service to manage our content and more importantly manage our pinned content.
IPFS nodes treat the data they store like a cache, meaning that there is no guarantee that the data will continue to be stored. Pinning tells an IPFS server that the data is important and mustn’t be thrown away.
I'm a fan of using https://pinata.cloud, once you've made an account, select upload and you'll be presented with something like below.
Notice "Upload Directory" is selected and "Preserve directory name" is not checked. Select the directory of your site contents and upload them. Once uploaded, select "Pin Explorer" from the nav menu.
Using the hash provided by IPFS, we now have the address of our deployed directory. In the case of the screenshot above my content is stored at hash
QmdFWa8PEruGXistCu8MFRwb2bncH2xAYx34nYqEBaxaVk. Using a public IPFS gateway we can see the content at the hash address. Here is a list of public gateways and their status'.
It may take a few minutes for the data to propagate through the network but you now have a censorship resistant website!
Enjoyed the post? Let me know! 💛🦄🔖