Coconut oil can effectively block 20% of the sun's damaging rays hence it can be used as a sunscreen but not in harsh or longer weather. Coconut oil can't provide you with all the sun protection you need.