# Domain locking in AS3?

**URL:** https://forum.kirupa.com/t/domain-locking-in-as3/243206
**Category:** flash
**Created:** [November 4, 2007, 11:16am UTC](https://forum.kirupa.com/t/domain-locking-in-as3/243206 "2007-11-04T11:16:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![doogog](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@doogog](https://forum.kirupa.com/u/doogog)
#### Post date: [November 4, 2007, 11:16am UTC](https://forum.kirupa.com/t/domain-locking-in-as3/243206/1 "2007-11-04T11:16:47Z")

</div>

Is it still possible to do domain locking in AS3?

I tried the following:

```auto
var topUrl:String = (root.loaderInfo.url);

```

But it keeps giving me the url of the swf file instead of the page that it’s being loaded into.

Is there a new way of doing it? Thanks.
