Clearing Safari history and cookies on exit?

jhuls
Contributor III

There seem to be methods to do this in Firefox and Google Chrome, what about Safari?

If there aren't any hidden settings to do this, is there a method to monitor the process so that when it quits a script could be ran? I'm thinking a script that calls a policy to replace the Safari folder with a packaged Safari folder would do the trick. This is for a lab so replacing the bookmarks and other settings is perfectly fine.

3 REPLIES 3

Sobchak
Contributor

I am looking for the same answer. I have a lab and I need Safari to clear the cookies and history every time they close the browser.

mkpgrattoncaspe
New Contributor

I'm still looking for this.

jmahlman
Valued Contributor

The best way to do this is to set the browser settings to run in private mode at all times. I believe there is still a way to do this...you will have to do some snooping for each browser.