How to prevent clearing of internet histroy

I have some questions on "how to" and I do not want to get into the conversations about "trust" and "is this the right way" etc

we have 5 mac's in the home, several kids and all systems are set up with parental controls, web site restrictions and a few other restrictions at the router

so:

*How can I set the systems up to PREVENT manual clearing of the Internet History -- or better yet, prevent it from being manually cleared, but allow it to automatically clear in let's say 14 days*

thanks

macpro, Mac OS X (10.6.2), developer tools installed

Posted on Feb 14, 2010 4:47 AM

Reply
5 replies

Feb 14, 2010 6:43 PM in response to neff11928

+"How can I set the systems up to PREVENT manual clearing of the Internet History -- or better yet, prevent it from being manually cleared, but allow it to automatically clear in let's say 14 days"+

Are you sure you want to know?

If so, here it is:

Log in the account you want to track history on.
open /Applications/Utilities/Terminal.app

at the prompt:
sudo chmod +a "<user> deny delete" /Users/<user>/Library/Safari/History.plist
#replace <user> with the user's account short name#
example:
sudo chmod +a "kj deny delete" /Users/kj/Library/Safari/History.plist

to check:
sudo ls -ael /Users/<user>/Library/Safari/History.plist

example
Should see something like:
-rw-r--r--+ 1 kj staff 438547 Feb 14 19:34 /Users/kj/Library/Safari/History.plist
0: user:kj deny delete
#You should see info similar to above. The "0: user:kj deny delete" is the new ACL entry#
#that will prevent the user from deleting the history file#

Actually, if the user checks to see if the history is actually deleted, it will appear empty,
but when Safari is closed and reopened, like magic, the history returns.

Kj ♘

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to prevent clearing of internet histroy

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.