# Preventing SWF from playing after CACHE download

**URL:** <https://forum.kirupa.com/t/preventing-swf-from-playing-after-cache-download/212602>\
**Category:** flash\
**Created:** [January 12, 2007, 1:35pm UTC](https://forum.kirupa.com/t/preventing-swf-from-playing-after-cache-download/212602 "2007-01-12T13:35:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alemieux34](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@alemieux34](https://forum.kirupa.com/u/alemieux34)\
**Post date:** [January 12, 2007, 1:35pm UTC](https://forum.kirupa.com/t/preventing-swf-from-playing-after-cache-download/212602/1 "2007-01-12T13:35:00Z")

</div>

I’m trying to figure out a way to prevent someone from taking a SWF file out of the browser CACHE and use or distribute it as a fully-functioning piece. One way that I could think of, would be to have the SWF file look for a certain COOKIE via JavaScript. If the cookie is present, it can play the file, if not, it won’t play at all. The cookie would be instantiated at login, for example.

Has anyone tried this?
