bool isRestricted(uint8_t* /* data */) { return true; } // Might catch a few false positives
and
popup("This is a restricted model. If you are not in the state of New York, please flash the international firmware ([link]) to print restricted parts.");
It can also handle STL, step and all kinds of other formats.