Forgotten iPhone restrictions passcode - how can i find it out?

I got an iPhone 5s today, and I'm giving my old iPhone 4 to my dad, so i need to erase all the settings on it. I went Settings> General > Reset > Erase all content and settings
It's asking me to put in my restrictions passcode… I have no idea what this is, and have used 8 attempts to put in things it could be, like 0000, 1234 etc. Nothing has worked. Is there a way to get around this so i can restore the phone and give it to my dad?

Before you restore your device

Make sure you're using the latest version of iTunes.
Use iTunes to back up your device and transfer and sync any additional content to your computer.
Turn off Find My iPhone in Settings > iCloud on your device to disable Activation Lock.

Restore your iOS device

Connect your iOS device to your computer using the cable that came with it.
Select your iPhone, iPad, or iPod touch when it appears in iTunes. In the Summary pane, click the Restore button for your device.
select your device
Click Restore again to confirm that you want to restore your device to factory settings and delete all data and content. ITunes will download the iOS software file and restore your iOS device.

After your iOS device is restored to factory settings, it will restart, and you'll see the "Slide to set up" welcome screen. Follow the steps in the iOS Setup Assistant. You can set up your device as new or using a previous backup. If your iOS device has cellular service, it will activate after you restore.
slide to unlock

Additional Information

If you get an error message, find out how to fix most update and restore errors.
If your iOS device with cellular service doesn't activate after restoring, find out how to fix activation issues.
If your iOS device restarts repeatedly or isn't responding, for example if you see a stopped progress bar or no progress bar, put the device into recovery mode and restore it again.

First go into settings-icloud and sign out of the apple ID signed into it. After that open up the latest version of itunes on a computer. Connect the phone to you computer with itunes open and hold down the home and power buttons at the same time. You will get a prompt telling you to run the phone in 'recovery mode'. This is a total wipe including passcodes so be sure to get everything you want/need off of it before doing this.

Its your icloud id and password, you can reset it -> http://www.justtext.com/messageboards/20140127092428.html

  • Will restoring my iPhone on my iTunes unlock my forgotten passcode? I put a new passcode on then stupidly forgot it and nkw I can't get in because i'm getting it wrong. I've read to restore it on the computer which I'm doing now but i'm scared it won't work. What do I do if it doesn't? And will it work?
  • IPhone won't restore? Forgotten passcode? I forgot my passcode for my iPhone 4s. I have tried to restore it, but it keeps saying that the phone has a passcode on it and and you need to get rid of it before you can restore it. But because I have forgotten the passcode, I can't do it this way. But when ever I try and do it through DFU mode, the same message still comes up half way through 'extracting files'… Any other ways?
  • I've forgotten my iPhone 4 passcode, what should I do? I recently changed my iPhone 4 (iOS7) passcode and I've forgotten what I changed it to. Is there a way to bypass the passcode screen or just get rid of the passcode altogether? Also, if I were to restore the iPhone to factory settings then restore it from a backup of the iPhone, will it still keep the passcode?
  • I need to figure out how to find my restrictions password on my iphone? A while back i watched a video and got my password. It used the backup data from the iphone and was able to find the stored password in the backup. Now i need help i can't rember what windows program and can't find the video. Need some help i really need this password.