Safari has a feature called “Private Browsing” (Safari -> Private Browsing) which keeps Safari from recording information about the websites you visit. Here’s the official description:
Using Safari’s new Private Browsing feature, no information about where you visit on the Web, personal information you enter or pages you visit are saved or cached. It’s as if you were never there.