Non scientific study in random order of things that seem to reduce harassment:

red white and blue anything, I have one red white and blue jersey (rails to trails) and it seems to help.

riding my mountain bike to work as opposed to road bike

I'm told that skorts help. I don't have any skorts