A security freeze will prevent any third party from accessing your credit file for a certain period of time, but it’s not a long-term solution.