It's often nothing more than a secret sequence of key presses. It's usually best to avoid the big name manufacturers though, usually the cheaper the better. I had a KISS player that had a hidden menu for it
If it's for a PC DVD drive then there are numerous software work-arounds. DVD region free does exactly what it says on the tin and can be found by fair means or foul.
Firmware flashing is usually unecessary.