In Poland all transactions related to housing or land must be notarized with both buyer and seller present, the notary is supposed to check their IDs. Sadly it happened a couple of times that scammers presented a fake or stolen ID to a notary who did not recognize the forgery. Nowadays you can mark your personal number (equivalent of SSN) in the central, governmental database as restricted. This prevents notarized transactions, bank loans or issuing SIM card duplicates in your name. When you need a loan or buy a property you just log in to the system (or open the governmental app) and uncheck the checkbox.