Hi guys ,
I have managed to find my solution , and this is the code i am using is below . hopefully this will help others . Put these codes in a .htaccess file under every directory u have under the media directory and upload the file .
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite.com/gallery/.*.php(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.mysite.com/gallery/ [R,NC]
What this will do :
this will allow you to prevent other sites from hotlinking your images . anyone trying to hotlink your images will now get get nothing .
Not just hotlinking from other site , my problem was : anyone copying the shortcut of the thumbnail files and changign the thumbnails to media , could easily be able to view the full images by Being a GUEST even !! . This will redirect those users to the homepage of your gallery ( u may change it to what u want ) .
Cheers