To block IP addresses in the context of Entra ID MFA, you would use Conditional Access policies in Microsoft Entra ID.
For details, refer to https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-block-by-location
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin