Removing and blocking flash cookies
Did you know that it’s not just your browser that stores cookies on your computer? Adobe Flash Player is doing it also, and these are much harder to manage. To manage these you have to use the “Adobe way” or the nice and cool “Linux way” described below. For more information on what it actually is, check out the links at the end of this article.
Back to the fun part, where do you find these cookies you may ask? They’re stored in two folders on linux
~/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/
~/.macromedia/Flash_Player/#SharedObjects/
Using find to show the cookies
cd ~ find -iname '*.sol'
How many cookies do you have?
find -iname '*.sol' | wc -l
Using find to Search & Destroy all flash cookies
find -iname '*.sol' -ok rm "{}" \;
To prevent the flash cookies from being written to your disk
chmod -Rv 0500 .macromedia/Flash_Player/#SharedObjects/ .macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/
This will set the two folders they are residing in to read and execute only, so nothing can be written there.
More resources: