There are several vaccines available, which you can use, to protect yourself from hepatitis A and B. You can also protect yourself and others from hepatitis A by washing your hands after using the toilet and before fixing or eating food.
You can protect yourself from hepatitis B by using a condom when you have sex, not sharing drug needles with anyone, and not sharing a toothbrush or razor with anyone who might be infected.
No vaccine exists for hepatitis C. You can protect yourself from hepatitis C by wearing gloves if you have to touch someone's blood, not sharing drug needles, and not sharing a toothbrush or razor with anyone who might be infected.
The answer is based on source information from the National Institute of Diabetes and Digestive and Kidney Diseases.