返回顶部

[文摘] 防盗防风格伪静态的.htaccess写法

[复制链接]
1234 显示全部楼层 发表于 2008-3-29 09:06:02 |阅读模式 打印 上一主题 下一主题
防盗防风格伪静态的.htaccess写法

  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteRule ^archiver/([a-z0-9\-]+\.html)$ $1/archiver/index.php?$2
  4. RewriteRule ^index.html$ $1/index.php?sid=$2
  5. RewriteRule ^(.*)digest.html$ $1/digest.php
  6. RewriteRule ^(.*)thread-([0-9]+)\.html$ $1/viewthread.php?tid=$2
  7. RewriteRule ^(.*)meyu-([0-9]+)\.html$ $1/index.php?gid=$2
  8. RewriteRule ^(.*)forum-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2
  9. RewriteRule ^(.*)forum-([0-9]+)\.html$ $1/forumdisplay.php?fid=$fup[fid]
  10. RewriteRule ^(.*)thread-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&page=$3&fpage=$4
  11. RewriteRule ^(.*)forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
  12. RewriteRule ^(.*)forum-([0-9]+)-([a-z0-9\-]+)\.html$ $1/forumdisplay.php?fid=$2&filter=$3
  13. Redirect /templates/default/index.htm http://web.meyu.net
  14. Redirect /templates/default/viewthread.htm http://web.meyu.net
  15. Redirect /templates/default/footer.htm http://web.meyu.net
  16. Redirect /templates/default/header.htm http://web.meyu.net
  17. Redirect /templates/default/forumdisplay.htm http://web.meyu.net
  18. Redirect /templates/default/viewpro.htm http://web.meyu.net
  19. Redirect /templates/default/viewthread_pay.htm http://web.meyu.net
  20. RewriteCond %{HTTP_REFERER} !^http://meyu.net.*$           [NC]
  21. RewriteCond %{HTTP_REFERER} !^http://meyu.com.cn.*$           [NC]
  22. RewriteCond %{HTTP_REFERER} !^http://web.meyu.com.cn.*$           [NC]
  23. RewriteCond %{HTTP_REFERER} !^http://www.meyu.net.*$       [NC]
  24. RewriteCond %{HTTP_REFERER} !^http://web.meyu.net.*$       [NC]
  25. RewriteCond %{HTTP_REFERER} !^http://www.mecee.com.*$       [NC]
  26. RewriteCond %{HTTP_REFERER} !^http://www.mecca.com.ru.*$       [NC]
  27. RewriteCond %{HTTP_REFERER} !^http://www.rssol.net.*$       [NC]
  28. RewriteCond %{HTTP_REFERER} !^http://www.discuz.net.*$       [NC]
  29. RewriteCond %{HTTP_REFERER} !^http://mecca.com.ru.*$       [NC]
  30. RewriteCond %{HTTP_REFERER} !^http://utf.com.cn.*$       [NC]
  31. RewriteCond %{HTTP_REFERER} !^http://mecee.com.*$       [NC]
  32. RewriteCond %{HTTP_REFERER} !^http://www.phpwind.net.*$       [NC]
  33. RewriteCond %{HTTP_REFERER} !^http://www.tattertools.cn.*$       [NC]
  34. RewriteCond %{HTTP_REFERER} !^http://tattertools.cn.*$       [NC]
  35. RewriteRule .*[^logo]\.(gif|GIF|jpg|JPG|mpg|MPG|mpeg|MPEG|wmv|WMV|rm|RM|zip|ZIP|rar|RAR|js|JS|css|CSS|txt|TXT)$ http://web.meyu.net [R,NC]
  36. RewriteCond %{HTTP_USER_AGENT} ^.*WebZIP.*$ [OR]
  37. RewriteCond %{HTTP_USER_AGENT} ^.*Iria.*$ [OR]
  38. RewriteCond %{HTTP_USER_AGENT} ^.*Stripper.*$ [OR]
  39. RewriteCond %{HTTP_USER_AGENT} ^.*Offline.*$ [OR]
  40. RewriteCond %{HTTP_USER_AGENT} ^.*Copier.*$ [OR]
  41. RewriteCond %{HTTP_USER_AGENT} ^.*Crawler.*$ [OR]
  42. RewriteCond %{HTTP_USER_AGENT} ^.*Snagger.*$ [OR]
  43. RewriteCond %{HTTP_USER_AGENT} ^.*Teleport.*$ [OR]
  44. RewriteCond %{HTTP_USER_AGENT} ^.*Reaper.*$ [OR]
  45. RewriteCond %{HTTP_USER_AGENT} ^.*Wget.*$ [OR]
  46. RewriteCond %{HTTP_USER_AGENT} ^.*Grabber.*$ [OR]
  47. RewriteCond %{HTTP_USER_AGENT} ^.*Sucker.*$ [OR]
  48. RewriteCond %{HTTP_USER_AGENT} ^.*Downloader.*$ [OR]
  49. RewriteCond %{HTTP_USER_AGENT} ^.*Siphon.*$ [OR]
  50. RewriteCond %{HTTP_USER_AGENT} ^.*Collector.*$ [OR]
  51. RewriteCond %{HTTP_USER_AGENT} ^.*Mag-Net.*$ [OR]
  52. RewriteCond %{HTTP_USER_AGENT} ^.*Widow.*$ [OR]
  53. RewriteCond %{HTTP_USER_AGENT} ^.*Pockey.*$ [OR]
  54. RewriteCond %{HTTP_USER_AGENT} ^.*DA.*$ [OR]
  55. RewriteCond %{HTTP_USER_AGENT} ^.*Snake.*$ [OR]
  56. RewriteCond %{HTTP_USER_AGENT} ^.*BackWeb.*$ [OR]
  57. RewriteCond %{HTTP_USER_AGENT} ^.*gotit.*$ [OR]
  58. RewriteCond %{HTTP_USER_AGENT} ^.*Vacuum.*$ [OR]
  59. RewriteCond %{HTTP_USER_AGENT} ^.*SmartDownload.*$ [OR]
  60. RewriteCond %{HTTP_USER_AGENT} ^.*Pump.*$ [OR]
  61. RewriteCond %{HTTP_USER_AGENT} ^.*HMView.*$ [OR]
  62. RewriteCond %{HTTP_USER_AGENT} ^.*Ninja.*$ [OR]
  63. RewriteCond %{HTTP_USER_AGENT} ^.*HTTrack.*$ [OR]
  64. RewriteCond %{HTTP_USER_AGENT} ^.*JOC.*$ [OR]
  65. RewriteCond %{HTTP_USER_AGENT} ^.*likse.*$ [OR]
  66. RewriteCond %{HTTP_USER_AGENT} ^.*Memo.*$ [OR]
  67. RewriteCond %{HTTP_USER_AGENT} ^.*pcBrowser.*$ [OR]
  68. RewriteCond %{HTTP_USER_AGENT} ^.*SuperBot.*$ [OR]
  69. RewriteCond %{HTTP_USER_AGENT} ^.*leech.*$ [OR]
  70. RewriteCond %{HTTP_USER_AGENT} ^.*Mirror.*$ [OR]
  71. RewriteCond %{HTTP_USER_AGENT} ^.*Recorder.*$ [OR]
  72. RewriteCond %{HTTP_USER_AGENT} ^.*GrabNet.*$ [OR]
  73. RewriteCond %{HTTP_USER_AGENT} ^.*Likse.*$ [OR]
  74. RewriteCond %{HTTP_USER_AGENT} ^.*Navroad.*$ [OR]
  75. RewriteCond %{HTTP_USER_AGENT} ^.*attach.*$ [OR]
  76. RewriteCond %{HTTP_USER_AGENT} ^.*Magnet.*$ [OR]
  77. RewriteCond %{HTTP_USER_AGENT} ^.*Surfbot.*$ [OR]
  78. RewriteCond %{HTTP_USER_AGENT} ^.*Bandit.*$ [OR]
  79. RewriteCond %{HTTP_USER_AGENT} ^.*Ants.*$ [OR]
  80. RewriteCond %{HTTP_USER_AGENT} ^.*Buddy.*$ [OR]
  81. RewriteCond %{HTTP_USER_AGENT} ^.*Whacker.*$ [OR]
  82. RewriteCond %{HTTP_USER_AGENT} ^.*DISCo\Pump.*$ [OR]
  83. RewriteCond %{HTTP_USER_AGENT} ^.*Drip.*$ [OR]
  84. RewriteCond %{HTTP_USER_AGENT} ^.*EirGrabber.*$ [OR]
  85. RewriteCond %{HTTP_USER_AGENT} ^.*ExtractorPro.*$ [OR]
  86. RewriteCond %{HTTP_USER_AGENT} ^.*EyeNetIE.*$ [OR]
  87. RewriteCond %{HTTP_USER_AGENT} ^.*FlashGet.*$ [OR]
  88. RewriteCond %{HTTP_USER_AGENT} ^.*GetRight.*$ [OR]
  89. RewriteCond %{HTTP_USER_AGENT} ^.*Gets.*$ [OR]
  90. RewriteCond %{HTTP_USER_AGENT} ^.*Go!Zilla.*$ [OR]
  91. RewriteCond %{HTTP_USER_AGENT} ^.*Go-Ahead-Got-It.*$ [OR]
  92. RewriteCond %{HTTP_USER_AGENT} ^.*Grafula.*$ [OR]
  93. RewriteCond %{HTTP_USER_AGENT} ^.*IBrowse.*$ [OR]
  94. RewriteCond %{HTTP_USER_AGENT} ^.*InterGET.*$ [OR]
  95. RewriteCond %{HTTP_USER_AGENT} ^.*Internet\Ninja.*$ [OR]
  96. RewriteCond %{HTTP_USER_AGENT} ^.*JetCar.*$ [OR]
  97. RewriteCond %{HTTP_USER_AGENT} ^.*JustView.*$ [OR]
  98. RewriteCond %{HTTP_USER_AGENT} ^.*MIDown\tool.*$ [OR]
  99. RewriteCond %{HTTP_USER_AGENT} ^.*Mister\PiX.*$ [OR]
  100. RewriteCond %{HTTP_USER_AGENT} ^.*NearSite.*$ [OR]
  101. RewriteCond %{HTTP_USER_AGENT} ^.*NetSpider.*$ [OR]
  102. RewriteCond %{HTTP_USER_AGENT} ^.*Offline\Explorer.*$ [OR]
  103. RewriteCond %{HTTP_USER_AGENT} ^.*PageGrabber.*$ [OR]
  104. RewriteCond %{HTTP_USER_AGENT} ^.*Papa\Foto.*$ [OR]
  105. RewriteCond %{HTTP_USER_AGENT} ^.*Pockey.*$ [OR]
  106. RewriteCond %{HTTP_USER_AGENT} ^.*ReGet.*$ [OR]
  107. RewriteCond %{HTTP_USER_AGENT} ^.*SpaceBison.*$ [OR]
  108. RewriteCond %{HTTP_USER_AGENT} ^.*SuperHTTP.*$ [OR]
  109. RewriteCond %{HTTP_USER_AGENT} ^.*Teleport.*$ [OR]
  110. RewriteCond %{HTTP_USER_AGENT} ^.*WebAuto.*$ [OR]
  111. RewriteCond %{HTTP_USER_AGENT} ^.*WebCopier.*$ [OR]
  112. RewriteCond %{HTTP_USER_AGENT} ^.*WebFetch.*$ [OR]
  113. RewriteCond %{HTTP_USER_AGENT} ^.*WebReaper.*$ [OR]
  114. RewriteCond %{HTTP_USER_AGENT} ^.*WebSauger.*$ [OR]
  115. RewriteCond %{HTTP_USER_AGENT} ^.*WebStripper.*$ [OR]
  116. RewriteCond %{HTTP_USER_AGENT} ^.*WebWhacker.*$ [OR]
  117. RewriteCond %{HTTP_USER_AGENT} ^.*WebZIP.*$ [OR]
  118. RewriteCond %{HTTP_USER_AGENT} ^.*Web\Image\Collector.*$ [OR]
  119. RewriteCond %{HTTP_USER_AGENT} ^.*Web\Sucker.*$ [OR]
  120. RewriteCond %{HTTP_USER_AGENT} ^.*Webster.*$ [OR]
  121. RewriteCond %{HTTP_USER_AGENT} ^.*Wget.*$ [OR]
  122. RewriteCond %{HTTP_USER_AGENT} ^.*eCatch.*$ [OR]
  123. RewriteCond %{HTTP_USER_AGENT} ^.*lftp.*$ [OR]
  124. RewriteCond %{HTTP_USER_AGENT} ^.*tAkeOut.*$ [OR]
  125. RewriteCond %{HTTP_USER_AGENT} ^.*FileHound.*$
  126. #ErrorDocument 401 /401.shtml
  127. #ErrorDocument 403 /404.shtml
  128. #ErrorDocument 404 /404.shtml
  129. ErrorDocument 500 /index.php
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

纳速健身网成立于2006年8月,是国内优秀健身运动网站,现拥浏览人数超30万。网站是集养生、武术、太极拳和健身气功等多种健身项目于一体的多功能交流平台。平台提供大量优质的教学视频、伴奏音乐(太极拳晨练音乐,广场舞音乐,健身气功音乐)、图文教程、运动科普和经验分享,为健身爱好者提供完善的运动指导平台。
  • 纳速QQ群乙:151815303
  • 纳速QQ群丙:79104490
  • 微信交流群:微信好友搜索【nasuwang】加小纳微信进群交流健身知识,备注【纳速】
  •                     或者扫描页面底部右侧二维码添加小纳微信>>>
  • 微信公众号

  • 微信群客服交流

  • Copyright © 2006-2021, 纳速健身网. | | 辽ICP备13002388号-1 辽公安网备21050202000005号公安网备号 纳速武术-乙 QQ