Ongoing complaints about misinformation and hate speech on the internet are forcing social-media companies to confront whether they need to take more responsibility for the content on their sites.

Twitter Inc. on Tuesday said it would let users block notifications of tweets that include specific words, among other moves, in an effort to combat harassment on the short-messaging service.

On...