# Making a swf only work if on specific domain

**URL:** <https://forum.kirupa.com/t/making-a-swf-only-work-if-on-specific-domain/170294>\
**Category:** flash\
**Created:** [November 24, 2005, 12:44pm UTC](https://forum.kirupa.com/t/making-a-swf-only-work-if-on-specific-domain/170294 "2005-11-24T12:44:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemmendorff](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@hemmendorff](https://forum.kirupa.com/u/hemmendorff)\
**Post date:** [November 24, 2005, 12:44pm UTC](https://forum.kirupa.com/t/making-a-swf-only-work-if-on-specific-domain/170294/1 "2005-11-24T12:44:57Z")

</div>

Hello. I’ve made a game for viceland, and as always when you make a good game, lousy free-game-portals plain steals it and puts it on their site.

So now i’m trying to take a few actions to prevent this from happening. One thing is that i’d like the swf to check which domain it’s being viewed on.

I thought you could check which domain the html/php is on somewhere using SYSTEM.SECURITY or something. But i don’t find any.

Any ideas?  
I’d be very glad for any help.  
And heres the game if you like to play:  
[http://www.viceland.com/se/v2n2/htdocs/game.php](http://www.viceland.com/se/v2n2/htdocs/game.php)

/Olle
