# File rehosting in Private Networks

**URL:** <https://discuss.ipfs.tech/t/file-rehosting-in-private-networks/7231>\
**Category:** Help\
**Tags:** go-ipfs, files\
**Created:** [February 10, 2020, 12:55am UTC](https://discuss.ipfs.tech/t/file-rehosting-in-private-networks/7231 "2020-02-10T00:55:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zacharywhitley](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/zacharywhitley/32/2670_2.png) [@zacharywhitley](https://discuss.ipfs.tech/u/zacharywhitley)\
**Post date:** [February 10, 2020, 5:40pm UTC](https://discuss.ipfs.tech/t/file-rehosting-in-private-networks/7231/2 "2020-02-10T17:40:24Z")

</div>

> [@thtguy](#):
>
> I understand that in Public IPFS Somebody can rehost it(although I’m not sure how)

Any node can “rehost” the content by simply requesting the content. It would be permanently “rehosted” if that content was also pinned.

> [@thtguy](#):
>
> then at best you can remove the file locally by unpinning it and clearing the gc but somebody can still rehost it on the network.

That’s correct but it’s really isn’t specific to IPFS. If you host some content on a web site and I download it there is nothing you can do about preventing me, short of legal action, to prevent me from making that available on my own web server. IPFS just makes the process automatic.

> [@thtguy](#):
>
> I’m curious as to how this scenario will pan out for Private network.  
> If we take 4 nodes A B C D and say A uploads a file onto the private network. Then removes it locally.
> 
> Where will the file be rehosted?

That probably depends on what you mean by “uploads a file onto the private network” and “removes it locally”. If you add the content to node A, no other node requests the content, and you remove the content then it’s gone. If any other node requested the content before removing it from node A then it will still be at that node and accessible to any other node on the network.

If your private network were a cluster the cluster manager would coordinate unpinning across the cluster.

I’m not quite sure, so someone would have to confirm, if unpinning it and running gc would _guarantee_ that the content was removed from the local node.

Hopefully I got that right and it helps.

You might want to look at this thread [How can I be certain that my IPFS node is not hosting content X short of `rm -rf ~/.ipfs`?](https://discuss.ipfs.tech/t/how-can-i-be-certain-that-my-ipfs-node-is-not-hosting-content-x-short-of-rm-rf-ipfs/7218)

In addition to the gc you’d also have to make sure it’s not on the MFS

---

_[View the full topic](https://discuss.ipfs.tech/t/file-rehosting-in-private-networks/7231)._
