Subject Recruitment

I want to know if there is a good way to exclude participants who have already participated in the survey before?
Can we use the ID of the participant as a means of exclusion?
However, the same participant may apply for different accounts to participate in the same test. How can this situation be resolved?
Looking forward to your reply, thank you.