Prévenir le Hotlink
Pour empêcher que vos images soient affichées sur d’autres sites web, ou bien que des liens direct soit fait sans passer sur votre site, il vous faut modifer votre fichier htaccess. Pour ma part, voici ce que j’ai rajouté au mien :
## DISABLE HOTLINKING
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?biologie-france.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?feedburner.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://feeds.feedburner.com/AutourDunCafe.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://feeds.feedburner.com/AutourDunCafe$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com/reader/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com/reader$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.fr/reader/view/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.fr/reader/m/view/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.netvibes.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.netvibes.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.fr/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.fr$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com$ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://farm3.static.flickr.com/2712/4135343311_793de70cf1_o.jpg [L]Le lien « http://farm3.static.flickr.com/2712/4135343311_793de70cf1_o.jpg » correspond à l’image qui sera affiché à la place pour faire venir les personnes sur votre site. Elle est hébergé chez flickr pour éviter d’utiliser de la bande passante, ce qui est le but recherché de cette modification ;)
Toutes les conditions au-dessus correspondent aux sites que vous autorisez, donc bien entendu le votre, mais aussi les sites de flux RSS, ou bien encore google/images.
En espérant que ça vous inspire !






