Search the blog

Display an image when people try to steal your bandwidth.

RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain1.com(/)?.*$     [NC]

RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain2.com(/)?.*$     [NC]

# keep adding domains as you like

RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/img/stopstealing.jpe [R,NC]

# not the above image has .jpe extension not .jpg

# this prevents recursion

Tim Bennett is a Leeds-based web designer from Yorkshire. He has a First Class Honours degree in Computing from Leeds Metropolitan University and currently runs his own one-man web design company, Texelate.