I will like to host OwnCloud on my own machine, and access it via localhost (I don't know yet if this is possible, but if it's not, then the question remains valid, this is just to give you a better idea of the situation), however, I'm not completely sure that I'll be the only one being able to access it.
From looking at other similar questions, for example here ("How can I access my localhost server from other computers?"), I found that there is some configuration you have to do first if you want others to be able to access your localhost, and they even have to be in the same network.
However, in this other question ("How can I access my localhost from my Android device?"), I find that you can do it easily without any configuration.
Then the problem is, how to make sure no one, except my machine, can access the localhost?