First you must understand what the nusiance algae loves;
nitrates and
phosphates.
Next, you must eliminate or at least significantly reduce both.
Most tap water sources have a lot of nitrates and phosphates. So a water change using tap usually just adds 'fuel' for the algae.

Make sure you're using ro/di water for all water changes and the daily fresh water top offs (to replace evaporated water).
Flake/pellet foods are very high in phosphates so do not overfeed and soak them first in a glass of ro/di water and rinse before feeding.
Over stocking with too many fish, overfeeding, dirty filters, etc. will contribute to high nitrate levels. Using ro/di, make frequent water changes to keep the trAtes at 10ppm or less.
Get a phosphate and nitrate test kit and keep a close eye on your water's levels. Test both your tap and tank water to know what you're dealing with. Shoot for zero ppm phosphates and 10ppm or less of nitrates.
A few great ways to export po4 and nitrates:- Add phosban or rowaphos (red granular) phosphate absorbing media and keep replacing it as needed.
- Add macro algae such as chaetomorpha in a sump/refugium with a light. As it grows, it absorbs both nitrates and phosphates from the water.
- Purchase a quality skimmer. It will remove organics very effectively.
- Lots of water changes (using ro/di water).
- Add a clean up crew that specifically will eat the hair algae. There are some snails (turbo), hermits (scarlets), and nudibranches (sea hare) that love eating it!