How to prevent employees to mark previous dates attendance

I want employees to mark their attendance but they can also mark previous dates attendance.