LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-07-2011, 01:15 AM   #1
xiutuo
Member
 
Registered: Mar 2008
Posts: 55

Rep: Reputation: 15
Lighttpd anti-hotlinking for images problem.


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/notallow.bmp")
        }
}
}
this configure onle effect to test1.com. no effect to (newtest3.cn,800keke.net,800org.com.cn

i still dont know why..
 
Old 01-10-2011, 12:40 AM   #2
xiutuo
Member
 
Registered: Mar 2008
Posts: 55

Original Poster
Rep: Reputation: 15
any one any suggestion will help me out
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lighttpd problem after installation could not get web pages tkmsr Linux - Server 4 08-09-2010 06:28 AM
Problem installing lighttpd bambam43410 Linux - Software 1 08-06-2009 12:37 PM
evhost in lighttpd problem cybernet2u Linux - Server 0 08-06-2009 11:41 AM
Apache - no hotlinking shorto Linux - Server 1 05-02-2008 06:43 PM
.htaccess preventing hotlinking <db> Programming 0 05-03-2006 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration