Blocking a user from your personal account - GitHub Docs (original) (raw)

You can block a user to deny them access to your activity and repositories, and to prevent them from sending you notifications.

About blocking users

You can block a user in your account settings or from the user's profile. GitHub will not notify the user when you block them. If you want to avoid contributing to the same project as someone you've blocked, you can choose to display a warning on any repositories with prior contributions from a blocked user. For more information, see Blocking a user in your account settings. You may still see the activity of blocked users in shared spaces and blocked users can delete their existing content.

Tip

If you're blocking a user because of a heated conversation, consider locking the conversation so only collaborators can comment. For more information, see Locking conversations.

When you block a user:

After you've blocked a user, they cannot:

In repositories you own, blocked users also cannot:

Blocking a user in your account settings

  1. In the upper-right corner of any page on GitHub, click your profile photo, then click Settings.
  2. In the "Access" section of the sidebar, select Moderation then click Blocked users.
  3. Under "Block a user", type the username of the user you'd like to block, then click Block user.
  4. Optionally, to add a note to describe why a user was blocked, click Add Note. The note will only be visible to you.
  5. Optionally, you can display a warning when you visit a repository where a blocked user is a contributor. Under "Blocked users", select Warn me when a blocked user is a prior contributor to a repository.

Blocking a user from their profile page

  1. Visit the user's profile page.
  2. In the left sidebar, below the user's profile information, click Block or Report.
    Screenshot of the sidebar of a user's profile page. A link, labeled "Block or report", is outlined in dark orange.
  3. Optionally, add a note to describe why a user was blocked. The note will only be visible to you.
  4. Click Block user.

Further reading