4

Lighttpd anti-hotlinking for images problem.

view full story
linux-howto

http://www.linuxquestions.org – Lighttpd anti-hotlinking for images,i just want these domain to link my imgages (test1.com,newtest2.cn,800keke.net,800org.com.cn),the other site will be redirect to http://img.test1.com/images/notallow.bmp. lighttp configuration : Code: $HTTP["referer"] !~ "^($|http://.*\.(test1\.com|newtest2\.cn|800keke\.net|800org\.com\.cn))"  {         $HTTP["url"] =~ "\.(jpg|jpeg|png|gif)$" {                 url.redirect = (".*"    => "http://img.test1.com/images (HowTos)