Unfortunately, there is not yet a vaccine to prevent HCV infection. However, you can take steps to avoid coming into contact with the virus.
Not injecting or stopping injection drug use would eliminate the chief route of HCV transmission. If you continue injecting drugs, then be sure to use new, sterile syringes every time you inject—you should never reuse or share syringes, needles, water or drug preparation equipment.
You should not share toothbrushes or razors with someone you know is infected with HCV. If you are considering a tattoo or body piercing, you should be sure that they are performed by reputable, licensed experts who follow strict hygiene procedures (e.g., sterile equipment).
While HCV transmission via sexual activity is not common, it is generally advised that barrier protection (e.g., condoms) be used to reduce the risk of transmitting HCV, along with HIV and other sexually transmitted infections.