Forum Discussion

Albert__Tase_70's avatar
Albert__Tase_70
Icon for Nimbostratus rankNimbostratus
May 17, 2007

need help converting the following irule statements from 4.x to 9.x

else if (client_addr == 121.233.6.98 netmask 255.255.255.0) {

 

discard

 

}

 

else if (client_addr == 121.34.187.238 netmask 255.255.255.0) {

 

discard

 

}

 

else if (client_addr == 121.233.26.27 netmask 255.255.255.0) {

 

discard

 

}

 

else if (http_header("NPG_SRC_ADDR") contains "137.111.7.13") {

 

discard

 

}

 

else if (http_host contains "clickingagent.com") {

 

discard

 

}

 

else if (http_host contains "content.globalinteractive.com") {

 

discard

 

}

 

else if (http_host contains "content.iconadserver.com") {

 

discard

 

}

 

else if (http_host contains "network.realmedia.com") {

 

discard

 

}

 

else if (http_host contains "ad.yieldmanager.com") {

 

discard

 

}

 

else if (http_host contains "ad.iconadserver.com") {

 

discard

 

}

 

else if (http_header("NPG_SRC_ADDR") contains "81.199.153.19") {

 

discard

 

}

 

else if (http_header("NPG_SRC_ADDR") contains "218.1.116.115") {

 

discard

 

}

 

else if (http_header("NPG_SRC_ADDR") contains "219.217.46.72") {

 

discard

 

}

 

else if (client_addr == 63.215.124.77 netmask 255.255.255.0) {

 

use pool test

 

 

else if (http_header("User-Agent") contains "Google" or http_header("User-Agent") contains "googlebot" or http_header("User-Agent") contains "Ask" or http_header("User-Agent") contains "msnbot" or http_header("User-Agent") contains "yahoo" or http_header("User-Agent") contains "YahooSeeker" or http_header("User-Agent") contains "Crawler") {

 

discard

 

 

 

No RepliesBe the first to reply