Check this tutorial to read an explanation about hotlink protection. To activate this protection login to cPanel and click on "Hotlink Protection" in the SECURITY section.
Click on enable to activate the hotlink protection. You can customise the settings editing the fields below.