You need to make sure that you're using a good AV program. Keep it updated & scan any file that you download before opening.
The Gnutella network has loads of infected files, you just have to be careful with what you download & scan files. There's a lot of helpful info here
WARNING: Viruses on the network you should be aware of