In addition to not engaging with anyone trolling or flaming online, you can also take measures to report inappropriate or obscene messages. Most platforms (like Instagram, shown) allow you to report or block users—an unfortunate but necessary function.
www.instagram.com