An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
Tracking cookies in Safari
#20983 03/06/12 04:32 PM
Joined: Aug 2009
Likes: 15
OP Online

Joined: Aug 2009
Likes: 15
Thanks for the suggestion; I'll keep it in mind. (Safari has been quiescent the past coupl'a days, so...)

But don't you harbor any ill feelings towards the tracking cookies that Safari stores in RAM and that can be cleared only by quitting it?/*


NB: This and the following 5 posts were extracted from the thread Safari Web Content crashes as a separate topic. Alternaut

Last edited by alternaut; 03/08/12 03:08 PM. Reason: changed title and indicated origin of thread

The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Tracking cookies in Safari
artie505 #20988 03/06/12 08:26 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
Originally Posted By: artie505
But don't you harbor any ill feelings towards the tracking cookies that Safari stores in RAM and that can be cleared only by quitting it?


Not really, any important ones like forum information expire after a relatively short period of time, so when I return it's a new session anyway.

Last edited by alternaut; 03/08/12 03:01 PM. Reason: changed title

iMac 2.7 GHz Core i5, 12 GB RAM, OS X 10.9, Int SATA 1 TB, Ext Fire 2 TB / 1 TB / 1 TB / 500 GB / 300 GB
Former MacFixIt Forums member since 11/17/99
www.rhubarbproductions.com
Re: Tracking cookies in Safari
artie505 #20990 03/07/12 12:03 AM
Joined: Sep 2009
Offline

Joined: Sep 2009
Originally Posted By: artie505
Thanks for the insight, Kevin, but I prefer to quit Safari periodically, because quitting clears the tracking cookies & caches (that Safari "stores" in RAM) that can't be cleared by any other means of which I'm aware.

Have you ever cleared (or seen) this one?

ls -lhn ~/Library/Caches/Metadata/Safari/History/.tracked\ filenames.plist

defaults read ~/Library/Caches/Metadata/Safari/History/.tracked\ filenames


crazy

/edit: Figured i should probably mention that those two orange lines are actually terminal commands. Running the first one (e.g., via copy/paste) will list a hidden file... if it exists. Doing that much will show us its size (among other things). Running the second command will display its content. Observe that, not only is the file hidden in Finder (via the leading dot in its name), but —for something sitting in a folder named "History" —it typically isn't affected when we clear Safari's history. In fact, i've been told that it even survives a 'Reset Safari...' menu operation. (idunno)

So far (despite posting about it far and wide), i have not learned this file's actual purpose (e.g., does it truly benefit the user?), nor which entity is "in charge" of it. [Apple?, Google? who?]

Last edited by alternaut; 03/08/12 03:01 PM. Reason: changed title


"Regardless of how Apple corporate wants to portray its products,
 the Mac isn't a machine for the masses any more than red wine is
 the preferred beverage at baseball games.
 :
 So who cares about ubiquity anyway?"
--D. Story
Re: Tracking cookies in Safari
Hal Itosis #21002 03/08/12 08:49 AM
Joined: Aug 2009
Likes: 14
Offline

Joined: Aug 2009
Likes: 14
I used both the Terminal commands.

The first one netted:

-rw-r--r--@ 1 501 501 67K 8 Mar 01:22 /Users/myname/Library/Caches/Metadata/Safari/History/.tracked filenames.plist
firstname-lastnames-imac:~ myname $


But the second one generated a long list that contained information about many places I know I visited (PayPal, my bank, newspapers, et cetera). However there were many more names that clearly were tracking sites (Tribal Fusion, DoubleClick, Quote Media, Google Leads, and so on)

Am I correct to assume that this is simply an historical file and that using something like Cocktail to make it visible and then deleting it is not going to net any real gain - like screwing up the tracking people.

Last edited by alternaut; 03/08/12 03:00 PM. Reason: changed title

ryck

"What Were Once Vices Are Now Habits" The Doobie Brothers

iMac (Retina 5K, 27", 2020), 3.8 GHz 8 Core Intel Core i7, 8GB RAM, 2667 MHz DDR4
OS Ventura 13.6.3
Canon Pixma TR 8520 Printer
Epson Perfection V500 Photo Scanner c/w VueScan software
TM on 1TB LaCie USB-C
Re: Tracking cookies in Safari
Hal Itosis #21003 03/08/12 11:52 AM
Joined: Aug 2009
Likes: 3
Moderator
Offline
Moderator

Joined: Aug 2009
Likes: 3
Seems like one of those "dump the folder" situations:

Code:
set theFolder to ((path to library folder from user domain) as Unicode text) & "Caches:Metadata:Safari:History"
tell application "Finder"
	if (exists folder theFolder) then
		display dialog "Are you sure you want to delete the folder 
 \"~/Library/Caches/Metadata/Safari/History\"?
Clicking OK will empty the Trash."
		delete folder theFolder
		empty
	else
		display dialog "Folder doesn't exist."
	end if
end tell

(Note that the above script assumes you're not someone who uses the Trash to store things you're not ready to delete yet!)

It appears that the contents of that folder are written to RAM when Safari is launched, so you need to quit Safari before trashing them or they'll be regenerated along with the folder whenever Safari next wants to write to it.

FWIW, .tracked filenames.plist, as mentioned elsewhere, seems to consist of the URLs of sites which came up as Google search results and were actually visited.

Last edited by alternaut; 03/08/12 03:00 PM. Reason: changed title


dkmarsh—member, FineTunedMac Co-op Board of Directors
Re: Tracking cookies in Safari
dkmarsh #21004 03/08/12 12:10 PM
Joined: Aug 2009
Likes: 3
Moderator
Offline
Moderator

Joined: Aug 2009
Likes: 3
Originally Posted By: dkmarsh
FWIW, .tracked filenames.plist, as mentioned elsewhere, seems to consist of the URLs of sites which came up as Google search results and were actually visited.

Hmm, seems that on sites using Google Custom Search, the search URL itself is written to .tracked filenames.plist whether you visit any of the links or not.

Last edited by alternaut; 03/08/12 02:59 PM. Reason: changed title


dkmarsh—member, FineTunedMac Co-op Board of Directors
Re: Tracking cookies in Safari
dkmarsh #21007 03/08/12 03:46 PM
Joined: Aug 2009
Likes: 14
Offline

Joined: Aug 2009
Likes: 14
Originally Posted By: dkmarsh
It appears that the contents of that folder are written to RAM when Safari is launched...

Bear with me...neophyte questions...Would that be why there are so may complete URLs? Are they complete so that, when these addresses are loaded into RAM, there is an immediate connection to the sites?

I note than many of the URLs don't use www after HTTP:// For example:

.a.tribalfusion.
ad.ca.doubleclick
app.quotemedia
googleads.g.doubleclick

Last edited by ryck; 03/08/12 03:48 PM.

ryck

"What Were Once Vices Are Now Habits" The Doobie Brothers

iMac (Retina 5K, 27", 2020), 3.8 GHz 8 Core Intel Core i7, 8GB RAM, 2667 MHz DDR4
OS Ventura 13.6.3
Canon Pixma TR 8520 Printer
Epson Perfection V500 Photo Scanner c/w VueScan software
TM on 1TB LaCie USB-C
Re: Tracking cookies in Safari
dkmarsh #21013 03/08/12 06:10 PM
Joined: Sep 2009
Offline

Joined: Sep 2009
Originally Posted By: ryck
Am I correct to assume that this is simply an historical file and that using something like Cocktail to make it visible and then deleting it is not going to net any real gain - like screwing up the tracking people.

I don't know what its actual purpose is, but i find it odd that it wants to persist forever (e.g., clearing history and reset safari have no effect usually). Is that intentional (on Apple's part), or a bug in Safari? [i.e., it simply overlooked any need to delete dot files in the History folder, because Apple doesn't create them.]

? idunno.

Also curious is how little info we obtain about it via google (or bing, etc).




Originally Posted By: dkmarsh
FWIW, .tracked filenames.plist, as mentioned elsewhere, seems to consist of the URLs of sites which came up as Google search results and were actually visited.

That's some of it, yes. And i think changing our default search engine from google to something else may have an effect as well. [i have not conducted rigorous experiments or anything.]

But i've also seen certain facebook urls sitting in there (sans any google relationship). ::shrug::

I use a shell script to srm the puppy, which i run every time i quit Safari.


[edit/ NB: avoid running srm on entire folders while using wildcards (especially the asterisk: folder/*). I normally aim it at specific file paths. (it's not crafted as cautiously as regular rm is).]

Last edited by Hal Itosis; 03/08/12 06:31 PM.
Re: Tracking cookies in Safari
Hal Itosis #21022 03/09/12 08:35 AM
Joined: Aug 2009
Likes: 15
OP Online

Joined: Aug 2009
Likes: 15
Sorry for being slow to get back to you.

I was unaware of that file until you mentioned it. (It's much easier to read in TextWrangler than in Terminal.)

My file did not list any of the tracking garbage that ryck's listed, possibly because I'm running Ghostery?

My file did list an incomplete compilation of my recent Google searches (none of which were "Advanced" searches), but it also listed a coupl'a searches of my PayPal history and a coupl'a other searches that were done without Google involvement, which suggests that Google has nothing to do with it.

My file disappeared when I cleared Safari's history and hasn't reappeared after a coupl'a Google searches (including one that was originally listed).

I dunno. confused

Edit: Add link to screenshot.

Edit 2: Interesting sidenote... If I clear Safari's history via Safari > History > Clear History, /Users/artie/Library/Caches/Metadata/Safari/History is cleared of all files, but if I clear it with Cookie (3rd party d/l), all files remain, although Safari > History shows nothing.

Last edited by artie505; 03/09/12 10:17 AM.

The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire

Moderated by  alternaut, dianne, MacManiac 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.023s Queries: 32 (0.014s) Memory: 0.6184 MB (Peak: 0.7097 MB) Data Comp: Zlib Server Time: 2024-03-29 08:40:31 UTC
Valid HTML 5 and Valid CSS