>>12429221a virus inserts its dna int your cells dna, and these cells basicly produice viruses to the point of eating themselfes. stopping that is basicly impossible. there is research being don in functional proteins to bind to the protein on the virus that attatches to the cell, allowing it to insert its dna. stopping that would prevent the virus from spreding insid your body, ending the infection quickly. but we arent there yet.
what vacines do is get your immune system to recognise and quickly kill the viruse. they do so by introuicing either dead versions of the virus, or just the proteins that are on the virus that your immune cells can recognise. (this is a bit of an oversimplyfication, i can elaborat if you want)