Not allowing change of bootloader by untrusted sources

I Tried to secure bootloader in Pixhawk but if anyone else wants they can just flash a new bootloader. How to proceed?

well if you want flash the bootloader on your fc as first thing you must have and stlink dongle using the stlink tool.
Basically if you have lock the reading and writing your mcu you cannot do nothing