Does "ipfs add file" makes the file public?

Hello World
After running “ipfs add file” and got the hash, is this mean that the file is accessible from anywhere ? or I need to
run “ipfs name publish hash” ?

(I am looking for a way to keep data private and give permission for read)

hi maroob

nope if you access another node see ipfs swarm peers command to check. So if you connect public peers you can see your doc on https://ipfs.io/ipfs/. ipfs name publish is used for ipns feature (check that on web)

Regards

1 Like

@josselinchevalay, can you rephrase what you just said?

nope if you access another node see ipfs swarm peers command to check

what does this mean? I can’t parse your sentence.

maroob,

IPFS is best for content you want public.

One solution is to encrypt contact you want private with GPG, but even then you run the risk someone scraping it off the network and brute forcing it.

1 Like

Actually, if I upload a file to IPFS is it possible for the file to be searchable in any way?

For ex (not that I would do this) if I uploaded a file called “passwords” and never shared the hash, would anyone be able to search all of IPFS for files called “passwords” and still find my file?