sodcalculator

10 Tech How-To

USB Restricted Mode: Enable It to Protect Your Data

Guide 10-30164 · Updated · Step by step

USB Restricted Mode is an iOS security feature that stops accessories connected via the Lightning or USB-C port from accessing your iPhone or iPad unless the device has been unlocked within the last hour. It’s designed to block tools that try to brute-force your passcode through the port, and it also prevents malicious chargers or public USB stations from pulling data. You don’t need to be a tech expert to turn it on—just a few taps in Settings. Here’s how to enable it and what to know.

What You’ll Need

  • An iPhone or iPad running iOS 11.4.1 or later (or iPadOS 13 or later).
  • Your device passcode (you’ll need to enter it to change the setting).
  • About 30 seconds of time.

Step-by-Step

  1. Unlock your iPhone or iPad with your passcode or Face ID/Touch ID. You must be able to unlock the device to access Settings.
  2. Open the Settings app from your home screen. It’s the gray gear icon.
  3. Tap “Face ID & Passcode” (or “Touch ID & Passcode” on older models). On devices without either, it may just say “Passcode.”
  4. Enter your passcode when prompted. This is required to view and change security settings.
  5. Scroll down to the section labeled “Allow Access When Locked.”
  6. Look for “USB Accessories”—it will have a toggle switch next to it. If the toggle is green, USB Restricted Mode is currently off (meaning accessories can connect when locked). If it’s gray, the mode is already enabled.
  7. Toggle the switch to off (gray). That’s it—USB Restricted Mode is now active. The setting takes effect immediately.
  8. Optional but recommended: If you use your iPhone with a car’s USB port for CarPlay, note that with this mode on, you may need to unlock your phone before the car can connect. You can still use CarPlay—just unlock once when you plug in.

Common Mistakes

  • Thinking the toggle “on” means the mode is enabled. In iOS, green means the accessory can connect when locked. You want it off (gray) to enable USB Restricted Mode. This trips up many people.
  • Expecting it to block all USB connections. It doesn’t. It only blocks accessories when the phone is locked and hasn’t been unlocked in the last hour. If you unlock your phone, any connected accessory can communicate normally.
  • Forgetting that it resets after an hour. If you unlock your phone, the “restricted” clock restarts. After an hour of being locked, the restriction kicks back in. Some users think it’s broken when they unlock and plug in—that’s expected behavior.
  • Turning it off when you don’t need to. If you rarely use USB accessories while the phone is locked, leaving the toggle off (mode on) is safer. There’s no downside for most people.

Tips

  • Use it with public charging stations. If you charge at an airport or hotel USB port, this mode prevents data transfer while your phone is locked. For extra safety, use a charge-only cable or a power bank.
  • Know the CarPlay workaround. If your car doesn’t recognize your iPhone after enabling this, just unlock the phone once when you plug in. The car will then connect normally. You don’t need to disable the mode permanently.
  • Combine with “Find My iPhone.” USB Restricted Mode is a strong complement to Find My, because it makes it harder for a thief to connect your iPhone to a computer and try to wipe it.
  • Check your iOS version. If you don’t see the “USB Accessories” toggle at all, your device is running an older iOS. Update to the latest version to get this security feature.

Troubleshooting

  • I don’t see “USB Accessories” in Settings. This means your device is running iOS 11.4 or earlier. Go to Settings > General > Software Update and install the latest iOS or iPadOS. The toggle appears in iOS 11.4.1 and later.
  • I toggled it off, but my computer still sees my iPhone when it’s locked. That’s normal if you unlocked the phone within the last hour. To test it, lock the phone and wait 60 minutes, then plug it into a computer. The computer should not recognize it. If it still does, restart your iPhone and try again.
  • CarPlay stopped working after I enabled this. Unlock your iPhone once when you plug it into the car. The car will then recognize it. If it still doesn’t, check that your car’s USB port is actually a data port (some are charge-only).
  • I forgot my passcode and now I can’t change the setting. You can’t access Settings without your passcode. You’ll need to restore your iPhone via a computer, which will erase the device. That’s a last resort—make sure you have a backup.
  • The toggle keeps turning back on. That shouldn’t happen unless you’re restoring your iPhone from a backup that had it on, or you’re using a configuration profile from an employer. Check Settings > General > VPN & Device Management for any profiles.

Frequently Asked Questions

Q: Does USB Restricted Mode block charging?
No. It only blocks data transfer. Your iPhone will still charge from any USB port, even when locked.

Q: Will this prevent law enforcement from accessing my phone?
It makes it significantly harder for anyone—including law enforcement—to use USB-based forensic tools to bypass your passcode. However, no security measure is absolute, and this is not a guarantee.

Q: Does it affect wireless charging?
No. Wireless charging doesn’t use the USB port, so it’s unaffected.

Q: Can I still use accessories like a camera adapter or MIDI keyboard?
Yes, as long as your phone is unlocked. If it’s locked and has been for over an hour, you’ll need to unlock it first.

Q: Is USB Restricted Mode on by default?
On devices running iOS 11.4.1 or later, the default is that USB Restricted Mode is enabled (the toggle is off). If you’ve never changed it, it’s likely already on.

Q: Does this affect syncing with iTunes or Finder?
Only when the phone is locked. If you unlock your iPhone and connect it to your computer, syncing works normally. When locked, the computer won’t see the device.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →