Rule 6-27-c
Unless the puck is in the goal crease, a player of the attacking team may
not stand on the goal crease line or in the goal crease, or hold the stick
in the goal crease area or skate through the goal crease while the attack-ing
team has possession of the puck. If the puck should enter the goal
while such conditions prevail, a goal shall not be allowed.
A player of the attacking team may stand or stay in the crease when
the puck is in the crease or when the player has possession of the puck.
The provisions of this rule shall apply only while the goalkeeper is
inside the crease. If the goalkeeper is not in the crease, the rule becomes
inoperative.