# Keeping My SWF hosted Only on my site

**URL:** <https://forum.kirupa.com/t/keeping-my-swf-hosted-only-on-my-site/171485>\
**Category:** flash\
**Created:** [December 5, 2005, 9:49pm UTC](https://forum.kirupa.com/t/keeping-my-swf-hosted-only-on-my-site/171485 "2005-12-05T21:49:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonygarcia](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@tonygarcia](https://forum.kirupa.com/u/tonygarcia)\
**Post date:** [December 5, 2005, 9:49pm UTC](https://forum.kirupa.com/t/keeping-my-swf-hosted-only-on-my-site/171485/1 "2005-12-05T21:49:09Z")

</div>

```auto
stop();
if ((_root._url.indexOf("http://www.azulinteractive.com") == 0) || (_root._url.indexOf("http://azulinteractive.com") == 0) ){
gotoAndStop(2);
} else {
gotoAndStop(1);
}

```

this is not working for me guys… is there an error in my code ☹

i got this from [http://www.flashcomguru.com/tutorials/fcs\_security.cfm](http://www.flashcomguru.com/tutorials/fcs_security.cfm)

thank you
