Home > Website > Thou shalt not steal

Thou shalt not steal

August 25th, 2008
Forbidden

Forbidden

Forbidden

Forbidden

Image Hotlinking (also known as leeching, or inline linking) is the practice of stealing bandwidth from other websites, by linking to an image stored on another server. By doing this, when a person visits a website with hotlinked images, the images must be downloaded from the other server, costing that server bandwidth, instead of the server being visited. Here is how you can prevent this with your own images. Open .htaccess and add the following (edit to fit your server and image ofcourse).

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !nightspirit\.nl [NC]
RewriteRule \.(jpg|jpeg|png|gif|bmp)$ /forbid.png [L,NC]

Categories: Website Tags:
Comments are closed.