ITeye博客

令人郁闷的lighhtd和ip限制

xmlspy · 2007-02-26 11:00 · 操作系统 · Markdown

使用lighttpd加ip限制:

$HTTP !~ "222.33.0.0/16|61.236.0.0/16|61.236.32.0/20|61.237.11.0/24|61.232.162.0/24|61.235.240.0/24|221.200.0.0/16|211.98.81.0/24|220.201.62.93" { url.access-deny = ("") }

222.33.36.58无法访问网站了 :( 难道这个ip不在上面的段里面?

大家谁有这方面的经验共享一下,都郁闷死了

评论(3)

  1. #3 楼 · xmlspy · 2007-05-10 14:03

    解决方法:

    $HTTP["host"] == "www.xxxx.cn" {
    
       $HTTP["remoteip"] != "124.95.187.117" {
        $HTTP["remoteip"] != "221.221.223.115" {
          $HTTP["remoteip"] != "221.201.149.26" {
            $HTTP["remoteip"] != "220.201.62.0/18" {
              $HTTP["remoteip"] != "60.16.231.67" {
                $HTTP["remoteip"] != "61.237.242.178/29" {
                  $HTTP["remoteip"] != "221.200.0.0/16" {
                    $HTTP["remoteip"] != "222.33.0.0/18" {
                      $HTTP["remoteip"] != "61.236.0.0/19" {
                        $HTTP["remoteip"] != "61.236.32.0/20" {
                          $HTTP["remoteip"] != "61.237.11.0/24" {
                            $HTTP["remoteip"] != "61.232.162.0/24" {
                              $HTTP["remoteip"] != "61.235.240.0/24" {
                                $HTTP["remoteip"] != "211.98.81.0/24" {
                                  url.access-deny = ("")
                                }
                              }
                            }
                          } 
                        }   
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
    
  2. #2 楼 · bulrush · 2007-05-08 19:37

    怎么解决的,说一下

  3. #1 楼 · xmlspy · 2007-03-04 01:56

    kao,在这里问问题从来就没有人回到过,

    问题还是直接解决了

评论功能维护中,当前仅展示历史评论。