Neodymium magnetic strips are the best option for safely fastening knives on walls in your kitchen. They are very strong magnets that prevent your knives from falling and allow you to safely store your knives.  However, do keep in mind that extreme temperatures can change the properties of these magnets, and they may lose their magnetism.