To enable or disable hot linking, follow the below steps.
Login to your cPanel.
Click on HotLink Protection icon.
In the form, add the domains you want to protect in the box "URLs to allow access", if you don't add your domain name, even your websites can not view your files.
In the next box, give the files extensions which you want to protect.
It is recommended to select "Allow direct requests"
Click on Submit to complete.