A hero is a Good Guy. They typically do Good Things for Good People in Good Ways, and are often the protagonists of the story.
They will not, for example, commit rape or inflict unnecessary violence. For a fanfic author to force any such character to do so is a charge unless sufficient explaination is given for this otherwise out of character behaviour.
Compare with villain.