From what you have said, it seems you come from either a strict family background where talking to or looking at opposite sex is considered wrong or you have yourself inculcated these overvalued ideas in yourself. This has now become so much ingrained in your system that it is causing you both mental distress as well as practical problems in life.
These deep rooted beliefs for ex in your case it could be "if you look at a man that means you are a "loose" woman" etc etc ...(please understand I am only giving you examples)....these are called schemas in Cognitive behavioural therapy (CBT-a kind of talking therapy).
When you look at a man then there comes a negative thought into your mind like for ex (again I am guessing here) "See I am looking at him as I am lusting for him"....these are called negative automatic thoughts (NAT) in CBT jargon because of a kind of thinking error called "Thought Action Fusion" ie.e just by looking at him you are desiring him...ie. both thoughts and actions have fused.....in Indian philosophy it is called "trikarana" i.e three types of actions...mind, speech and behaviour. People aim for "trikarana sudhdhi" i.e purity in all the three modes. so even thinking about something becomes an action...a typical example of "thinking error" classified under "Thought action fusion" in western medicine. So, it all depends on your cultural upbringing as well and hence the therapist needs to be culturally sensitive.
All in all if it is significantly disturbing you, better see a psychotherapist or psychiatrist
if this can be helped or in the first place needs to be helped. Medication plays very little role in your kind of personality trait problems.
Hope this helps