Lighttpd 图片和视频等文件的防盗链处理

  用过Apache的朋友都知道mod_rewrite可以用来进行处理防盗链,Lighttpd也有同样的功能,而且总的来说,lighttpd.conf配置文件比httpd.conf更简单明了。 原来一直使用Apache来处理防盗链,今天修改了服务器上Lighttpd的配置,直接实现了防盗链,下面是防盗链部分的代码。

$HTTP["referer"] !~ "^($|http://.*\.(toplee\.com|8zone\.cn))" {       
  $HTTP["url"] =~ "\.(jpg|jpeg|png|gif|rar|zip|mp3)$" {
    url.redirect = (".*"    => "")


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
10 Responses
  1. Steven.Dai says:


  2. Michael says:


    你说的情况不是很明确,首先你有没有分布式? 还是只是单机? 另外你提供的服务是直接在线播放吗?







  3. Steven.Dai says:


  4. 很久没来了,又更新了.

  5. 阿超 says:

    博主你好 我一直在网上找一些防止盗连的技术或者软件 看见了你的文章
    像看见了希望一样 我的网站上视频放在一个服务器上 页面放在一个服务器上
    应该如何处理盗连呢 我的服务器都是windows的 麻烦帮我想想办法可以么
    我在 这个网站上 看见类似我想要的 他的视频文件都是wmv格式和我的一样 他的是写了什么程序处理了 应该这个程序怎么实现 没点思路 望指教

  6. monface says:


  7. monface says:

    /usr/share/doc/lighttpd-1.4.20/lighttpd.conf 具体都不晓得应该是那个了

  8. Michael says:

    monface: 我vps的,路径如下
    /usr/share/doc/lighttpd-1.4.20/lighttpd.conf 具体都不晓得应该是那个了

    应该是 /etc/lighttpd/lighttpd.conf

  9. 小飞 says:

    这个是vi /etc/lighttpd/lighttpd.conf 吗?

  10. Ugg Sale UK says:

    There are some most important information in your article. If you have any more better articles, welcome to share with us.

  11. What’s up, after reading this amazing post i am
    too cheerful to share my experience here with colleagues.

  12. minecraft says:

    This post is actually a fastidious one it helps new the web people,
    who are wishing in favor of blogging.

  13. minecraft says:

    Link exchange is nothing else except it is simply placing the other person’s webpage
    link on your page at proper place and other person will also do
    same for you.

  14. minecraft says:

    I have been exploring for a little for any high quality articles or
    blog posts on this sort of area . Exploring in Yahoo I ultimately stumbled upon this site.

    Reading this information So i’m glad to convey that I’ve a very excellent uncanny feeling I found out just what I needed.

    I most definitely will make certain to do not put out of your
    mind this web site and provides it a look on a relentless basis.

  15. minecraft says:

    It’s difficult to find knowledgeable people about this topic, but you sound like you know what you’re talking about!

  16. minecraft says:

    Thank you for another wonderful article. Where else may
    anybody get that kind of info in such a perfect method of
    writing? I have a presentation subsequent week, and I am on the look for such information.

  17. Hi, Neat post. There is a problem along with your site in internet explorer, could check
    this? IE nonetheless is the marketplace chief and a big
    element of people will leave out your fantastic writing due to this problem.

  18. I believe that is one of the so much important information for me.
    And i am happy reading your article. But want to observation on few general things, The web site taste is perfect, the
    articles is in point of fact excellent : D. Excellent job, cheers

  19. Hello there, just became alert to your blog through Google,
    and found that it’s truly informative. I am going to watch out for brussels.
    I’ll appreciate if you continue this in future. A lot of people will
    be benefited from your writing. Cheers!

  20. What’s up friends, its fantastic post on the topic of cultureand completely
    explained, keep it up all the time.

  21. Greetings! I know this is somewhat off topic but
    I was wondering which blog platform are you using for this website?

    I’m getting sick and tired of WordPress because I’ve had issues
    with hackers and I’m looking at alternatives for another platform.
    I would be fantastic if you could point me in the direction of a good

  22. Coconut Oil says:

    Hi i am kavin, its my first occasion to commenting anyplace, when i read this
    post i thought i could also create comment due to this brilliant piece
    of writing.

  23. Hello there I am so grateful I found your site, I really found
    you by mistake, while I was looking on Google for something else, Anyhow
    I am here now and would just like to say thank
    you for a remarkable post and a all round interesting
    blog (I also love the theme/design), I don’t have time to read through it all at the moment but
    I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep
    up the awesome jo.

  24. Coconut Oil says:

    What’s up to all, the contents existing at this web site are in fact awesome for people knowledge, well,
    keep up the good work fellows.

  25. If some one wishes to be updated with latest technologies after that he must be go to see this web site and be up to date

  26. Hello there! I just would like to give you a big thumbs up for
    your excellent info you have got right here on this post. I am
    returning to your web site for more soon.

  27. I was extremely pleased to uncover this page.

    I want to to thank you for ones time due to this wonderful read!!
    I definitely savored every little bit of it and i also have you bookmarked to look at new
    information on your site.

  28. quest bars says:

    I do not even know how I finished up here, however I
    thought this submit was good. I do not know who you’re however definitely you are going to a well-known blogger if you aren’t already.

  29. Quest Bars says:

    It’s really very complex in this busy life to listen news on Television, thus
    I just use the web for that reason, and get the most recent information.

  30. Remarkable! Its in fact awesome post, I have
    got much clear idea on the topic of from this

  31. Sling TV says:

    What you published made a ton of sense. But, consider this, what if you were to write
    a awesome headline? I ain’t suggesting your content isn’t solid., but suppose you added a headline that grabbed people’s attention? I mean Lighttpd 图片和视频等文件的防盗链处理 | 李俊麟的平凡生活 is a
    little plain. You could peek at Yahoo’s home page and note how
    they create news headlines to get people to click. You might add a related
    video or a related pic or two to grab readers excited about
    everything’ve got to say. Just my opinion, it could
    bring your posts a little livelier.

  32. Sling TV says:

    I got this web site from my pal who shared with me concerning this web site and now this time I am
    visiting this web site and reading very informative articles here.

  33. Sling TV says:

    This paragraph will assist the internet users for creating new blog or even a blog from start to end.

  34. What’s up, always i used to check website posts here in the early hours in the daylight, since i like to gain knowledge of more and more.

  35. Wow, marvelous weblog layout! How long have you ever been blogging for?
    you made blogging look easy. The full glance of your website is excellent, as well
    as the content!

  36. minecraft says:

    Very nice article, just what I wanted to find.

  37. minecraft says:

    Everything is very open with a clear explanation of the issues.
    It was really informative. Your website is useful. Thank you for sharing!

  38. It’s remarkable to visit this website and reading the views of all mates on the topic of this article, while I am also keen of getting knowledge.

  39. Hello to all, the contents existing at this
    web site are in fact awesome for people knowledge, well, keep up the nice work fellows.

  40. minecraft says:

    Hey there! Quick question that’s entirely off topic.
    Do you know how to make your site mobile friendly?
    My website looks weird when browsing from my iphone4.
    I’m trying to find a template or plugin that might be
    able to correct this issue. If you have any recommendations, please share.

    Appreciate it!

  41. minecraft says:

    Hello, Neat post. There is a problem with your site in internet explorer, would test this?
    IE nonetheless is the marketplace leader and a huge portion of folks will miss your magnificent writing because
    of this problem.

  42. When some one searches for his essential thing, so he/she desires to be available
    that in detail, so that thing is maintained over here.

  43. minecraft says:

    I’ve been browsing online more than 3 hours as of late, but I never found
    any interesting article like yours. It’s
    beautiful value enough for me. In my view, if all webmasters and bloggers made excellent content as you
    probably did, the net will be much more useful than ever before.

  44. minecraft says:

    you are really a just right webmaster. The site loading pace is incredible.
    It seems that you’re doing any unique trick. Moreover, The contents are masterwork.
    you have performed a wonderful task in this matter!

  45. minecraft says:

    Hey there! I’ve been following your web site for some time now and finally got the courage to go ahead and give you a shout
    out from Austin Tx! Just wanted to say keep up the great work!

  46. minecraft says:

    With havin so much written content do you ever run into any problems
    of plagorism or copyright violation? My site has a lot of completely
    unique content I’ve either authored myself or outsourced but it appears a lot
    of it is popping it up all over the internet without my authorization. Do you know any methods to
    help protect against content from being stolen? I’d genuinely appreciate it.

  47. I have read a few excellent stuff here. Certainly price bookmarking for revisiting.
    I wonder how so much attempt you set to make this type
    of wonderful informative website.

  48. Extremely user friendly website. Huge info offered on couple of gos

  49. Link exchange is nothing else but it is only placing
    the other person’s website link on your page at proper place and other
    person will also do similar in support of you.

  50. g says:

    Hello, after reading this remarkable post i am as well delighted to share my know-how here with colleagues.

  51. g says:

    Hi my loved one! I wish to say that this post is awesome, great written and include approximately all significant infos.
    I’d like to peer extra posts like this .

  52. Hi friends, good paragraph and nice urging commented
    at this place, I am genuinely enjoying by these.

  53. Hmm is anyone else experiencing problems with the pictures on this blog loading?
    I’m trying to determine if its a problem on my end or if it’s the blog.
    Any responses would be greatly appreciated.

  54. Great post. I’m facing a few of these issues as well..

  55. This is my first time visit at here and i am actually happy to read everthing at one

  56. What’s Going down i’m new to this, I stumbled upon this I have
    found It absolutely helpful and it has helped me out loads.
    I am hoping to give a contribution & assist different customers like its aided me.
    Great job.

  57. Simply want to say your article is as amazing. The clearness for your submit
    is simply excellent and i can assume you are knowledgeable in this
    subject. Well along with your permission let me to snatch your
    feed to stay up to date with impending post.
    Thank you one million and please keep up the enjoyable work.

  58. I’m gone to say to my little brother, that he should also pay a quick visit this web site on regular basis to take updated from most recent information.

  59. Hello, I log on to your blog daily. Your story-telling
    style is awesome, keep it up!

  60. Hello, all is going sound here and ofcourse every one is sharing facts, that’s in fact fine, keep up writing.

  61. download says:

    Have you ever thought about adding a little bit more than just your articles?
    I mean, what you say is fundamental and all. But just imagine if you added
    some great graphics or videos to give your posts more,
    “pop”! Your content is excellent but with images and clips, this site could certainly be one of the very best in its niche.
    Wonderful blog!

  62. This is my first time pay a visit at here and i am in fact
    happy to read everthing at single place.

  63. dating site says:

    After looking into a few of the articles on your blog, I
    seriously like your technique of writing a blog. I added
    it to my bookmark website list and will be checking back
    in the near future. Please check out my web site too and let me know how you

  64. Charlespek says:

    Lovely data, Thanks a lot.
    mexican pharmacy online
    canadian pharmaceuticals online
    canadian pharmacy viagra brand
    drugs from canada with prescription
    legitimate online pharmacies –

    online canadian pharmacy kl 36d6442

  65. These are in fact fantastic ideas in regarding blogging.
    You have touched some fastidious factors here. Any way keep up wrinting.

  66. Hi there, You have done an incredible job. I’ll definitely digg it and personally recommend to my friends.
    I’m confident they’ll be benefited from this website.

  67. JosephTiple says:

    You explained it effectively.
    health canada drug database
    canadian pharmacy online
    buy drugs online
    canada rx
    rx pharmacy –

    drugstore online Jen 36d6442

  68. Do you mind if I quote a few of your articles as long as I provide
    credit and sources back to your site? My website is in the exact same niche as yours
    and my visitors would truly benefit from
    some of the information you present here. Please let me know if
    this ok with you. Regards!

  69. I know this if off topic but I’m looking into starting my own weblog and was curious what all is required to get set
    up? I’m assuming having a blog like yours would cost a
    pretty penny? I’m not very web savvy so I’m not 100% sure.

    Any tips or advice would be greatly appreciated. Many thanks

  70. I think this is one of the most important info for me.

    And i am glad reading your article. But should remark on some general things, The site
    style is ideal, the articles is really great :
    D. Good job, cheers

  71. Hi there friends, good article and nice urging commented at this place, I am
    genuinely enjoying by these.

  72. If some one desires expert view about blogging then i propose him/her to pay a visit this weblog, Keep up the nice job.

  73. We are a group of volunteers and starting a brand
    new scheme in our community. Your site offered us with useful info to work on. You’ve done an impressive activity and
    our whole neighborhood will likely be thankful to you.

  74. I do not know whether it’s just me or if perhaps everybody else experiencing issues with your site.
    It looks like some of the written text on your posts are running off the screen. Can somebody else please provide feedback and
    let me know if this is happening to them too? This might be a problem with my browser because I’ve had this
    happen before. Kudos

  75. Hi there, just wanted to tell you, I liked this article.
    It was inspiring. Keep on posting!

  76. CharlieVem says:

    Superb information, Thanks a lot!

    what time do you take cialis
    cialis efectos en jovenes
    recommended dose for cialis

  77. Situs Qq says:

    My spouse and I stumbled over here coming from a different website and thought I may as
    well check things out. I like what I see so now
    i’m following you. Look forward to looking at your web page for a
    second time.

  78. Hi to all, because I am really keen of reading this weblog’s post to be updated daily.
    It consists of nice data.

  79. I am really loving the theme/design of your blog. Do you ever run into any internet browser compatibility issues?

    A couple of my blog audience have complained about my blog
    not working correctly in Explorer but looks great in Safari.
    Do you have any solutions to help fix this problem?

  80. What’s Happening i am new to this, I stumbled upon this
    I have discovered It positively helpful and it has aided me out loads.

    I am hoping to give a contribution & help other customers like its aided me.
    Great job.

  81. I have been exploring for a little bit for any high quality articles or blog posts on this sort of space .
    Exploring in Yahoo I finally stumbled upon this site.

    Reading this info So i’m glad to show that I have an incredibly good uncanny
    feeling I discovered exactly what I needed. I so much indubitably will make
    sure to do not fail to remember this site and give it
    a glance regularly.

  82. says:

    Please let me know if you’re looking for a article writer for
    your blog. You have some really great posts and I believe I would be a
    good asset. If you ever want to take some of the load
    off, I’d absolutely love to write some articles for your blog in exchange
    for a link back to mine. Please blast me an email if interested.
    Thank you!

  83. What’s Taking place i’m new to this, I stumbled upon this I have discovered
    It absolutely helpful and it has helped me out
    loads. I hope to give a contribution & assist different users like its aided me.
    Great job.

  84. ps4 games says:

    Hello to every one, it’s actually a pleasant for
    me to go to see this site, it contains valuable Information.

  85. It’s a pity you don’t have a donate button! I’d definitely donate
    to this excellent blog! I suppose for now i’ll settle
    for bookmarking and adding your RSS feed to my Google account.

    I look forward to new updates and will talk about this website with my Facebook group.
    Talk soon!

  86. WOW just what I was looking for. Came here by searching for
    quest bars cheap

  87. ps4 games says:

    I visited multiple web sites however the audio feature
    for audio songs present at this web page is truly marvelous.

  88. ps4 games says:

    Hello there! This is my first visit to your blog!
    We are a group of volunteers and starting a new project in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done a extraordinary job!

Leave a Reply

Your email address will not be published. Required fields are marked *

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image