Do you mean hotlinking? Head over to sitepointforums.com and do a search on hotlinking. You can use .htaccess so files can only be loaded if the referer id is of your own sites.
I do something similar with our pictures in the downloads area but its with in the php. Found lots of people using tkings class animations for their avatar and just hotlinking. So I had some fun with that.