I have been reading quite a few posts here dealing with ocd, as I myself happen to suffer from this ailment. It has been with me for well over half my life, though I have only recently been able to understand what this is in actuality. I have suffered from harm ocd, rocd, philosophical ocd, and the oh so horrible sexual orientation ocd. I hope this list will be as helpful to you as it is to me, as writing this to help others is actually a form of personal therapy.
1- Don't put a label on yourself
While I had many horrible obsessions in my life, hocd shook me up the worst. I thought that the basis of who I was was altered, and that I was being led down a course of life that was against my will. I wondered where these false attractions could of come from in the first place, and I started blaming myself. When I found out about OCD, I was empowered, and my symptoms vanished for a whole 2 days. My mistake actually was reading about people who had "hocd", and applying their experiences to myself. I began thinking about myself in terms of hocd, not that I merely had a chemical imbalance in the brain. The label hocd became a crutch, and severely hindered me in my recovery. I started to get better when I realized to myself that I did not have "hocd", I merely had OCD. "Hocd" was a mere manifestation of many OCD variants that I had for more than half my life. In short, realizing I had a chemical imbalance in the brain that had nothing to do with my true personality gave me the power to fight this demon. Telling myself that I had homosexual ocd just made things more confusing. Stop focusing on the sexual aspect of this sickness. Simply look at these thoughts with the cold eye of a practitioner, and identity them as the ocd, not yourself. Also, if hocd is your first ocd variant, don't be discouraged. People are all different, and get ocd symptoms of varying natures at varying times in their lives. Also, this advice goes for any ocd, including pedophile ocd, or harm, or philosophical etc..
2- Realize these are irrational thoughts
Realize the origins of the thoughts, and that this obsessive worry is a irrational thing. My "hocd" thoughts emerged after I saw a picture of one of my fellow straight male friends dressing in a feminine manner, and saw certain other things around me that disturbed me. They also came right after I started to deal with my philosophical obsessions, and regain my freedom. Most of you guys with "hocd, or any ocd, are exactly the same. You were watching a online video, or heard a coming out story, or were high on pot and brushed your leg against another guy, or heard a story about a viscous murder, and let fear take control of you. The fact that a situation caused a certain thought in your mind does not suddenly make you gay or a murderer. Your brain might try to convince you of this, but it is not the case.
3-Dont give into compulsions
While at first it feels good to "prove" to yourself you are not gay, it gets worse. The thoughts demand more attention because they don't want to go away that easily, and as they become more intense, you will get more confused. In the end, the compulsions become relentless. You are forced to check out every guy or girl on the street, you are forced to list the reasons you are straight etc.. In the end, you will not be satisfied. If you dont give in, they will fly over you and will not harm you.
4-They feel real? So what!
When I suffered from harm ocd, I felt that it would be so easy to pick up a knife and stab someone to death. I hated it, but it felt real. When I suffered from philosophical ocd, I honestly felt that the world was a pointless computer simulation or dream. I hated and did not believe the feeling, but boy, it felt so real. And with sexual orientation ocd, my mind always told me that I thought that guy was attractive and I did not like girls anymore, and that I liked the sexual images in my head. I hated them, but I could not convince myself that I hated them because they felt so darn real. But it means nothing about sexuality.
5- Don't look into sexual reactions
Sexual reactions do not mean that you like a certain action. Nor does it mean that you are really turned on. There have been times when bad sexual thought have come into my mind, and I have had groinal responses and even a psychological rush. I have even had thoughts that the strange fantasy was not all that bad, even though I was full of anxiety and on a deep physical and spiritual level repulsed. If you are thinking about a sexual act, your brain will obviously go into sex mode, and if you are focusing on certain particular features or details (which is an ocd thing) then of course, after a while, you might have some kind of a response for these things. You have concentrated on them so much, that the mind deems them worthy of attention, and when you are stressed out, you don't know what is you or not you. It does not mean you are gay at all. In reality, 90% of these reactions are caused by anxiety, and the other 10% is because you have been concentrating so much on sex that your trapped thinking in a sexual way. Those feelings of "pleasure" are not real longings. They are a mix of anxiety and over sensitivity. I have at times completely been free of symptoms after ignoring the "reality" of the sensations. After a few days, you realize how stupid they were and you are back to normal.
6-Think of Beauty
The beauty of romance, love, children, family, and old age with the person you love now. We live in an over sexual society, that tells us that sex is whatever we want to make it to be, and that sex is the center of a relationship. I believe that when a man thinks about a woman as a mere sexual object, or a woman looks at a man that way, a certain moral compromise is made in the individual. When the grit and grind and lust of sex takes precedent, it looses it true pleasurable and mystical value. Porn does not help, and I believe that is one reason why so many people with hocd are having a horrible time. Porn involves two people using each other as masturbation devices in order to get money. For all with HOCD, and for people in general, AVOID PORN. True, healthy sex between a man and a woman is first grounded in love and responsibility, and a commitment to devote themselves to the other. It is not a casual fling. And when sex becomes a mere activity to satisfy certain sensations, who knows where it can take a person. When fighting against ocd, think of love in a pure sense. Men, think of the true beauty of a woman, think of her caring nature, the beauty of her hair, the wonderful thing that happens to you when she smiles after you say something funny. Women, think of a man that is responsible, that will respect your value and worth, and that will support you. Think of all things beautiful. Sex is a part of it, yes. But when you become a slave to sex, you are not that much higher than an animal. And I am not speaking from a pulpit, this is my personal experience with myself.
7-Live by Values, Dreams and Morals, not feelings
Live by a moral code, not a selfish yearning to want to lust and play around the way you used to when this ocd is all over. Live by something higher than yourself and your base drives, and you will see that everything falls into place. I know most people here are probably not religious, but as a Christian, I can personally testify that God is my main source of help in all of this. Even in my youth, Christ was the one that helped me through my struggles in such beautiful and inexplicable ways. I am not preaching, but I am leaving this door open to you anyway. I would feel fake and insincere if I did not do so. Look above your struggles and thoughts, and im telling you, you will see a difference.
I have the same struggles you do, and I have failed many times.But you have to keep fighting. These things have also helped me greatly, and have given me moments of victory. God bless, and peace to all:)