RewriteEngine On RewriteCond %(HTTP_REFERER) !^http://(.+\.)?yourdomain\.com/ (NC) RewriteCond %(HTTP_REFERER) !^$ RewriteRule .*\.(jpg.webp|gif|bmp.webp|png)$ /images/dontsteal.jpg.webp (L)
Imej yang dihubungkan ke tempat lain daripada laman web anda dialihkan ke grafik tersuai. Namun, perhatikan bahawa ini akan mempengaruhi orang yang membaca catatan melalui pembaca RSS juga.
Juga membenarkan mesin carian
RewriteCond %(HTTP_REFERER) !^http://(.+\.)?mydomain\.com/ (NC) RewriteCond %(HTTP_REFERER) !^http://(.+\.)?google\.(.+)/ (NC) RewriteCond %(HTTP_REFERER) !^http://(.+\.)?(.*\.)?google\.(.+)/ (NC) RewriteCond %(HTTP_REFERER) !^http://(.+\.)?bing\.(.+)/ (NC) RewriteCond %(HTTP_REFERER) !^http://(.+\.)?(.*\.)?bing\.(.+)/ (NC) RewriteCond %(HTTP_REFERER) !^http://(.+\.)?yahoo\.(.+)/ (NC) RewriteCond %(HTTP_REFERER) !^http://(.+\.)?(.*\.)?yahoo\.(.+)/ (NC) RewriteCond %(HTTP_REFERER) !^$ RewriteRule .*\.(jpe?g|gif|png)$ /transparent.gif (L)