Forum Moderators: phranque
Nearly all of the images and all of the video have a "© mysite.com" stamped on them somewhere, so I'm thinking that quite a few people viewing these images will go my site anyway. (I like to think I have exceptionally good content for my niche area) :)
My dilemna is this - do I:
(a) Leave things as they are and note all the referring pages so that I can contact those that don't have a link to one of my pages and insist that they do. This route will cost me bandwidth. Well, is costing me right now, and although I'm not going to save money, I will need my current allocation for future bandwidth needs.
(b) Put a .htaccess to ensure that anyone who really wants to use my images/video will have to take a copy to put on their own site and use their own bandwidth. I think this will still benefit me because of the "© mysite.com" text. The disadvantage is that I no longer know who's using my images and videos around the web.
I'm more and more tempted by option (b). Does anyone have a link to a good .htaccess tutorial covering this area?
If you do a WebmasterWorld search, there are tons of well-written tutorials and complete .htaccess ban lists posted, as well as how to prevent direct linking to images and bandwidth theft.
That is - if you're leaning to solution (b).
<added>you can also track downloaded images with a service like Digimarc</added>
Yes, I've seen the items on .htaccess here via several searches. My problem is that the examples involving rewriteengine don't work - they end up preventing images from displaying on both my site and any other referring site. I saw one post here that implied this could be because rewriteengine is disabled on my shared host. Does this seem likely to you?
This should do it for you (for httpd.conf):
<Directory "/path/to/your/images">
Options FollowSymLinks
### Protect Local Images
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]
RewriteRule \.(gif¦GIF¦jpg¦JPG)$ [localhost...] [L]
</Directory>
Just make sure you do have mod_rewrite in your Apache!
dave
[iboost.com...]
-- tonmo
Options +FollowSymlinks
RewriteEngine On
rewritecond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mysite.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://111.222.333.444/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.239.*$ [NC]
RewriteRule .*[Mm][Pp][Gg]$¦.*[Mm][Pp][Ee][Gg]$ http://www.mysite.com/videos.htm [R,L]
Explanation and intentions:
I've tested the above, and it seems to work as expected. I've two questions I'd really appreciate some help on:
Thanks in advance...
<embed src="http://www.mysite.com/video/video.mpg">
I'd like to prevent the video from being played inside the offending website's page.
Where the offending website simply links to my video as shown below, they get redirected to my video page, which is exactly what I want.
<a href="http://www.mysite.com/video/video.mpg" target="_blank">http://www.mysite.com/video/video.mpg</a>