You can do this easily in your host cpanel
You should ensure that all sites that you wish to allow direct links from are in the list box by going to the cpanel--> hotlink protection then this will bring you to the page you need where you can add your sites you want to prevent hotlinking.
HTH