There are very few modern guns that will be hurt by dry firing. If in doubt check the owners manual or call the manufacturer. Many older rimfires should not be dry fired. Revolvers with hammer mounted firing pins should be dry fired very little, as well as many double barreled shotguns. Almost all other centerfire handguns and rifles won't be hurt at all and many owners manuals actually encourage it.
I've been dry firing almost every gun I've ever owned, many for close to 40 years, with 100's of thousands of dry fire cycles with no issues at all. I only own 1 centerfire that dry fring is not recommended, a Kel-Tec P-3AT.