These laws protect journalists from being forced to reveal confidential sources or unpublished material.