what to do to prevent ticks on my dog

My dog and the horses get them all the time. Get them on me all the time too. I just pick them off and burn them with a lighter.