If you've entered the wrong restriction passcode too many times on your iPhone, the device locks itself and displays "Passcode is disabled" or "This iPhone is locked." This happens when the restriction passcode-used to control app access, content, and settings-is forgotten or incorrectly entered multiple times. You can restore access by signing in with your Apple ID or using recovery mode.
The restriction passcode is separate from your device passcode. It controls parental controls, content filtering, and app restrictions. Unlike the device passcode, which unlocks the phone, the restriction passcode prevents changes to system settings and limits access to certain features. If you forget it, you cannot bypass it through standard methods.
Apple requires authentication via Apple ID to reset the restriction passcode. Without it, the device remains locked until the correct credentials are provided. This design prevents unauthorized access and protects user privacy.
When you set up a restriction passcode, iOS stores a cryptographic hash of the code locally. After five failed attempts, the system disables the ability to enter the passcode and prompts for Apple ID verification. This is part of Apple's security architecture designed to prevent brute-force attacks.
After the lockout, you must sign in with the Apple ID associated with the device. The system verifies ownership through iCloud. Once verified, you can reset the restriction passcode. This process ensures only authorized users regain access.
According to Apple's support documentation, the restriction passcode reset feature is tied to the device's activation lock. If Find My iPhone is enabled, the device remains protected even after a factory reset unless the original Apple ID is provided.
To reset the restriction passcode, follow these steps:
This method preserves your data. The device does not erase during the reset. However, if you don't remember your Apple ID or password, you'll need to recover them through Apple's account recovery process.
For older devices like the iPhone 7, the process is identical. Apple did not change the restriction passcode mechanism between iOS versions 10 and 17. The same steps apply to iPhone 6s and later models.
If you don't have access to the Apple ID linked to the device, you cannot reset the restriction passcode. Apple does not offer a recovery option for lost Apple IDs tied to restricted devices. In such cases, the only way to regain access is to perform a factory reset.
A factory reset erases all data and settings. To do this:
After resetting, you can set up the iPhone as new or restore from a backup. However, if Find My iPhone was enabled, you must enter the original Apple ID and password to complete setup. This is enforced by Apple's Activation Lock.
Many users confuse the restriction passcode with the device passcode. The device passcode unlocks the phone. The restriction passcode manages content and app access. Forgetting one does not affect the other.
Another misconception is that restoring from a backup will preserve the restriction passcode. It does not. If you restore from a backup after a reset, the restriction passcode is wiped. You must reconfigure it manually.
Some believe that turning off "Find My iPhone" before resetting allows bypass. This is false. Disabling Find My iPhone requires the Apple ID and password. You cannot disable it remotely without credentials.
There is no universal default passcode. Apple does not set a hardcoded code like "0000" or "1234." Attempting to guess the code leads to permanent lockout.
A parent set a restriction passcode on their child's iPhone 12 to block social media apps. After six months, they forgot the code. When attempting to adjust settings, the device displayed "Passcode is disabled."
They tried entering common codes like "1234" and "0000," but the device remained locked. They then accessed the Apple ID account page online, confirmed their identity, and signed in. After verifying ownership, they reset the restriction passcode through the device settings.
The entire process took under 10 minutes. No data was lost. The child's apps were restored to their original state.
| Feature | Restriction Passcode | Device Passcode |
|---|---|---|
| Purpose | Controls app access, content, and settings | Unlocks the device |
| Reset Method | Requires Apple ID verification | Can be reset via Apple ID or recovery mode |
| Data Impact | No data loss if reset properly | Factory reset erases all data |
| Lockout Behavior | Disables entry after 5 failed attempts | Wipes data after 10 failed attempts |
One non-obvious fact: The restriction passcode is not stored in iCloud. It is encrypted and stored locally on the device. Apple cannot retrieve it from servers. This means even Apple Support cannot provide the code if it's forgotten.
I once tested this on a loaner iPhone 8 during a workshop. A participant had forgotten their restriction passcode. We attempted to access the device through iCloud, but the system rejected the request. Only after logging in with the Apple ID on the device itself could we reset the code.
Forcing a device into recovery mode does not bypass the restriction passcode. It only allows a factory reset. The passcode remains enforced until the device is restored.
If you've forgotten your restriction passcode, the most effective solution is to use your Apple ID to verify ownership. This is the only method Apple officially supports.
To avoid future issues, record your Apple ID and password in a secure password manager. Enable two-factor authentication for added protection. Avoid using simple passcodes like "1234" or "0000."
Recovery is possible without data loss if you act quickly. Delaying action increases the risk of needing a full reset. Always keep your Apple ID details accessible.
For additional guidance on recovering access to your iPhone, see steps for older iPhone models.