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 !
A lire aussi
Page optimized by WP Minify WordPress Plugin
2 Commentaires
LidioDuvillage
Par contre depuis Google Reader les images sont désormais inaccessibles… Je pense que c'est un oubli de ta part ;)
26 nov 2009 08:11
Reaves
Bizzare chez moi ca marche très bien avec google reader, il faudrait que d'autres abonnés au flux me disent si ça marche ou pas chez eux :/
26 nov 2009 11:11
Laisser un commentaire