All about others?

What is the best way to avoid basing decisions/Ideas or writing something (blogs. fb posts or questionnaires) based on what others will think about it? I don’t do it consciously but when I focus on the “why” I do or say something, it often times does go back to an opinion of others.