Forum Moderators: phranque
Most violators are 5 domains´
Now I would like to redirect all with referers from this 5 domains accessing a jpg to an do-not-copy.png
But I did not find an example for exactly this.
Please could somebody help?
RewriteCond %{HTTP_REFERER} ^http://www\.hotlinker1\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www\.hotlinker2\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www\.hotlinker3\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www\.hotlinker4\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www\.hotlinker5\.com [NC]
Jim
# block any/all hotlinker1 subdomains
RewriteCond %{HTTP_REFERER} ^http://([^./]*\.)*hotlinker1\.com [NC,OR]
...
# block hotlinker5 domain and www subdomain
RewriteCond %{HTTP_REFERER} ^http://(www\.)?hotlinker5\.com [NC]
# return 403-Forbidden response to hotlink requests for .jpg files
RewriteRule \.jpg$ - [F]
Jim