Chancroid is a bacterial infection that is spread by sexual contact with an infected person. Avoiding all forms of sexual activity is the only absolute way to prevent a sexually transmitted disease.
However, safe sex behaviors may reduce your risk. The proper use of condoms, either the male or female type, greatly decreases the risk of catching a sexually transmitted disease. You need to wear the condom from the beginning to the end of each sexual activity
Limit the number of your sex partners.
Use a condom.
Carefully wash the genitals after sexual relations.
If you think you are infected, avoid any sexual contact and visit your local STD clinic, a hospital or your doctor. Notify all sexual contacts immediately so they can obtain examination and treatment.