# Gatekeeper Protection for swf files?

**URL:** <https://forum.kirupa.com/t/gatekeeper-protection-for-swf-files/57080>\
**Category:** flash\
**Created:** [July 10, 2004, 1:11am UTC](https://forum.kirupa.com/t/gatekeeper-protection-for-swf-files/57080 "2004-07-10T01:11:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![syko227](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@syko227](https://forum.kirupa.com/u/syko227)\
**Post date:** [July 10, 2004, 1:11am UTC](https://forum.kirupa.com/t/gatekeeper-protection-for-swf-files/57080/1 "2004-07-10T01:11:30Z")

</div>

Hi ppl, does anyone here knows how to make a gatekeeper for flash files that don’t let the movie play if the file is running on a forbidden site?  
Example:  
Original content located in: [www.227movies.com/example/example.swf](http://www.227movies.com/example/example.swf)  
if another site include that example.swf, it redirects to:  
[www.227movies.com/stolen.php](http://www.227movies.com/stolen.php)  
I need to do that to malicious people don’t steal my bandwidth or just steal my games or any other flash content.  
If anyone have an I dea how to do that, please replyC:-) .  
btw my site:  
[http://www.227movies.com](http://www.227movies.com)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2004, 6:30am UTC](https://forum.kirupa.com/t/gatekeeper-protection-for-swf-files/57080/2 "2004-07-10T06:30:53Z")

</div>

> [@syko227](#):
>
> …btw my site:  
> [http://www.227movies.com](http://www.227movies.com)

we could’ve guessed that, lol 🙂

The swf has a url property it can check on, so can use

```auto
if(this.url !=...){
 getUrl(backtoyoursite.php);
}
//or use:
if(_url != "http://www.mysite.com/myfile.swf") {
_level0.unloadMovie();
}

```
