Lucibel: If you download and install VLC Media Player and watch other region DVDs on that, you don't need to change the code.
I doubt it sidesteps the hardware region lock. More likely is that your DVD drive is an RPC-1 drive (ie. "plays everything") rather than RPC-2. For playing a DVD video on a computer, there's at least two possible points for region checks; the drive's firmware, and the player software. VLC conveniently doesn't do the software check, leaving only the drive's firmware.