I want to know if there is a way to block certain websites or set a age restriction for safari.
No but you can do it by hiding Safari by Restrictions, installing an app that has parental controls and setting a Restriction that prevents installing apps. See:
Parental Control???: Apple Support Communities
how do i put parental control on my...: Apple Support Communities
Retrieving data ...