Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Clean up site tracks left behind after private surfing Web Browsers
Apple describes Safari's "Private Browsing" feature as follows:
When you browse the web, Safari stores information about the websites you visit including the content and any user names, passwords, and credit card numbers you enter. Other people who use your computer can view that information. If you don't want this information stored, use Private Browsing.... If you neglected to turn on Private Browsing before you browsed, choose Safari > Reset Safari.
This seems to imply that using Private Browsing, as well as Reset Safari, will not leave any record on your computer of the sites you have visited. This is not true, however. In Terminal, type this command:
dscacheutil -cachedump -entries Host
This will list all entries cached by Leopard (including the date and time of last access), even when Private Browsing is enabled. Even using Reset Safari will not clear these entries. To manually clear these entries, use the following command in Terminal:
dscacheutil -flushcache
The cache is also cleared once you log out of your Leopard account. While logged in, however, any other account on the system (even Guest users) can execute the above command to view sites you have visited.

[robg adds: We covered flushing the cache in 10.5 in this hint, but the fact that Safari leaves trails even in Private Browsing mode made me feel this was worth sharing. Other browsers may have similar issues in their private browsing modes, but I haven't tested them.]
    •    
  • Currently 3.22 / 5
  You rated: 5 / 5 (18 votes cast)
 
[106,561 views]  

Clean up site tracks left behind after private surfing | 7 comments | Create New Account
Click here to return to the 'Clean up site tracks left behind after private surfing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Clean up site tracks left behind after private surfing
Authored by: hamarkus on Feb 13, '08 08:38:11AM

Even then, often enough console.log can contain error messages with an associated URL. Just search for http in it.
BTW, is there an equivalent to dscacheutil -cachedump in Tiger?



[ Reply to This | # ]
Clean up site tracks left behind after private surfing
Authored by: acdha on Feb 13, '08 11:51:44PM

Yes - lookupd -flushcache, which I normally use when e.g. someone's fancy load-balanced site breaks and I'm stuck with a cached lookup pointing at a dead server.



[ Reply to This | # ]
Clean up site tracks left behind after private surfing
Authored by: danlip on Feb 13, '08 01:34:37PM

Yes, probably all browsers, and any app that looks up a IP address,
will leave a record here. It seems to be Apple's version of a DNS cache.
I flushed the cache and just using "ping" and it created an entry.

For Tiger I think the command is "lookupd", see the link to the previous hint that robg added.



[ Reply to This | # ]
Clean up site tracks left behind after private surfing
Authored by: hamarkus on Feb 13, '08 02:45:17PM
I googled around a bit and the best I could find was this:
http://forums.macosxhints.com/archive/index.php/t-53261.html
(where they agreed not to know of a method to see the cache)

[ Reply to This | # ]
Clean up site tracks left behind after private surfing
Authored by: hamarkus on Feb 14, '08 03:45:12AM
Well, lookupd -flushcache is the equivalent to dscacheutil -flushcache but I am looking for an equivalent to dscacheutil -cachedump -entries Host .

[ Reply to This | # ]
Clean up site tracks left behind after private surfing
Authored by: jocamero on Mar 22, '08 08:35:34PM

Here's an even more concise method:

dscacheutil -cachedump -entries Host |\
grep "Key: h_" | \
sed 's/^[ ]*Key: h_[a-z]*:\([^ ]*\)\( ipv[46]:1\)*/\1/g' | \
sort -u



[ Reply to This | # ]
Clean up site tracks left behind after private surfing
Authored by: J3STER on Sep 10, '13 02:13:59PM

hey im having some problems need some help in the beginning it said unable to get detials from the cache nob.. any ideas what to do from there. i also tried man desacheutil but im lost there please help me i have mac os x lion 10.7 im using bash 80x24



[ Reply to This | # ]