It's advisable to rinse your hair with fresh water immediately after swimming and use a mild shampoo to wash your hair after every few swims. Avoid over-washing as it can strip natural oils.