I don't see how you can ban accusations, but you can ban consideration of those accusations as part of judicial thinking in child custody, and I would say, yes, this should not be permitted as part of the evidence in court or part of the judge's rationale for making a decision.
On October 23rd, 2024. See this statement in context.