No problem Pang,
There is a Flash location to write to in order to lock the Flash from external reading.
Two bits are securing the Flash and they are called SEC1 and SEC0.
These bits are located at 0xFF0F (CPU logical map) = 0x7F_FF0F'G ('G means global memory map).
The procedure is explained in Chapter 30.1.3 of the MC9S12XDP512 Datasheet.
An other solution is to include in your S-Record (the file you program in the MCU) these two bits, so it is all done in one operation. As you are not familiar with the family, I suggest you use the procedure from the datasheet. (the debugger has an option to secure the MCU also)
Alphonso.