There are a few things you can do to protect yourself from termite infestation in the first place. Termites are looking for 3 things, and denying access to these as much as possible will help you in keeping them away. These 3 things are wood, moisture and shelter.
Whenever there is contact between the wood and soil, termites can invade. If there is wood damage in your house, this will make it easier for termites to gain entry, so make sure that you repair any damage as soon as possible. You should also avoid having old wood laying around the house since this could be a first stop for the termites.
There are chemicals that will repel or even kill termites, but these are not 100% effective, especially if there is direct contact between the soil and the wood of your house. It is usually better to have a professional pest control company apply these chemicals since they have the training and equipment needed, as well as expertise.