That’s why you have biometric attendance which is another way of saying attendance using biological data such as fingerprint, face recognition, or voice (which we’ve not yet seen). Pair that with either the attendance system being in a fixed location or using the GPS of a phone or tablet, and now you have both the correct person and the location at the given time being recorded.
Some systems use an RFID card attendance or NFC card attendance, but of course, systems that use cards are prone to buddy punching. This may work well in a high-visibility area such as an area with CCTV. Other software use phones instead of cards and while phones can be given to colleagues many will be reluctant to do so as it means they can’t use their phone. Jibble supports this feature with “device lock” which means that only their particular phone can be used to clock themselves in and out.