diff options
-rw-r--r-- | apache.txr | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -4,16 +4,14 @@ @ (all) @ip - - [@(n day)/@(m month)/@(n year):@(n hour):@(n min):@(n sec) @nil] "@method @uri @proto/@ver" @err @bytes "@ref" "@agent" @ (and) -@ (cases) -@ (require (search-regex agent #/Googlebot|bingbot|baidu/)) +@ (if (search-regex agent #/Googlebot|bingbot|baidu/)) @ (bind points nil) -@ (or) -@ (require (search-regex agent #/Ezoom|[Bb][Oo][Tt]|[Ss]pider|[Cc]rawler|[Yy]andex|coccoc/)) +@ (elif (search-regex agent + #/Ezoom|[Bb][Oo][Tt]|[Ss]pider|[Cc]rawler|[Yy]andex|coccoc/)) @ (bind points 9) -@ (or) -@ (require (not (memqual err '("200" "301" "304")))) +@ (elif (not (memqual err '("200" "301" "304")))) @ (bind points 1) -@ (or) +@ (else) @ (bind points 0) @ (end) @ (end) |