I told the person that who asked that question, that when Tom put the protection spell on Harry well that was a light spell. So when Dumbledore went to kill Harry and wasn't successful, he put a curse on the spell Tom used. The curse made Harry's scar hurt every time he was near Tom, thus causing all the light within the spell to be blocked. Does that answer the question?