Heres's the rule:
2.2 After a foul, play is restarted by a free kick or
a throw-in where the foul(s) occurred.
EXCEPTIONS
(i) In the case of fouls by a defending player
within the rectangles, the following shall
apply;
A penalty kick shall be awarded for an
Aggressive Foul within the large rectangle
or any foul within the small rectangle. The
penalty kick shall be taken from the
ground at the centre point of the 13m line.
A free kick from the centre of the 13m line
shall be awarded for a Technical Foul by a
defending player within the large rectangle
but outside the small rectangle.
2.2 After a foul, play is restarted by a free kick or
a throw-in where the foul(s) occurred.
EXCEPTIONS
(i) In the case of fouls by a defending player
within the rectangles, the following shall
apply;
A penalty kick shall be awarded for an
Aggressive Foul within the large rectangle
or any foul within the small rectangle. The
penalty kick shall be taken from the
ground at the centre point of the 13m line.
A free kick from the centre of the 13m line
shall be awarded for a Technical Foul by a
defending player within the large rectangle
but outside the small rectangle.