If you want to set your iphone in security mode to protect your privacy . you should setup password on iphone. it is a easy to setup password on iphone.
1. You need to go to Settings –> General on your iPhone
2. You want to choose “Passcode Lock”, which, since you don’t have one set, immediately asks you to create a password / passcode four-digit sequence: and confirm it.
3. Once it’s set (I presume you can enter the same four digit sequence twice!

you’ll get to the general passcode lock settings:
4. Here you can disable your new passcode if you want, change it, or specify how anxious you are about the security of your shiny new Apple iPhone. If you get racy SMS messages from your significant other (or your pals) you might well want to turn OFF Show SMS Preview here too. Once you’re done, just click on “General” on the top left and it’s all set.
5. Back, you’ll want to click on Auto-Lock and set it to a time you prefer. I have mine set to relock after three minutes of idle time, but you can choose anything from 1 minute to “never”, though the latter is better accomplished by simply disabling the passcode in the first place.
Now, when your phone goes to sleep and you wake it up, you’ll see the usual idle lock screen but now, when you slide the widget on the bottom to wake it, you’ll then immediately be prompted to enter your security code to proceed to the full iPhone interface