How to Enable USB Restricted Mode to Protect the Data on Your iPhone

If you lose sight of your phone in a public place, like leaving it plugged into the wall of the coffee shop while you do some remote work, your data is susceptible to USB hacking tools such as keyloggers. USB Restricted Mode can help secure your data by preventing access to the Lightning port after your device has been locked for an hour. 

Related: My iPhone Won't Charge! Troubleshooting Tips & Tricks to Get Your iPhone Charging Again

Master your iPhone in one minute a day:

Sign up to iPhone Life's Tip of the Day Newsletter and we'll send you a tip each day to save time and get the most out of your iPhone or iPad.

  • Open Settings

  • Tap Touch ID & Passcode. If you have an iPhone X or later, tap Face ID.

You'll be prompted to enter your passcode. Under Allow Access When Locked, set the toggle for USB Accessories to OFF. This will lock the Lightning port and prevent USB-related accessories from obtaining your data after your device has been locked for one hour.

This feature helps to protect your data, but can interfere with USB accessories you like using, such as CarPlay hubs or chargers after the one-hour lockdown. To regain access, just unlock your phone with your passcode, Touch ID, or Face ID as you normally would.

Top image credit: George.Bali /

Master your iPhone in one minute a day: Sign up here to get our FREE Tip of the Day delivered right to your inbox.
Hallei Halter's picture

Hallei is a 2018 graduate of Maharishi University of Management with a BFA in Creative & Professional Writing. She's currently working on a novel about people using witchcraft to clean their houses.