49 states plus the District of Columbia have some form of shield law giving journalists a degree of confidentiality similar to that which prevents priests, attorneys, and therapists from testifying in court. But the law has failed to gain traction at the federal level, partially due to indifference outside the media industry, and partially due to concerns that the law would hinder criminal and national security investigations.
Read more here.