View Single Post

  #1 (permalink)  
Old 05-19-2008, 01:12 PM
Lamba Lamba is offline
Junior Member
User
 
Join Date: May 2008
My distro: CENTOS
Posts: 3
Rep Power: 0
Lamba is on a distinguished road
Default Lighttpd Wildcard based hotlink prevention

Quote:
Originally Posted by rockdalinux View Post
Try this
Code:
#### stop image hijacking (anti-hotlinking)
$HTTP["referer"] =~ ".*BADDOMIN\.com.*" {
      url.access-deny = ( "jpg", "png", "js", "jpeg", "gif" )
}
Replace BADDOMIN with actual domain i.e. block hotlinking domain
Would you be able to add a wild card to block all domains and then add a rule to allow just your site?
Reply With Quote