Dogs and fleas/ticks advice

I just moved to a new house and thr backyard has woods so definitely lots and fleas/ticks back there. I’m just wondering, does anyone have any advice to help prevent ticks and fleas on dogs? Like any medicine/collar/ spray/ etc. anything at all !