If you're playing blues, punk rock or so , just lay your fretting hand , making sure that each of the specified strings are covered with more than one finger , hopefully at the widest distance possible to avoid making harmonic sounds (unless the harmonic sound is what you want, like in ozzy osbourne's "crazy train").
If you're playing heavy metal (metallica, megadeth) you may also need to palm mute with your picking hand sometimes too , to get that heavy sound.