486.4. Order restricting publication — sexual offences
486.4 (1) Subject to subsection (2), the presiding judge or justice may make an order directing that any information that could identify the complainant or a witness shall not be published in any document or broadcast or transmitted in any way, in proceedings in respect of
(a) any of the following offences:
(i) an offence under section 151, 152, 153, 153.1, 155, 159, 160, 162, 163.1, 170, 171, 171.1, 172, 172.1, 172.2, 173, 210, 211, 212, 213, 271, 272, 273, 279.01, 279.011, 279.02, 279.03, 280, 281, 346 or 347,
(ii) an offence under section 144 (rape), 145 (attempt to commit rape), 149 (indecent assault on female), 156 (indecent assault on male) or 245 (common assault) or subsection 246(1) (assault with intent) of the Criminal Code, chapter C-34 of the Revised Statutes of Canada, 1970, as it read immediately before January 4, 1983, or
(iii) an offence under subsection 146(1) (sexual intercourse with a female under 14) or (2) (sexual intercourse with a female between 14 and 16) or section 151 (seduction of a female between 16 and 18), 153 (sexual intercourse with step-daughter), 155 (buggery or bestiality), 157 (gross indecency), 166 (parent or guardian procuring defilement) or 167 (householder permitting defilement) of the Criminal Code, chapter C-34 of the Revised Statutes of Canada, 1970, as it read immediately before January 1, 1988; or
(b) two or more offences being dealt with in the same proceeding, at least one of which is an offence referred to in any of subparagraphs (a)(i) to (iii).
Mandatory order on application
(2) In proceedings in respect of the offences referred to in paragraph (1)(a) or (b), the presiding judge or justice shall
(a) at the first reasonable opportunity, inform any witness under the age of eighteen years and the complainant of the right to make an application for the order; and
(b) on application made by the complainant, the prosecutor or any such witness, make the order.
(3) In proceedings in respect of an offence under section 163.1, a judge or justice shall make an order directing that any information that could identify a witness who is under the age of eighteen years, or any person who is the subject of a representation, written material or a recording that constitutes child pornography within the meaning of that section, shall not be published in any document or broadcast or transmitted in any way.
(4) An order made under this section does not apply in respect of the disclosure of information in the course of the administration of justice when it is not the purpose of the disclosure to make the information known in the community.