top ways to prevent liver cancer

Drink alcohol in moderation, if at all. If you choose to drink alcohol, limit the amount you drink. For women, this means no more than one drink a day. For men, this means no more than two drinks a day.
Maintain a healthy weight. If your current weight is healthy, work to maintain it by choosing a healthy diet and exercising most days of the week. If you need to lose weight, reduce the number of calories you eat each day and increase the amount of exercise you do. Aim to lose weight slowly — 1 or 2 pounds (0.5 to 1 kilograms) each week.
Use caution with chemicals. Follow instructions on chemicals you use at home or at work.

Get vaccinated against hepatitis B

You can reduce your risk of hepatitis B by receiving the hepatitis B vaccine, which provides more than 90 percent protection for both adults and children. The vaccine can be given to almost anyone, including infants, older adults and those with compromised immune systems.

Take measures to prevent hepatitis C

No vaccine for hepatitis C exists, but you can reduce your risk of infection.

Know the health status of any sexual partner. Don't engage in unprotected sex unless you're certain your partner isn't infected with HBV, HCV or any other sexually transmitted infection. If you don't know the health status of your partner, use a condom every time you have sexual intercourse.
Don't use intravenous (IV) drugs, but if you do, use a clean needle. Reduce your risk of HCV by not injecting illegal drugs. But if that isn't an option for you, make sure any needle you use is sterile, and don't share it. Contaminated drug paraphernalia is a common cause of hepatitis C infection. Take advantage of needle-exchange programs in your community and consider seeking help for your drug use.
Seek safe, clean shops when getting a piercing or tattoo. Needles that may not be properly sterilized can spread the hepatitis C virus. Before getting a piercing or tattoo, check out the shops in your area and ask staff members about their safety practices. If employees at a shop refuse to answer your questions or don't take your questions seriously, take that as a sign that the facility isn't right for you.