Transmission of hepatitis B can be prevented by not sharing needles, razors, nail clippers, toothbrushes and earrings or body rings. If you choose to get a tattoo or acupuncture, make sure sterile needles are used.