Marta,
Hair Algea is typically caused by excess nutrients. Most specifically, Nitrates and Phosphates and Silicates that come from the water used to top off the tank from evaporation. To prevent this from happening it is general practice to use RO/DI water to replenish the tank. If tap water is used then it is likely that hair algea will become problematic. Also, excess feeding can contribute. I would suggest feeding either 1 time/day for a fish only tank, or even only every other day only once if you have a reef tank. Also, make sure the tank is stocked with hermit crabs and snails. If the hair algea is really advanced, then generally you need to starve it of light for an extended period and/or remove by scaping and filtering through a canister filter. Unfortunately, this is a time consuming and tedious task. It is better to use RO/DI water and good lights after you get the problem under control. Also, if sunlight can shine on the tank, this will also contribute to the problem...Sincerely...Collin