# How to detect when Flash is loaded from a local drive?

**URL:** <https://forum.kirupa.com/t/how-to-detect-when-flash-is-loaded-from-a-local-drive/327183>\
**Category:** flash\
**Created:** [February 11, 2012, 2:05am UTC](https://forum.kirupa.com/t/how-to-detect-when-flash-is-loaded-from-a-local-drive/327183 "2012-02-11T02:05:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbuged](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@humbuged](https://forum.kirupa.com/u/humbuged)\
**Post date:** [February 11, 2012, 2:05am UTC](https://forum.kirupa.com/t/how-to-detect-when-flash-is-loaded-from-a-local-drive/327183/1 "2012-02-11T02:05:07Z")

</div>

Hello,

Is there a script that checks if the flash is loaded from a local drive?

Example: Keric opens a flash file. The script then checks if the file is being played from a local drive. If it’s not, ads will be displayed.

Something like a domain lock. Uhm, local drive lock? Heheh

Is this possible?
