If local codes permit you can install a BACKWATER VALVE Also called a check valve.
The problem with using these devices is in case the main sewer is over loaded and puts any pressure against the flapper of this back water valve water will NOT enter your home BUT you also will not be able to use any fixtures until the pressure is relieved.
If you do go for this installation place this BWV in front of your building house trap and have it accessible for inspection and maintenance when required.
There are other options available BUT this is the easiest and cheapest available and it works.
Please keep me posted Have a great holiday