Previous hotlinking post provided a solution for Apache servers only. Here is one for Lighttpd.
$HTTP["referer"] !~ "^($|http://.*\.(domain1\.com|domain2\.com)" {
url.access-deny = ( ".jpg", ".jpeg", ".png", ".wmv", ".avi", ".mpeg", ".mpg", ".gif" )
}
Replace domain1.com and domain2.com with domains to be allowed as referrers. Modify the list of extension to deny access to.
Popularity: 6% [?]






{ 2 comments… read them below or add one }
i get this warning:
WARNING: unknown config-key: url.access-deny (ignored)
what could be the reason?
Raman: make sure your server.modules includes mod_access