RewriteEngine On RewriteCond %(HTTP_REFERER) !^http://(.+\.)?yourdomain\.com/ (NC) RewriteCond %(HTTP_REFERER) !^$ RewriteRule .*\.(jpg.webp|gif|bmp.webp|png)$ /images/dontsteal.jpg.webp (L)
Le immagini collegate da qualsiasi luogo diverso dal tuo sito Web vengono reindirizzate a una grafica personalizzata. Tieni presente, tuttavia, che ciò influenzerebbe anche le persone che leggono i post tramite lettori RSS.
Consenti anche ai motori di ricerca
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)