renee has good advice above.
I follow that closely when in any developing country, even (to varying degrees) in some parts of Europe (typically around the southern/eastern edges).
Boil it, peel it, or forget it. And sadly, no street foot. Water only from a bottle you unseal yourself or see unsealed in front of you. Tooth brushing and toothbrush rinsing, only from bottled water.
On my first trip to Morocco, I was sticking tightly to the mantra above. After a few weeks on the road, I was really craving a salad. Nothing fancy, just something with crisp, fresh greens, tomatoes, mixed veggies. In a nice-looking tourist restaurant (more upscale than I was typically eating in), I broke down and ordered one. It was delicious, satisfying, but I knew it was risky. Hours later, it hit me and I spent much of the next 24 hours in the bathroom of my flat. I felt better after a couple days but it reinforced my need to remain vigilant and steadfast.
Don't forget time in the shower: mouth closed, negative air pressure if mouth and nose are not fully closed, no drops allowed in either. Note: It's hard to break some deeply ingrained bathroom habits from home which routinely allow tapwater into your mouth/nose, so stay alert and remember all it takes is a single drop of bad water.
The price we pay for visiting exotic locations.