The invention relates to locking devices preventing the unauthorized use of firearms. The invention provides a block, shaped partly as a normal magazine or a magazine or other shaped member which can be inserted into a firearm to block the magazine housing thereof or the barrel and which can be removed therefrom only by transmitting relevant biometric data to said block, said data corresponding with biometric data digitally stored in the block memory.