Except as otherwise provided in this Section, no court or administrative or legislative body shall compel any person or domestic violence program to disclose the location of any domestic violence program or the identity of any domestic violence advocate or counselor in any civil or criminal case or proceeding or in any administrative or legislative proceeding. A court may compel disclosure of the location of a domestic violence program or the identity of a domestic violence advocate or counselor if the court finds, following a hearing, that there is clear and convincing evidence that failure to disclose would be likely to result in an imminent risk of serious bodily harm or death to a domestic violence victim or another person. If the court makes such a finding, then disclosure shall take place in camera, under a restrictive protective order that does not frustrate the purposes of compelling the disclosure, and the information disclosed shall not be made a part of the written record of the case.
750 ILCS 60/227.1