In this rule

Historical Rules · 17 November 2023

Rule 802.4a

Official source text from the 17 November 2023 Rules release

Permalink

A defending player can block only with creatures they control. Those creatures can block only creatures attacking that player, a planeswalker that player controls, or a battle that player protects.

Find this number in the current Rules