To find restriction passcode on your iPhone 3GS, you have to reset your phone to its original factory settings. Launch the iTunes software on your Windows PC or Mac computer by pressing the Home and Power buttons simultaneously. Then, tap Settings on the iPhone screen. Go to General and tap Restrictions. Select Enable Restrictions and enter a four-digit passcode that you can use to confirm your identity when accessing the Restrictions menu.