Damaged hair

🐘
Anyone have tips to heal slightly damaged hair/split ends? I dyed my hair a lot a while ago and have stopped now, it has grown like 3 or 4 inches since then maybe. I also used to straighten it a lot. I got an inch of split ends cut off like 4 months ago but they have started coming back, I think from being out in the sun a lot? I heard your hair can get sunburnt. So any way 
 to repair split ends and anything like sunscreen I could put on my hair to protect it? Also I'm not an adult and I don't have a job yet so maybe things that aren't too expensive😅