You can block a user on YouTube by navigating to their channel page, clicking on the About tab, selecting the flag icon, and then choosing Block user. Alternatively, if it is a comment, you can click on the three dots next to the comment and select Hide user from channel, which will prevent them from commenting on your videos.