Just formatted my other pc.

I can remember coming across a free program that actually prevented
installation of spyware , however ive forgotten the name of it any help?