After looking at my sites referres I was a little pissed off that some clever guy is hotlinking to my site. After looking around for a solution I found that .htaccess is probably the easiest to implement.
Simply add the below code to your .htaccess file, and upload the file either to your root directory, or a particular subdirectory to localize the effect to just one section of your site:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?mydomain.com/.*$ [NC]
RewriteRule .(gif|jpg|js|css)$ - [F]
Be sure to replace "mydomain.com" with your own. The above code creates a failed request when hot linking of the specified file types occurs. In the case of images, a broken image is shown instead.
Now for the tricky part where I need help
If "the clever guy" uses this particular link: http://www.icyphoenix.com/image_thu...4237_212683.png
the script doesnt work. Now the only way this link i generated is if you right clik an image and view it in your browser, if you note the url is kinda generated twice...
Can MG or someone come up with a solution for this











London






Borgo San Michele

