Protect swf from hotlinking

Can an swf check to see what the url of the page in which it is embedded is?

I don’t care if other people host copies of the swf, but I dont want them to embed my copy in their pages, so I want to show some kind of default image if the html address is not my site.
Thanks.