# 9. IPFS

### IPFS

* P2P data storage
* It takes Hash of data uploaded and use it as a link
* Our node pins the hash with the data
* All other nodes only have hash of the data, not the data itself
* Other nodes will have to pin our data in order to replicate the data

***

### Hosting Site on IPFS

#### Method 1 (Manual)

1. Download IPFS Desktop application to create your own node
2. Install IPFS Companion browser application
3. Upload **static website** files to our node and pin it

#### Method 2 (Automatic / [Fleek.co](https://fleek.co))

* We can use its service to auto deploy static websites
* It also helps other nodes to pin our files
  * Uses **filecoin blockchain** to pin our data on other nodes for persistence
* Also gives us http-url along with ipfs-hash

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.nomanaziz.me/development/blockchain/freecodecamp-course/9.-ipfs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
