Un .htaccess à mettre pour protéger les images sur un site contre le téléchargement.
# Interdit les hotlinks
Options +FollowSymlinks
RewriteEngine on
# Autorisé à partir d’un accès direct
RewriteCond %HTTP_REFERER !^$
# Autorisé à partir de mon domaine
RewriteCond %HTTP_REFERER !^http://((www|forum)\.) ?vplfan\.com/.*$ [NC]
# Autorisé à partir de la traduction Google
RewriteCond %HTTP_REFERER !^http://translate\.google\.com/.*((www|forum)\.) ?vplfan\.com [NC]
# Autorisé à partir du cache de Google
RewriteCond %HTTP_REFERER !^http://64\.233\.(167|183)\.104.*$ [NC]
RewriteCond %HTTP_REFERER !^http://66\.102\.9\.104.*$ [NC]
# Autorisé à partir de la recherche d’images de Google
RewriteCond %HTTP_REFERER !^http://images\.google\..*/.*$ [NC]
# Autorisé à partir du cache de Yahoo
RewriteCond %HTTP_REFERER !^http://72\.30\.186\.56.*$ [NC]
RewriteCond %HTTP_REFERER !^http://216\.109\.(117|125)\.(130|135).*$ [NC]
# Autorisé à partir de la recherche de Yahoo
RewriteCond %HTTP_REFERER !^http://.*\.search\.yahoo\.com/.*$ [NC]
# Autorisé à partir de la traduction Yahoo et Altavista
RewriteCond %HTTP_REFERER !^http://babelfish\.(yahoo|altavista)\.com/.*((www|forum)\.) ?vplfan\.com [NC]
# Autorisé à partir de la recherche d’images de MSN
RewriteCond %HTTP_REFERER !^http://search\.msn\..*/.*$ [NC]
# Autorisé à partir du cache de MSN
RewriteCond %HTTP_REFERER !^http://cc\.msnscache\.com/.*$ [NC]
# Autorisé à partir de la recherche de Lycos
RewriteCond %HTTP_REFERER !^http://vachercher\.lycos\.fr/.*$ [NC]
# Autorisé à partir de la recherche de Ask
RewriteCond %HTTP_REFERER !^http://.*\.ask\.com/.*$ [NC]
# Autorisé à partir de la recherche de Gigablast
RewriteCond %HTTP_REFERER !^http://.*\.beta\.gigablast\.com/.*$ [NC]
# Autorisé à partir de la recherche de Picsearch
RewriteCond %HTTP_REFERER !^http://.*\.picsearch\..*/.*$ [NC]
# Redirection vers le fichier nohotlink en fonction du type de fichier
RewriteRule \.(jpe ?g|gif|bmp|png|mpe ?g|avi|wmv)$ http://www.vplfan.com/img/nohotlink.$1 [NC,R,L]