I hope this is the right place to ask this... I have a website that I use to create url's for images so that I can put the images onto other sites of mine. This allows me to create the img src="my URL" that I need. The question/problem that I have is that other webmasters are doing image searches, finding my images, and using my URL's to put those images on their sites. Ultimately they are using my bandwidth for the images. I don't care that they are using the images, since the images come from creative commons sites, but I do care that they are using my URL's and bandwidth for this. How do I go about creating the img src code and prevent people from doing this??
Insert this within your .htaccess file RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC] RewriteRule \.(gif|jpg|js|css)$ - [F] If someone does hotlink to you, you can have an alternative image appear, which would be fun, also put this into your .htaccess file, however this is not neccessary. RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC] RewriteRule \.(gif|jpg)$ http://www.mydomain.com/angryman.gif [R,L]
them using your images gives you a free backlink but if it is enough bandwidth block it with the .hta access... if not just let it cause the backlink helps