An advanced region definition and protection plugin