How to prevent my iPhone photos from being accessed via USB?

I don't want my friend going through my iPhone pictures. I just tried an experiement. I set my phone to "lock immediately" and tried connecting the iphone to my laptop via USB. I could still access my photos even thought my phone was locked! Isn't this a huge security issue? Tried googling to find a solution and didn't find much. The second experiment I tried was sneakily connecting my friend's locked iPhone to my laptop to see if I could access his pictures. Even though his phone was locked, I could NOT access his pictures on my laptop. I'm sure that he actually has pictures on his phone. My friend is very knowledgeable about computers and it's obvious he's encrypting his phone somehow so that his pictures can't be accessed. Can someone explain how I encrypt my phone so that it can't be accessed via USB? (pictures, videos, files, etc.)

Q: How do I prevent my iPhone photos from being accessed via USB?
A: Don't allow anyone else to access your phone.

  • Websites accessed without wi-fi? When my iPhone 5 is connected to the my wi-fi, I can access many other sites, but not this one: http://www.bada.tv/common/app/movie.html. But for a strange reason when I'm disconnected to my own wi-fi, and use 3G I can access that site easily. Can someone explain why this is?
  • Turn iPhone into as it were an internet router via USB? Is it possible to use your iPhone as if it were to be an internet router, using a computer's internet connection instead of 3G/4G data? I don't have a data plan, and usually I'm in a place without a hotspot nearby.
  • Somebody has accessed my secured WPA home network with no password whatsoever? Two nephews at home… One needed the password, one could access my very own home network with no password whatsoever, and did so on another network. What sorcery is in his iPhone? I'm very worried. Again, it seems he can access networks ignoring their security, happened at least twice, not just my own network.
  • Sold iPhone 4 but now worried about whether the data can be accessed? My boyfriend just sold his old iphone 4 to a friend, and instead of wiping it out by going to settings -> General -> Reset -> Erase all content and settings, he just manually deleted all the pictures, apps, web history etc. He also left the password lock on and told his friend what the code was. Is there a possibility of his friend being able to recover what was on his phone? Or was his manually erasing everything good enough to ensure that his data and stuff won't be accessible