I have absolutely no idea if its even possible but its something I'd like to experiment with.
I'd like to be able to detect if a file loads on my site that's being called from another location. The best example I can provide is the following:
I'm able to edit my computers host file to block specific domain names. If I have external.com blocked and mysite.com uses resources from external.com, those resources won't load.
So I'd like to know if there's any way I can detect weather any or all of the resources from external.com are loading when a user visits my site and if possible set up an action to redirect any users that have external.com blocked.