Failsafe for area


I am working on a rover and need an option to set off an area where the rover cannot pass. Is this possible to achieve in mission planner so that I can drive my rover just on gps in auto mode but that if it goes wrong that the rover can’t pass a certain giving coordinate or line?

Thanks in advance