The effectiveness of sunscreen is measured by its Sun Protection Factor (SPF). SPF indicates the level of protection against UVB rays, the primary cause of sunburn and skin cancer. An SPF 30, for instance, means you are protected from 97% of UVB rays. However, no sunscreen can block 100% of UV rays.