lighttpd : 불법 이미지 링크 차단 Lighttpd:Lighty

출처 : http://www.cyberciti.biz/tips/lighttpd-stop-bandwidth-thief-image-hotlinking.html

[code]#### stop image hijacking (anti-hotlinking)
$HTTP["referer"] =~ ".*BADDOMIN\.com.*" {
        url.access-deny = ( "" )
#      url.access-deny = ( "jpg", "png", "js", "jpeg", "gif" )
}[/code]

또는 다음과 같이 인증을 거치게 할 수도 있다.

[code]$HTTP["referer"] =~ ".*BADDOMIN\.com.*" {
 auth.require = ( "/" =>
                   (        "method"  => "digest",
                            "realm"   => "Authorized users only",
                            "require" => "valid-user"
                   )
                 )
}[/code]













이 글과 관련된 글
  1. [2010/01/09] [올해도 에바와 함께^^] '에반게리온 신극장판 2010 캘린더(링크) by Soma (0)
  2. [2010/07/23] vs c++에서 중복된 정의로 링크오류 by 운학귀신 (76)
  3. [2010/07/09] 요약 책갈피 애드온 (XE 애드온) by misol (305)
  4. [2010/07/06] jQuery prettyPhoto by 고집불통 때쟁이 (175)
  5. [2008/12/14] 심플한 바탕화면 배경용 패턴 이미지 by HE (117) *4
TAG

Leave Comments


profile토트에서 다시 이어갑니다. ^^ 


T-NAVI