# User generated private IPFS that connects to a Public IPFS network under certain conditions

**URL:** <https://discuss.ipfs.tech/t/user-generated-private-ipfs-that-connects-to-a-public-ipfs-network-under-certain-conditions/10177>\
**Category:** Help\
**Tags:** js-ipfs, ipfs-cluster, privacy\
**Created:** [February 9, 2021, 9:29pm UTC](https://discuss.ipfs.tech/t/user-generated-private-ipfs-that-connects-to-a-public-ipfs-network-under-certain-conditions/10177 "2021-02-09T21:29:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CTMayweather](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ctmayweather/32/2946_2.png) [@CTMayweather](https://discuss.ipfs.tech/u/CTMayweather)\
**Post date:** [February 9, 2021, 9:29pm UTC](https://discuss.ipfs.tech/t/user-generated-private-ipfs-that-connects-to-a-public-ipfs-network-under-certain-conditions/10177/1 "2021-02-09T21:29:00Z")

</div>

Is there a guide to build an application that let’s a user generate a private IPFS that only the user can access. However this private IPFS network can be accessed from a public IPFS network under ceratin conditions? The conditions are that the user and the smart contract generated by the user are the only entities that can access the files on the private IPFS network?

---

<div class="post-metadata">

**Author:** ![ipfsme](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ipfsme/32/3907_2.png) [@ipfsme](https://discuss.ipfs.tech/u/ipfsme)\
**Post date:** [February 9, 2021, 9:54pm UTC](https://discuss.ipfs.tech/t/user-generated-private-ipfs-that-connects-to-a-public-ipfs-network-under-certain-conditions/10177/2 "2021-02-09T21:54:56Z")

</div>

> [@CTMayweather](#):
>
> The conditions are that the user and the smart contract generated by the user are the only entities that can access the files on the private IPFS network?

Probably the easiest way to do that would be a Web3 injection authentication system allowing access to a web server proxy-ed IPFS node running in private network configuration…

- Web 3 Injection Authentication… [Randomly found example - unchecked for accuracy](https://www.toptal.com/ethereum/one-click-login-flows-a-metamask-tutorial)
- IPFS Private network - [IPFS experimental documentation](https://github.com/ipfs/go-ipfs/blob/v0.7.0/docs/experimental-features.md#private-networks)
