In this rule

Historical Rules · 2 February 2024

Rule 802.4a

Official source text from the 2 February 2024 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