A trigger lock is a device that can be used to prevent a gun from being fired. It typically consists of a metal or plastic casing that fits over the trigger of the gun and blocks it from being pressed. Trigger locks can be purchased commercially, or they can be homemade. Some gun safety advocates argue that trigger locks are an important tool for preventing accidents, while others contend that they are ineffective and potentially dangerous.