Httpd.ini之Discuz!7.0(包含防盗链)

2009年5月1日 | 标签: ,
  1. [ISAPI_Rewrite]
  2.  
  3. # 3600 = 1 hour
  4. CacheClockRate 3600
  5.  
  6. RepeatLimit 32
  7.  
  8. # Protect httpd.ini and httpd.parse.errors files
  9. # from accessing through HTTP
  10.  
  11. RewriteRule ^(.*)/archiver/((fid|tid)-[0-9]+\.html)\?*(.*)$
  12.  
  13. $1/archiver/index\.php\?$2&$4
  14. RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$
  15.  
  16. $1/forumdisplay\.php\?fid=$2&page=$3&$4
  17. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$
  18.  
  19. $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
  20. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$
  21.  
  22. $1/space\.php\?$2=$3&$4
  23. RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3
  24. # 防盗链 #
  25. RewriteCond Host: (.+)
  26.  
  27. RewriteCond Referer: (?!http://(?:83sun\.com|(.*)
  28.  
  29. \.83sun\.com|baidu\.com|(.*)\.baidu\.com|google\.com|
  30.  
  31. (.*).\google.com)).*
  32.  
  33. RewriteRule .*\.
  34.  
  35. (?:jpg|gif|rm|rmvb|wmv|mp3|wav|avi|swf|pdf|zip|rar|) /block.gif [I,O]

不知道写的对不对,请高手指点.在发点其他程序的就更好了.

  1. 2009年5月1日22:02

    还有人用 Discuz!吗?俺用 PHPWind 三年了。^_^

  2. 2009年5月1日23:40

    Discuz现在确实不如Phpwind(个人见解,勿批!)

  3. 2009年5月1日23:49

    戏子 :Discuz现在确实不如Phpwind(个人见解,勿批!)

    在处理数据能力上,DZ已经完蛋了,测试负载能力还要看xx站,经过测试,pw优于dz.
    我也同意你的说法.

  4. 2009年5月1日23:49

    GFWed.com :还有人用 Discuz!吗?俺用 PHPWind 三年了。^_^

    没那么久吧?

  5. 2009年5月9日20:47

    补充一下,这个不能复制直接用.

本文的评论功能被关闭了.