how to prevent hot linking of images and other file type

Preventing hot linking of images and other file types  “hot linking” is a curse phrase. Also known as “bandwidth stealing” by the angry site owner, it refers to linking directly to non-html objects not on one own’s server, such as images, .js files etc. The victim’s server in this case is robbed of bandwidth (and in turn money) as the violator enjoys showing content without having to pay for its deliverance. The most common practice of  hot linking pertains to another site’s images.

put this code in your htaccess file
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?*$ [NC]
RewriteRule \.(gif|jpg|js|css)$ – [F]

note:replace “” with your own. The above code creates a failed request when hot linking of the specified file types occurs.
and put there

Easy htaccess tutorials