Search the blog

Display an image when people try to steal your bandwidth.

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

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

# keep adding domains as you like

RewriteRule .*\.(gif|jpg|jpeg|bmp)$ [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.