preventing hotlinking of images


preventing hotlinking of images

25.12.2003, 03:40 · Martin · Permalink

here's a short way to do it in .htaccess:

# block hotlinking of images
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://traumwind.de/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]

(Important: this here simply blocks the request, not bothering to replace it with another pic. That would cost bandwidth too...)

ähnliche Einträge:


alles Bild, Text und Tonmaterial ist © Martin Spernau, Verwendung und Reproduktion erfordert die Zustimmung des Authors

Martin Spernau
© 1994-2026


amazon.de Wunschliste

Facebook me!
Google+

powered by Traumtank