This is GeoIP iRule ref. The code below will redirect any clients from China to a dedicated .cn web site. Modify as needed. You will need to use 2-letter country code as identifier. You may look up the codes for each country here: http://www.nationsonline.org/oneworld/country_code_list.htm (ISO Alpha2 Code)
when HTTP_REQUEST {
if { [whereis [IP::client_addr] country] eq "CN" } {
HTTP::respond 302 Location "https://www.site.cn" Connection Close
event disable
}
}
Requires a HTTP profile attached to Virtual Server.
Warning: Written in notepad and untested.