It'll be in .htaccess in the web root directory. Try this:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?vgmaps\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/noleech.png [L]
Allowing blank referers will allow:
- people with image referers turned off in Firefox
- people with a proxy that removes the referer (often as a "privacy" option)
- people who copy and paste a direct URL to an image into their address bar
- people who try really hard to rip you off by having their linking page have ".vgmaps.com" in the URL (eg.
http://www.mysite.com/imrippingoff.vgmaps.com/somepage.html)
and will block:
- people with regular browser setups who click on a link from another website