If you want to block someone on YouTube, navigate to their channel, click on the About tab, select the flag icon, click on Block user, and then confirm your action. Additionally, if you wish to block a user from a comment section, click on the three dots next to their comment, and then click on Hide user from the channel, which is a way of preventing them from commenting on your videos.