| OS X - Apps and Games Discussion of applications and games available for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: May 09, 2007
Location: UK
Posts: 116
![]() Mac Specs: 2.16Ghz Mac Book Pro
|
We're all well aware of the Mac's security when it comes to viruses but what about ad ware, trackers and all those other nasties that come with browsing the net? I use Ad-Aware SE on my PC which searches for things like tracking cookies, ad ware etc. Are Macs vulnerable to these as well. If so can anyone recommend any software for dealing with it? I did a quick scan on my PC last night and found 103 nasty little cookies and trackers - i certainly dont want these on my nice MBP.
"Id rather have a bottle in front of me than a frontal lobotomy"
|
| QUOTE Thanks | |
![]() Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,553
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
|
Tracking cookies and the like are an ongoing nuisance that Mac OS X can't protect you from. The only answer that I am aware of is to diligently clean up your cookies on a regular basis.
For myself, being Linux friendly, and thus Terminal.app friendly, I have written a small Terminal script that does this for me. What I did was manually clean up my cookies until there were just the ones there that I wanted to preserve long term (things like my Mac Forums cookie, certain bank site cookies and so on). Then I went into my Firefox directory (I use Firefox pretty exclusively these days) and made a copy of my cookies.txt file (where Firefox keeps the cookies) called cookies.persist.txt. Then I wrote a small Terminal script called "clean" which basically reverses this process - it copies cookies.persist.txt to cookies.txt, thus wiping out the daily accumulation of cookies with just the ones I want to keep permanently. I take care to run this "clean" script at last once daily, and frequently more often than that. I could automate the running of it via cron, but I am in and out of Terminal so much that this step has never seemed necessary for me. I have enhanced this "clean" script over time so that it cleans up all sorts of accumulating rubbish - thumbnail caches, recently used file lists, bash history and so on. Keeps everything slim and running quickly. BTW, this same approach can be used for Safari, except that instead of cookies.txt in a Firefox dir, you make a copy of Cookies.plist in your home folder's Library/Cookies folder. My Macs: iMac 27" 3.4 GHz, 4 Core, Mac Pro, 3.2 GHz 8 Core, PowerMac G5 Quad, 2.5 GHz, G4 Cube, 1.2 GHz Upgrade My iStuff: 32 GB iPhone 4, 30 GB iPod Video, 16 GB iPod Touch My OS': Mac OS X Tiger, Mac OS X Snow Leopard, Mac OS X Leopard, Mac OS 8.6, openSUSE 10.3, Win XP I was on the Mac-Forums honor roll for September 2007 |
| QUOTE Thanks | |
![]() Member Since: Mar 22, 2007
Location: UK
Posts: 1,463
![]() ![]() ![]() ![]() Mac Specs: Lenovo Z560 Hackintosh -:- '06 iMac -:- iPod Touch 2ndGen
|
[URL="http://beadia.net"]Beadia[/URL - Jewelry Business Management Software] I judge you when you use poor grammar.
|
| QUOTE Thanks | |
![]() Member Since: Dec 20, 2006
Location: Middletown, Pennsylvania
Posts: 25,951
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 15" MBP, Core i7/2GHz, 8GB RAM, 256GB Crucial M4 SSD
|
I too would be interested in that script, if you wouldn't mind posting it, Mac57.
Also, just wanted to add that to date, there is no executable spyware/grayware/adware for OS X. Liquid and computers don't mix. It might seem simple, but we see an incredible amount of people post here about spills. Keep drinks and other liquids away from your expensive electronics! |
| QUOTE Thanks | |
![]() Member Since: Oct 10, 2004
Location: Margaritaville
Posts: 10,306
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 27" 3.4 Ghz i7 iMac-13" C2D Macbook-OSX 18.8.2-64Gb iPad 2-32 Gb iPhone 5-ATV 2-14Tb of Storage
|
![]() |
| QUOTE Thanks | |
![]() Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,553
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
|
Hi All, as requested, here is the script:
Code:
# Script to clean up cached data items that tend to accumulate over # time on the computer. Cleans several things: # 1. Clean up cached thumbnails # 2. Clean up the .bash_history file # 3. Clean up "recently used" accumulators, playlist histories, etc. # 4. One step clean up of Firefox cookies, histories, etc. # 5. One step cleanup of Safari cookies, histories, etc. # 1. Thumbnails rm -f /Users/mac57/.thumbnails/large/* rm -f /Users/mac57/.thumbnails/normal/* # 2. Bash History rm -f /Users/mac57/.bash_history # 3. Various "Recently Used" trackers, playlist histories, etc. rm -rf /Users/mac57/.recently-used rm -rf /Users/mac57/.gqview/history rm -rf /Users/mac57/.gqview/thumbnails cp -f /Users/mac57/.gimp-2.2/documents.persist /Users/mac57/.gimp-2.2/documents cd /Users/mac57/Library/Preferences cp "Windows Media Player Prefs-default.txt" "Windows Media Player Prefs" cd # 4. Firefox cookies, downloads, history - one step cleanup cd /Users/mac57/Library/Application\ Support/Firefox/Profiles/sy0jbj2k.default cp cookies.persist.txt cookies.txt cp downloads.clear.rdf downloads.rdf cp history.clear.dat history.dat # 5. Safari cookies, downloads, history, cache - one step cleanup cd /Users/mac57/Library/Cookies cp cookies.persist.plist cookies.plist cd /Users/mac57/Library/Safari cp Downloads.plist.persist Downloads.plist cp History.plist.persist History.plist cd /Users/mac57/Library/Caches rm -rf Safari mkdir Safari # Display the result echo " " echo "Caches Cleared - Disk Utilization:" echo "Filesystem Size Used Avail Capacity Mounted on" df -h | grep -i disk echo " " Also note that I have taken the same approach to Firefox/Safari history and download lists as I have to cookies, saving off a standard minimal one (always named like "something.persist.txt") and then overwriting the existing one with it. In order for this script to work "as is" for you, you will need to do the same. Also, I have GIMP loaded on my machine, and have included it's documents list in the clean up too. If you don't have GIMP on your machine, just delete that part of the script. To use this script, copy and paste it into a simple text file, and save that file in your home folder as filename "clean" (or whatever name you like). If you are an advanced user and have your own personal bin folder, place it there. If you are not, your home directory is just fine, and is what is assumed in the below. Now open a Terminal.app session. Type in "ls" and Enter and you should see your script file there in the list of files. Type the following to make the script executable: Code:
chmod +x clean From now on, when you want to clean out your Firefox, Safari, etc. caches, just startup Terminal.app and type: Code:
./clean Enjoy! ...and let me know if you have any questions. My Macs: iMac 27" 3.4 GHz, 4 Core, Mac Pro, 3.2 GHz 8 Core, PowerMac G5 Quad, 2.5 GHz, G4 Cube, 1.2 GHz Upgrade My iStuff: 32 GB iPhone 4, 30 GB iPod Video, 16 GB iPod Touch My OS': Mac OS X Tiger, Mac OS X Snow Leopard, Mac OS X Leopard, Mac OS 8.6, openSUSE 10.3, Win XP I was on the Mac-Forums honor roll for September 2007 Last edited by mac57; 09-18-2007 at 01:30 PM. |
| QUOTE Thanks | |
![]() Member Since: Dec 20, 2006
Location: Middletown, Pennsylvania
Posts: 25,951
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 15" MBP, Core i7/2GHz, 8GB RAM, 256GB Crucial M4 SSD
|
Ugh... virtual rep to you, sir - need to spread it around. Thanks a lot.
Liquid and computers don't mix. It might seem simple, but we see an incredible amount of people post here about spills. Keep drinks and other liquids away from your expensive electronics! |
| QUOTE Thanks | |
![]() Member Since: Mar 22, 2007
Location: UK
Posts: 1,463
![]() ![]() ![]() ![]() Mac Specs: Lenovo Z560 Hackintosh -:- '06 iMac -:- iPod Touch 2ndGen
|
Same here. That's a great help, mac57. Does the ~ thing for your home folder work in terminal scripts?
[URL="http://beadia.net"]Beadia[/URL - Jewelry Business Management Software] I judge you when you use poor grammar.
|
| QUOTE Thanks | |
![]() Member Since: Feb 25, 2007
Location: Pittsburgh, PA, USA
Posts: 116
![]() Mac Specs: PowerBook G4 15" 1GHz 768MB 60GB
|
Excellent script! And knightlie, ~ should indeed reference your home directory.
"Excuse me, does this effectively hide my thunder?" - Tobias Fünke, Arrested Development |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
All times are GMT -4. The time now is 09:35 AM.
Powered by vBulletin