1) School 2) Work 3) Very small town
If you live in a major metro area, it's pretty easy to not see people, especially if you're actively wanting to avoid them.
5. Having mutual friends.
6. Having common interests (playing in sports leagues, charity/volunteer work, active in local politics)
My best friends are friends I made due to my software hobby when I was a child. Hard to find such group concentrated in my proximity at the time.
I still continue to talk and meet with them every once in a while even though we are continents apart.
Yes, online people can disappear, but I have online friends whom I've been talking to for the past 12 years (basically all the way back to when i returned to the social internet).
It's really all about trust and time, like any other friendship.