How to prevent hotlinkig on a website? Just put this code on your .htaccess file: Where example.com should match your domain.