How can I stop looking at women's bodies?

I'm 29 years old and I don't have a girlfriend, I've never had a girlfriend in my life. It's difficult for me to stop looking at women's bodies, I feel an urge (if you will) to do it. The problem is that looking at women reminds me of my singleness and loneliness and it hurts, so in order to at least reduce the pain (I know not looking at other women won't stop the pain) I need advice, techniques, etc. to stop looking at women. Please, help.

How can I stop looking at women's bodies?
Post Opinion