Restrictions code
How do I recover my Restrictions password for Safari
Are you using a device withe Parental Controls enabled? If not, more information would help.
"If you lose or forget your Restrictions passcode, you need to erase your device, then set it up as a new device to remove the Restrictions passcode."
Restrictions code