Skip to content

Instantly share code, notes, and snippets.

@SChen1024
Created Feb 29, 2020
Embed
What would you like to do?
将学校图书馆数据库访问 pac 加入到 ssr 的代理 pac 中
// 默认使用的是 js 的语法
// 判断网站, 然后选择 代理位置
var direct = "DIRECT;";
var wall_proxy = function(){ return "__PROXY__"; };
var wall_v6_proxy = function(){ return "__PROXY__"; };
var ip_proxy = function(){ return wall_proxy(); };
var ipv6_proxy = function(){ return wall_v6_proxy(); };
var nowall_proxy = function(){ return direct; };
/*
* Copyright (C) 2014 breakwa11
* https://github.com/breakwa11/gfw_whitelist
*/
var subnetIpRangeList = [
0,1,
167772160,184549376, //10.0.0.0/8
2886729728,2887778304, //172.16.0.0/12
3232235520,3232301056, //192.168.0.0/16
2130706432,2130706688 //127.0.0.0/24
];
var hasOwnProperty = Object.hasOwnProperty;
function check_ipv4(host) {
var re_ipv4 = /^\d+\.\d+\.\d+\.\d+$/g;
if (re_ipv4.test(host)) {
return true;
}
}
function check_ipv6(host) {
var re_ipv6 = /^\[?([a-fA-F0-9]{0,4}\:){1,7}[a-fA-F0-9]{0,4}\]?$/g;
if (re_ipv6.test(host)) {
return true;
}
}
function check_ipv6_dns(dnsstr) {
var re_ipv6 = /([a-fA-F0-9]{0,4}\:){1,7}[a-fA-F0-9]{0,4}(%[0-9]+)?/g;
if (re_ipv6.test(dnsstr)) {
return true;
}
}
function convertAddress(ipchars) {
var bytes = ipchars.split('.');
var result = (bytes[0] << 24) |
(bytes[1] << 16) |
(bytes[2] << 8) |
(bytes[3]);
return result >>> 0;
}
function isInSubnetRange(ipRange, intIp) {
for ( var i = 0; i < 10; i += 2 ) {
if ( ipRange[i] <= intIp && intIp < ipRange[i+1] )
return true;
}
}
function getProxyFromIP(strIp) {
var intIp = convertAddress(strIp);
if ( isInSubnetRange(subnetIpRangeList, intIp) ) {
return direct;
}
return wall_proxy();
}
// 默认执行此函数 // 需要在这里 校内网
function FindProxyForURL(url, host) {
// 如果在校内网链接 数据库, 则直接连接
var whu_lib_proxy = "PROXY proxy2.lib.whu.edu.cn:81";
if(!WHU_lib_proxy(url,host))
{
return whu_lib_proxy;
}
if ( isPlainHostName(host) === true ) {
return direct;
}
if ( check_ipv4(host) === true ) {
return getProxyFromIP(host);
}
if ( check_ipv6(host) === true ) {
return ipv6_proxy();
}
var strIp = dnsResolve(host);
if ( !strIp ) {
return wall_proxy();
}
return getProxyFromIP(strIp);
}
function FindProxyForURLEx(url, host) {
if ( isPlainHostName(host) === true ) {
return direct;
}
if ( check_ipv4(host) === true ) {
return getProxyFromIP(host);
}
if ( check_ipv6(host) === true ) {
return ipv6_proxy();
}
var strIp = dnsResolveEx(host);
if ( !strIp ) {
return wall_proxy();
}
if ( check_ipv6_dns(strIp) === true ) {
return ipv6_proxy();
}
var dnsIps = strIp.split(";");
if (check_ipv4(dnsIps[0]) === true) {
return getProxyFromIP(dnsIps[0]);
} else if (check_ipv6_dns(dnsIps[0]) === true) {
return ipv6_proxy();
}
return wall_proxy();
}
//pac for whu lib
//Version: 20200117-14:14
//
function WHU_lib_proxy(url, host) {
// 根据规则判定是否在 武汉大学 net 中
var in_whu_net = true;
var not_in_whu_net = false;
var whu_lib_proxy = "PROXY proxy2.lib.whu.edu.cn:81";
// 在校内网络的情况
/*
if
(
//begin of direct client ip
isInNet(myIpAddress(), "202.114.64.0", "255.255.255.0") ||
isInNet(myIpAddress(), "202.114.66.0", "255.255.254.0") ||
isInNet(myIpAddress(), "202.114.68.0", "255.255.252.0") ||
isInNet(myIpAddress(), "202.114.72.0", "255.255.248.0") ||
isInNet(myIpAddress(), "202.114.96.0", "255.255.240.0") ||
isInNet(myIpAddress(), "218.197.144.0", "255.255.255.0") ||
isInNet(myIpAddress(), "218.197.146.0", "255.255.254.0") ||
isInNet(myIpAddress(), "218.197.148.0", "255.255.252.0") ||
isInNet(myIpAddress(), "218.197.152.0", "255.255.248.0") ||
isInNet(myIpAddress(), "222.20.192.0", "255.255.192.0") ||
isInNet(myIpAddress(), "125.220.128.0", "255.255.224.0") ||
isInNet(myIpAddress(), "192.168.254.0", "255.255.255.255"))
return in_whu_net;
//end of direct client ip;
else if (
//begin of direct name acl
dnsDomainIs(host, "2shusheng.lib.whu.edu.cn") ||
dnsDomainIs(host, "apps.lib.whu.edu.cn") ||
dnsDomainIs(host, "counter.lib.whu.edu.cn") ||
dnsDomainIs(host, "iras.lib.whu.edu.cn") ||
dnsDomainIs(host, "metalib.lib.whu.edu.cn") ||
dnsDomainIs(host, "opac.lib.whu.edu.cn") ||
dnsDomainIs(host, "proxy2.lib.whu.edu.cn") ||
dnsDomainIs(host, "proxy.lib.whu.edu.cn") ||
dnsDomainIs(host, "seat.lib.whu.edu.cn") ||
dnsDomainIs(host, "svpn.lib.whu.edu.cn") ||
dnsDomainIs(host, "www.lib.whu.edu.cn") ||
dnsDomainIs(host, "xenapp.lib.whu.edu.cn") ||
dnsDomainIs(host, "ztcb.lib.whu.edu.cn") ||
dnsDomainIs(host, ".dummy-domain1.domain"))
return in_whu_net;
//end of direct name acl;
else if (
//begin of ip name acl
isInNet(host,"102.114.65.149","255.255.255.255") ||
isInNet(host,"102.114.65.55","255.255.255.255") ||
isInNet(host,"202.114.65.106","255.255.255.255") ||
isInNet(host,"202.114.65.215","255.255.255.255") ||
isInNet(host,"202.114.65.63","255.255.255.255") ||
isInNet(host,"202.114.65.9","255.255.255.255") ||
isInNet(host,"192.168.253.252","255.255.255.252"))
return in_whu_net;
//end of direct ip acl;
*/
// 不在校园网的情况
if (
//begin of domain name acl
dnsDomainIs(host, ".51cto.com") || host == "51cto.com" ||
dnsDomainIs(host, ".51sjsj.com") || host == "51sjsj.com" ||
dnsDomainIs(host, ".5cy.com") || host == "5cy.com" ||
dnsDomainIs(host, ".5read.com") || host == "5read.com" ||
dnsDomainIs(host, ".aacnjournals.org") || host == "aacnjournals.org" ||
dnsDomainIs(host, ".aacrjournals.org") || host == "aacrjournals.org" ||
dnsDomainIs(host, ".aacr.org") || host == "aacr.org" ||
dnsDomainIs(host, ".aappublications.org") || host == "aappublications.org" ||
dnsDomainIs(host, ".accessmedicine.com") || host == "accessmedicine.com" ||
dnsDomainIs(host, ".accesspharmacy.com") || host == "accesspharmacy.com" ||
dnsDomainIs(host, ".accesssurgery.com") || host == "accesssurgery.com" ||
dnsDomainIs(host, ".acgpublishing.com") || host == "acgpublishing.com" ||
dnsDomainIs(host, ".acm.org") || host == "acm.org" ||
dnsDomainIs(host, ".acpjc.org") || host == "acpjc.org" ||
dnsDomainIs(host, ".acponline.org") || host == "acponline.org" ||
dnsDomainIs(host, ".acs.org") || host == "acs.org" ||
dnsDomainIs(host, ".acs.org.ccindex.cn") || host == "acs.org.ccindex.cn" ||
dnsDomainIs(host, ".a.ebscohost.com") || host == "a.ebscohost.com" ||
dnsDomainIs(host, "a.example.com") || host == "a.example.com" ||
dnsDomainIs(host, ".agu.org") || host == "agu.org" ||
dnsDomainIs(host, ".aiaa.org") || host == "aiaa.org" ||
dnsDomainIs(host, ".aidsonline.com") || host == "aidsonline.com" ||
dnsDomainIs(host, ".aip.org") || host == "aip.org" ||
dnsDomainIs(host, ".airiti.com.cn") || host == "airiti.com.cn" ||
dnsDomainIs(host, ".airitilibrary.cn") || host == "airitilibrary.cn" ||
dnsDomainIs(host, ".airitinpm.com") || host == "airitinpm.com" ||
dnsDomainIs(host, ".ajax.googleapis.com") || host == "ajax.googleapis.com" ||
dnsDomainIs(host, "ajax..googleapis.com") || host == "ajax..googleapis.com" ||
dnsDomainIs(host, ".ajcn.org") || host == "ajcn.org" ||
dnsDomainIs(host, ".ajhp.org") || host == "ajhp.org" ||
dnsDomainIs(host, ".ajnr.org") || host == "ajnr.org" ||
dnsDomainIs(host, ".ajtmh.org") || host == "ajtmh.org" ||
dnsDomainIs(host, ".akademiai.com") || host == "akademiai.com" ||
dnsDomainIs(host, ".alexanderstreet.com") || host == "alexanderstreet.com" ||
dnsDomainIs(host, ".allenpress.com") || host == "allenpress.com" ||
dnsDomainIs(host, ".alphamedpress.org") || host == "alphamedpress.org" ||
dnsDomainIs(host, ".ama-assn.org") || host == "ama-assn.org" ||
dnsDomainIs(host, ".amdigital.co.uk") || host == "amdigital.co.uk" ||
dnsDomainIs(host, ".amjbot.org") || host == "amjbot.org" ||
dnsDomainIs(host, ".amjmedsci.com") || host == "amjmedsci.com" ||
dnsDomainIs(host, ".amjpathol.org") || host == "amjpathol.org" ||
dnsDomainIs(host, ".ams.org") || host == "ams.org" ||
dnsDomainIs(host, ".anatomy.tv") || host == "anatomy.tv" ||
dnsDomainIs(host, ".anb.org") || host == "anb.org" ||
dnsDomainIs(host, ".angle.com.tw") || host == "angle.com.tw" ||
dnsDomainIs(host, ".annals.org") || host == "annals.org" ||
dnsDomainIs(host, ".annualreviews.org") || host == "annualreviews.org" ||
dnsDomainIs(host, ".apabi.com") || host == "apabi.com" ||
dnsDomainIs(host, ".aps.org") || host == "aps.org" ||
dnsDomainIs(host, ".archive.nstl.gov.cn") || host == "archive.nstl.gov.cn" ||
dnsDomainIs(host, ".artlib.cn") || host == "artlib.cn" ||
dnsDomainIs(host, ".asahi.com") || host == "asahi.com" ||
dnsDomainIs(host, ".ascelibrary.org") || host == "ascelibrary.org" ||
dnsDomainIs(host, ".asce.org") || host == "asce.org" ||
dnsDomainIs(host, ".asme.org") || host == "asme.org" ||
dnsDomainIs(host, ".asm.org") || host == "asm.org" ||
dnsDomainIs(host, ".aspbjournals.org") || host == "aspbjournals.org" ||
dnsDomainIs(host, ".aspetjournals.org") || host == "aspetjournals.org" ||
dnsDomainIs(host, ".astm.org") || host == "astm.org" ||
dnsDomainIs(host, ".atypon-link.com?") || host == "atypon-link.com?" ||
dnsDomainIs(host, ".awlonline.com") || host == "awlonline.com" ||
dnsDomainIs(host, ".basicedu.chaoxing.com") || host == "basicedu.chaoxing.com" ||
dnsDomainIs(host, ".b.ebscohost.com") || host == "b.ebscohost.com" ||
dnsDomainIs(host, ".beck.de") || host == "beck.de" ||
dnsDomainIs(host, ".begellhouse.com") || host == "begellhouse.com" ||
dnsDomainIs(host, ".benthamdirect.org") || host == "benthamdirect.org" ||
dnsDomainIs(host, "b.example.com") || host == "b.example.com" ||
dnsDomainIs(host, ".biochemj.org") || host == "biochemj.org" ||
dnsDomainIs(host, ".biologists.com") || host == "biologists.com" ||
dnsDomainIs(host, ".biologists.org") || host == "biologists.org" ||
dnsDomainIs(host, ".biolreprod.org") || host == "biolreprod.org" ||
dnsDomainIs(host, ".bioone.org") || host == "bioone.org" ||
dnsDomainIs(host, ".bixu.me") || host == "bixu.me" ||
dnsDomainIs(host, ".bjadks.com") || host == "bjadks.com" ||
dnsDomainIs(host, ".bj.cxstar.cn") || host == "bj.cxstar.cn" ||
dnsDomainIs(host, ".bjgp.org") || host == "bjgp.org" ||
dnsDomainIs(host, ".bjinfobank.com") || host == "bjinfobank.com" ||
dnsDomainIs(host, ".bjj.boneandjoint.org.uk") || host == "bjj.boneandjoint.org.uk" ||
dnsDomainIs(host, ".bjmu.edu.cn") || host == "bjmu.edu.cn" ||
dnsDomainIs(host, ".blackwell-synergy.com") || host == "blackwell-synergy.com" ||
dnsDomainIs(host, ".bmj.com") || host == "bmj.com" ||
dnsDomainIs(host, ".bookan.com.cn") || host == "bookan.com.cn" ||
dnsDomainIs(host, ".bridgemaneducation.com") || host == "bridgemaneducation.com" ||
dnsDomainIs(host, ".brill.com") || host == "brill.com" ||
dnsDomainIs(host, ".brillonline.com") || host == "brillonline.com" ||
dnsDomainIs(host, ".britannica.com") || host == "britannica.com" ||
dnsDomainIs(host, ".bsi-global.com") || host == "bsi-global.com" ||
dnsDomainIs(host, ".bvdep.com") || host == "bvdep.com" ||
dnsDomainIs(host, ".cadal.cn") || host == "cadal.cn" ||
dnsDomainIs(host, ".cadal.hytung.cn") || host == "cadal.hytung.cn" ||
dnsDomainIs(host, ".cadal.net") || host == "cadal.net" ||
dnsDomainIs(host, ".cadal.zju.edu.cn") || host == "cadal.zju.edu.cn" ||
dnsDomainIs(host, ".cairn.info") || host == "cairn.info" ||
dnsDomainIs(host, ".calis.edu.cn") || host == "calis.edu.cn" ||
dnsDomainIs(host, ".cambridge.org") || host == "cambridge.org" ||
dnsDomainIs(host, ".cas.org") || host == "cas.org" ||
dnsDomainIs(host, ".catchword.com") || host == "catchword.com" ||
dnsDomainIs(host, ".ccerdata.com") || host == "ccerdata.com" ||
dnsDomainIs(host, ".ccpph.com.cn") || host == "ccpph.com.cn" ||
dnsDomainIs(host, ".ccxe.com.cn") || host == "ccxe.com.cn" ||
dnsDomainIs(host, ".ceeol.com") || host == "ceeol.com" ||
dnsDomainIs(host, ".cei.cn") || host == "cei.cn" ||
dnsDomainIs(host, ".cei.gov.cn") || host == "cei.gov.cn" ||
dnsDomainIs(host, ".cepiec.com.cn") || host == "cepiec.com.cn" ||
dnsDomainIs(host, ".cetd.com.cn") || host == "cetd.com.cn" ||
dnsDomainIs(host, ".cfrn.com.cn") || host == "cfrn.com.cn" ||
dnsDomainIs(host, ".chadwyck.com") || host == "chadwyck.com" ||
dnsDomainIs(host, ".chadwyck.co.uk") || host == "chadwyck.co.uk" ||
dnsDomainIs(host, ".chaoxing.com") || host == "chaoxing.com" ||
dnsDomainIs(host, ".charlesworth.com.cn") || host == "charlesworth.com.cn" ||
dnsDomainIs(host, ".chestjournal.org") || host == "chestjournal.org" ||
dnsDomainIs(host, ".chinacxc.org") || host == "chinacxc.org" ||
dnsDomainIs(host, ".chinaef.com") || host == "chinaef.com" ||
dnsDomainIs(host, ".chinalawinfo.com") || host == "chinalawinfo.com" ||
dnsDomainIs(host, ".chinalibs.net") || host == "chinalibs.net" ||
dnsDomainIs(host, ".chineseall.cn") || host == "chineseall.cn" ||
dnsDomainIs(host, ".chnedu.com") || host == "chnedu.com" ||
dnsDomainIs(host, ".churchillarchive.com") || host == "churchillarchive.com" ||
dnsDomainIs(host, ".ciaonet.org") || host == "ciaonet.org" ||
dnsDomainIs(host, ".cinfo.net.cn") || host == "cinfo.net.cn" ||
dnsDomainIs(host, ".clarivate.com") || host == "clarivate.com" ||
dnsDomainIs(host, ".classiques-garnier.com") || host == "classiques-garnier.com" ||
dnsDomainIs(host, ".clinchem.org") || host == "clinchem.org" ||
dnsDomainIs(host, ".cnbksy.cn") || host == "cnbksy.cn" ||
dnsDomainIs(host, ".cnbksy.net") || host == "cnbksy.net" ||
dnsDomainIs(host, ".cnki.net") || host == "cnki.net" ||
dnsDomainIs(host, ".cnpereading.com") || host == "cnpereading.com" ||
dnsDomainIs(host, "content.ebscohost.com") || host == "content.ebscohost.com" ||
dnsDomainIs(host, ".cqvip.com") || host == "cqvip.com" ||
dnsDomainIs(host, ".crcnetbase.cn") || host == "crcnetbase.cn" ||
dnsDomainIs(host, ".credoreference.com") || host == "credoreference.com" ||
dnsDomainIs(host, ".crei.cn") || host == "crei.cn" ||
dnsDomainIs(host, ".csdl.ac.cn") || host == "csdl.ac.cn" ||
dnsDomainIs(host, ".cshlpress.com") || host == "cshlpress.com" ||
dnsDomainIs(host, ".cshprotocols.org") || host == "cshprotocols.org" ||
dnsDomainIs(host, ".csiro.com") || host == "csiro.com" ||
dnsDomainIs(host, ".cssci.com.cn") || host == "cssci.com.cn" ||
dnsDomainIs(host, ".cssci.nju.edu.cn") || host == "cssci.nju.edu.cn" ||
dnsDomainIs(host, ".dachengdata.com") || host == "dachengdata.com" ||
dnsDomainIs(host, ".datahistory.cn") || host == "datahistory.cn" ||
dnsDomainIs(host, ".datesdata.com.cn") || host == "datesdata.com.cn" ||
dnsDomainIs(host, ".dbpia.co.kr") || host == "dbpia.co.kr" ||
dnsDomainIs(host, ".degruyter.com") || host == "degruyter.com" ||
dnsDomainIs(host, ".dekker.com") || host == "dekker.com" ||
dnsDomainIs(host, ".dfinder.cn") || host == "dfinder.cn" ||
dnsDomainIs(host, ".dfirs.com") || host == "dfirs.com" ||
dnsDomainIs(host, ".dhcdb.com.tw") || host == "dhcdb.com.tw" ||
dnsDomainIs(host, ".digitalmechanical.com.cn") || host == "digitalmechanical.com.cn" ||
dnsDomainIs(host, ".digizeitschriften.de") || host == "digizeitschriften.de" ||
dnsDomainIs(host, ".ding-xiu.com") || host == "ding-xiu.com" ||
dnsDomainIs(host, ".discolrect.com") || host == "discolrect.com" ||
dnsDomainIs(host, ".dragoninfo.cn") || host == "dragoninfo.cn" ||
dnsDomainIs(host, ".drcnet.com.cn") || host == "drcnet.com.cn" ||
dnsDomainIs(host, ".duxiu.com") || host == "duxiu.com" ||
dnsDomainIs(host, ".duxiudsr.com") || host == "duxiudsr.com" ||
dnsDomainIs(host, ".earthscan.co.uk") || host == "earthscan.co.uk" ||
dnsDomainIs(host, ".earthscape.org") || host == "earthscape.org" ||
dnsDomainIs(host, ".eastview.com") || host == "eastview.com" ||
dnsDomainIs(host, ".eb.com") || host == "eb.com" ||
dnsDomainIs(host, ".ebiblioteka.ru") || host == "ebiblioteka.ru" ||
dnsDomainIs(host, "ebsco.cc") || host == "ebsco.cc" ||
dnsDomainIs(host, ".ebscohost.com") || host == "ebscohost.com" ||
dnsDomainIs(host, ".economist.com") || host == "economist.com" ||
dnsDomainIs(host, "eds.a.ebscohost.com") || host == "eds.a.ebscohost.com" ||
dnsDomainIs(host, "eds.b.ebscohost.com") || host == "eds.b.ebscohost.com" ||
dnsDomainIs(host, ".eguji.cn") || host == "eguji.cn" ||
dnsDomainIs(host, ".eje-online.org") || host == "eje-online.org" ||
dnsDomainIs(host, ".elibrary.imf.org") || host == "elibrary.imf.org" ||
dnsDomainIs(host, ".elsevier-elibrary.com") || host == "elsevier-elibrary.com" ||
dnsDomainIs(host, ".embase.com") || host == "embase.com" ||
dnsDomainIs(host, ".emeraldinsight.com") || host == "emeraldinsight.com" ||
dnsDomainIs(host, ".ems-ph.org") || host == "ems-ph.org" ||
dnsDomainIs(host, ".endocrineconnections.com") || host == "endocrineconnections.com" ||
dnsDomainIs(host, ".endocrinology-journals.org") || host == "endocrinology-journals.org" ||
dnsDomainIs(host, ".eng24.com.tw") || host == "eng24.com.tw" ||
dnsDomainIs(host, ".engineeringvillage2.org.cn") || host == "engineeringvillage2.org.cn" ||
dnsDomainIs(host, ".engineeringvillage.com") || host == "engineeringvillage.com" ||
dnsDomainIs(host, ".epnet.com") || host == "epnet.com" ||
dnsDomainIs(host, ".epsnet.com.cn") || host == "epsnet.com.cn" ||
dnsDomainIs(host, ".er07.com") || host == "er07.com" ||
dnsDomainIs(host, ".ersjk.com") || host == "ersjk.com" ||
dnsDomainIs(host, ".ersjournals.com") || host == "ersjournals.com" ||
dnsDomainIs(host, ".esapubs.org") || host == "esapubs.org" ||
dnsDomainIs(host, ".etailer.dpsl.net") || host == "etailer.dpsl.net" ||
dnsDomainIs(host, "etd.calis.edu.cn") || host == "etd.calis.edu.cn" ||
dnsDomainIs(host, ".ets.umdl.umich.edu") || host == "ets.umdl.umich.edu" ||
dnsDomainIs(host, ".eurekaselect.com") || host == "eurekaselect.com" ||
dnsDomainIs(host, ".exlibrisgroup.com") || host == "exlibrisgroup.com" ||
dnsDomainIs(host, ".f1000.com") || host == "f1000.com" ||
dnsDomainIs(host, ".fasebj.org") || host == "fasebj.org" ||
dnsDomainIs(host, ".findplus.cn") || host == "findplus.cn" ||
dnsDomainIs(host, ".firstsearch.oclc.org") || host == "firstsearch.oclc.org" ||
dnsDomainIs(host, "firstsearch.oclc.org") || host == "firstsearch.oclc.org" ||
dnsDomainIs(host, ".flearning.cn") || host == "flearning.cn" ||
dnsDomainIs(host, ".fltrp.com") || host == "fltrp.com" ||
dnsDomainIs(host, ".frymulti.com") || host == "frymulti.com" ||
dnsDomainIs(host, ".future-drugs.com") || host == "future-drugs.com" ||
dnsDomainIs(host, ".futuremedicine.com") || host == "futuremedicine.com" ||
dnsDomainIs(host, "fxjour.chaoxing.com") || host == "fxjour.chaoxing.com" ||
dnsDomainIs(host, "fxlogin.chaoxing.com") || host == "fxlogin.chaoxing.com" ||
dnsDomainIs(host, ".galegroup.com") || host == "galegroup.com" ||
dnsDomainIs(host, ".genesdev.org") || host == "genesdev.org" ||
dnsDomainIs(host, ".genetics.org") || host == "genetics.org" ||
dnsDomainIs(host, ".genome.org") || host == "genome.org" ||
dnsDomainIs(host, ".geoscienceworld.org") || host == "geoscienceworld.org" ||
dnsDomainIs(host, ".globalbooksinprint.com") || host == "globalbooksinprint.com" ||
dnsDomainIs(host, ".gsajournals.org") || host == "gsajournals.org" ||
dnsDomainIs(host, "gssapps.ebscohost.com") || host == "gssapps.ebscohost.com" ||
dnsDomainIs(host, ".gtarsc.com") || host == "gtarsc.com" ||
dnsDomainIs(host, ".gujilianhe.com") || host == "gujilianhe.com" ||
dnsDomainIs(host, "guji.unihan.com.cn") || host == "guji.unihan.com.cn" ||
dnsDomainIs(host, ".hbdlib.cn") || host == "hbdlib.cn" ||
dnsDomainIs(host, ".hbdlib.edu.cn") || host == "hbdlib.edu.cn" ||
dnsDomainIs(host, ".healthaffairs.org") || host == "healthaffairs.org" ||
dnsDomainIs(host, ".heinonline.org") || host == "heinonline.org" ||
dnsDomainIs(host, ".higher-edu.cn") || host == "higher-edu.cn" ||
dnsDomainIs(host, ".hiresearch.cn") || host == "hiresearch.cn" ||
dnsDomainIs(host, ".hnlat.com") || host == "hnlat.com" ||
dnsDomainIs(host, "hqyy.lib.whu.edu.cn") || host == "hqyy.lib.whu.edu.cn" ||
dnsDomainIs(host, ".hstalks.com") || host == "hstalks.com" ||
dnsDomainIs(host, ".htcases.com") || host == "htcases.com" ||
dnsDomainIs(host, ".humanitiesebook.org") || host == "humanitiesebook.org" ||
dnsDomainIs(host, ".hwshu.com") || host == "hwshu.com" ||
dnsDomainIs(host, ".hwwilsonweb.com") || host == "hwwilsonweb.com" ||
dnsDomainIs(host, ".iareporter.com") || host == "iareporter.com" ||
dnsDomainIs(host, ".ibfd.org") || host == "ibfd.org" ||
dnsDomainIs(host, ".iceknowledge.com") || host == "iceknowledge.com" ||
dnsDomainIs(host, ".icevirtuallibrary.com") || host == "icevirtuallibrary.com" ||
dnsDomainIs(host, ".idoican.com.cn") || host == "idoican.com.cn" ||
dnsDomainIs(host, ".ieee.org") || host == "ieee.org" ||
dnsDomainIs(host, ".igi-global.com") || host == "igi-global.com" ||
dnsDomainIs(host, ".igpublish.com") || host == "igpublish.com" ||
dnsDomainIs(host, ".i-law.com") || host == "i-law.com" ||
dnsDomainIs(host, "imageserver.ebscohost.com") || host == "imageserver.ebscohost.com" ||
dnsDomainIs(host, ".imaging.consult.com") || host == "imaging.consult.com" ||
dnsDomainIs(host, ".imicams.ac.cn") || host == "imicams.ac.cn" ||
dnsDomainIs(host, ".incopat.com") || host == "incopat.com" ||
dnsDomainIs(host, ".informaworld.com") || host == "informaworld.com" ||
dnsDomainIs(host, ".informs.org") || host == "informs.org" ||
dnsDomainIs(host, ".infosci-online.com") || host == "infosci-online.com" ||
dnsDomainIs(host, ".ingentaconnect.com") || host == "ingentaconnect.com" ||
dnsDomainIs(host, ".ingentaselect.com") || host == "ingentaselect.com" ||
dnsDomainIs(host, ".innojoy.com") || host == "innojoy.com" ||
dnsDomainIs(host, ".intechopen.com") || host == "intechopen.com" ||
dnsDomainIs(host, ".intechopen.com.cn") || host == "intechopen.com.cn" ||
dnsDomainIs(host, ".iop.org") || host == "iop.org" ||
dnsDomainIs(host, ".isiknowledge.com") || host == "isiknowledge.com" ||
dnsDomainIs(host, ".islib.com") || host == "islib.com" ||
dnsDomainIs(host, ".itest.unipus.cn") || host == "itest.unipus.cn" ||
dnsDomainIs(host, ".itextbook.cn") || host == "itextbook.cn" ||
dnsDomainIs(host, ".iwaponline.com") || host == "iwaponline.com" ||
dnsDomainIs(host, ".jamanetwork.com") || host == "jamanetwork.com" ||
dnsDomainIs(host, ".janes.com") || host == "janes.com" ||
dnsDomainIs(host, ".jimmunol.org") || host == "jimmunol.org" ||
dnsDomainIs(host, ".jingjilei.cn") || host == "jingjilei.cn" ||
dnsDomainIs(host, ".jiuye.net") || host == "jiuye.net" ||
dnsDomainIs(host, ".jkn21.com") || host == "jkn21.com" ||
dnsDomainIs(host, ".jleukbio.org") || host == "jleukbio.org" ||
dnsDomainIs(host, ".joblib.cn") || host == "joblib.cn" ||
dnsDomainIs(host, ".joponline.org") || host == "joponline.org" ||
dnsDomainIs(host, ".journals.iucr.org") || host == "journals.iucr.org" ||
dnsDomainIs(host, ".jove.com") || host == "jove.com" ||
dnsDomainIs(host, ".jrsm.org") || host == "jrsm.org" ||
dnsDomainIs(host, ".jstor.org") || host == "jstor.org" ||
dnsDomainIs(host, ".junshilei.cn") || host == "junshilei.cn" ||
dnsDomainIs(host, ".jvmeonline.org") || host == "jvmeonline.org" ||
dnsDomainIs(host, ".karger.cn") || host == "karger.cn" ||
dnsDomainIs(host, ".karger.com") || host == "karger.com" ||
dnsDomainIs(host, ".keytometals.com") || host == "keytometals.com" ||
dnsDomainIs(host, ".kluwerarbitration.com") || host == "kluwerarbitration.com" ||
dnsDomainIs(host, ".kluwercompetitionLaw.com") || host == "kluwercompetitionLaw.com" ||
dnsDomainIs(host, ".kluwerIPLaw.com") || host == "kluwerIPLaw.com" ||
dnsDomainIs(host, ".kluwerlawonline.com") || host == "kluwerlawonline.com" ||
dnsDomainIs(host, ".kluweronline.com") || host == "kluweronline.com" ||
dnsDomainIs(host, ".kluwerpatentlaw.com") || host == "kluwerpatentlaw.com" ||
dnsDomainIs(host, ".knovel.com") || host == "knovel.com" ||
dnsDomainIs(host, ".koolearn.com") || host == "koolearn.com" ||
dnsDomainIs(host, ".krpia.co.kr") || host == "krpia.co.kr" ||
dnsDomainIs(host, ".kuke.com") || host == "kuke.com" ||
dnsDomainIs(host, ".landesbioscience.com") || host == "landesbioscience.com" ||
dnsDomainIs(host, "law.cnki.net") || host == "law.cnki.net" ||
dnsDomainIs(host, ".lawdata01.com.cn") || host == "lawdata01.com.cn" ||
dnsDomainIs(host, ".lawdata.com.cn") || host == "lawdata.com.cn" ||
dnsDomainIs(host, ".lawdata.com.tw") || host == "lawdata.com.tw" ||
dnsDomainIs(host, ".lawlibrary.jp") || host == "lawlibrary.jp" ||
dnsDomainIs(host, ".lawy.com.cn") || host == "lawy.com.cn" ||
dnsDomainIs(host, ".lawyee.net") || host == "lawyee.net" ||
dnsDomainIs(host, ".lawyee.org") || host == "lawyee.org" ||
dnsDomainIs(host, ".lawy.org") || host == "lawy.org" ||
dnsDomainIs(host, ".leaonline.com") || host == "leaonline.com" ||
dnsDomainIs(host, ".lexiscn.com") || host == "lexiscn.com" ||
dnsDomainIs(host, ".lexis.com") || host == "lexis.com" ||
dnsDomainIs(host, ".lexisnexis.com") || host == "lexisnexis.com" ||
dnsDomainIs(host, ".lib.global.umi.com") || host == "lib.global.umi.com" ||
dnsDomainIs(host, ".lib.sjtu.edu.cn") || host == "lib.sjtu.edu.cn" ||
dnsDomainIs(host, ".lib.tsinghua.edu.cn") || host == "lib.tsinghua.edu.cn" ||
dnsDomainIs(host, ".lib.umich.edu") || host == "lib.umich.edu" ||
dnsDomainIs(host, ".libvideo.com") || host == "libvideo.com" ||
dnsDomainIs(host, ".lib.whu.edu.cn") || host == "lib.whu.edu.cn" ||
dnsDomainIs(host, ".liebertpub.com") || host == "liebertpub.com" ||
dnsDomainIs(host, ".lieguozhi.com") || host == "lieguozhi.com" ||
dnsDomainIs(host, ".lifescied.org") || host == "lifescied.org" ||
dnsDomainIs(host, ".lilun.cn") || host == "lilun.cn" ||
dnsDomainIs(host, ".lishidl.cn") || host == "lishidl.cn" ||
dnsDomainIs(host, "login.wisers.net") || host == "login.wisers.net" ||
dnsDomainIs(host, ".lyellcollection.org") || host == "lyellcollection.org" ||
dnsDomainIs(host, ".macrochina.com.cn") || host == "macrochina.com.cn" ||
dnsDomainIs(host, ".maliemlun.cn") || host == "maliemlun.cn" ||
dnsDomainIs(host, ".maruzen.co.jp") || host == "maruzen.co.jp" ||
dnsDomainIs(host, ".mdconsult.com") || host == "mdconsult.com" ||
dnsDomainIs(host, ".md-journal.com") || host == "md-journal.com" ||
dnsDomainIs(host, ".medicinescomplete.com") || host == "medicinescomplete.com" ||
dnsDomainIs(host, ".metapress.com") || host == "metapress.com" ||
dnsDomainIs(host, ".mhmedical.com") || host == "mhmedical.com" ||
dnsDomainIs(host, ".molbiolcell.org") || host == "molbiolcell.org" ||
dnsDomainIs(host, ".morganclaypool.com") || host == "morganclaypool.com" ||
dnsDomainIs(host, ".mpepil.com") || host == "mpepil.com" ||
dnsDomainIs(host, "msp.org") || host == "msp.org" ||
dnsDomainIs(host, ".muse.jhu.edu") || host == "muse.jhu.edu" ||
dnsDomainIs(host, ".myendnoteweb.com") || host == "myendnoteweb.com" ||
dnsDomainIs(host, ".myilibrary.com") || host == "myilibrary.com" ||
dnsDomainIs(host, ".nature.com") || host == "nature.com" ||
dnsDomainIs(host, ".neohytung.com") || host == "neohytung.com" ||
dnsDomainIs(host, ".netlibrary.com") || host == "netlibrary.com" ||
dnsDomainIs(host, ".newisiknowledge.com") || host == "newisiknowledge.com" ||
dnsDomainIs(host, ".newsbank.com") || host == "newsbank.com" ||
dnsDomainIs(host, ".nijhoffonline.nl") || host == "nijhoffonline.nl" ||
dnsDomainIs(host, ".nlcpress.com") || host == "nlcpress.com" ||
dnsDomainIs(host, ".nmrdata.com") || host == "nmrdata.com" ||
dnsDomainIs(host, ".nursingconsult.com") || host == "nursingconsult.com" ||
dnsDomainIs(host, ".nutrition.org") || host == "nutrition.org" ||
dnsDomainIs(host, ".oadt.net") || host == "oadt.net" ||
dnsDomainIs(host, ".oclc.org") || host == "oclc.org" ||
dnsDomainIs(host, ".oecd-ilibrary.org") || host == "oecd-ilibrary.org" ||
dnsDomainIs(host, ".oecdilibrary.org") || host == "oecdilibrary.org" ||
dnsDomainIs(host, ".oed.com") || host == "oed.com" ||
dnsDomainIs(host, ".opticsinfobase.org") || host == "opticsinfobase.org" ||
dnsDomainIs(host, ".oup.com") || host == "oup.com" ||
dnsDomainIs(host, ".oup.co.uk") || host == "oup.co.uk" ||
dnsDomainIs(host, ".oupjournals.org") || host == "oupjournals.org" ||
dnsDomainIs(host, ".ouplaw.com") || host == "ouplaw.com" ||
dnsDomainIs(host, ".ovid.com") || host == "ovid.com" ||
dnsDomainIs(host, ".oxfordbibliographies.com") || host == "oxfordbibliographies.com" ||
dnsDomainIs(host, ".oxforddictionaries.com") || host == "oxforddictionaries.com" ||
dnsDomainIs(host, ".oxfordjournals.org") || host == "oxfordjournals.org" ||
dnsDomainIs(host, ".oxfordlanguagedictionaries.com") || host == "oxfordlanguagedictionaries.com" ||
dnsDomainIs(host, ".oxfordlawreports.com") || host == "oxfordlawreports.com" ||
dnsDomainIs(host, ".oxfordscholarlyeditions.com") || host == "oxfordscholarlyeditions.com" ||
dnsDomainIs(host, ".oxfordscholarship.com") || host == "oxfordscholarship.com" ||
dnsDomainIs(host, ".palgraveconnect.com") || host == "palgraveconnect.com" ||
dnsDomainIs(host, ".palgrave-journals.com") || host == "palgrave-journals.com" ||
dnsDomainIs(host, ".paper.edu.cn") || host == "paper.edu.cn" ||
dnsDomainIs(host, ".pdiconnect.com") || host == "pdiconnect.com" ||
dnsDomainIs(host, ".people.com.cn") || host == "people.com.cn" ||
dnsDomainIs(host, ".pharmacopoeia.com") || host == "pharmacopoeia.com" ||
dnsDomainIs(host, ".physiology.org") || host == "physiology.org" ||
dnsDomainIs(host, ".physoc.org") || host == "physoc.org" ||
dnsDomainIs(host, ".pishu.cn") || host == "pishu.cn" ||
dnsDomainIs(host, ".pishu.com.cn") || host == "pishu.com.cn" ||
dnsDomainIs(host, ".pkulaw.cn") || host == "pkulaw.cn" ||
dnsDomainIs(host, ".plantcell.org") || host == "plantcell.org" ||
dnsDomainIs(host, ".plantphysiol.org") || host == "plantphysiol.org" ||
dnsDomainIs(host, "plu.mx") || host == "plu.mx" ||
dnsDomainIs(host, ".pnas.org") || host == "pnas.org" ||
dnsDomainIs(host, "pqdt.calis.edu.cn") || host == "pqdt.calis.edu.cn" ||
dnsDomainIs(host, ".pressdisplay.com") || host == "pressdisplay.com" ||
dnsDomainIs(host, ".primalonlinelearning.com") || host == "primalonlinelearning.com" ||
dnsDomainIs(host, ".projecteuclid.org") || host == "projecteuclid.org" ||
dnsDomainIs(host, "projecteuclid.org") || host == "projecteuclid.org" ||
dnsDomainIs(host, ".proquest.com") || host == "proquest.com" ||
dnsDomainIs(host, ".psychiatryonline.org") || host == "psychiatryonline.org" ||
dnsDomainIs(host, ".pubs.nrc-cnrc.gc.ca") || host == "pubs.nrc-cnrc.gc.ca" ||
dnsDomainIs(host, ".qdexam.com") || host == "qdexam.com" ||
dnsDomainIs(host, "qikan.chaoxing.com") || host == "qikan.chaoxing.com" ||
dnsDomainIs(host, ".qikan.com") || host == "qikan.com" ||
dnsDomainIs(host, ".qikan.com.cn") || host == "qikan.com.cn" ||
dnsDomainIs(host, ".rapra.net") || host == "rapra.net" ||
dnsDomainIs(host, ".rcpsych.org") || host == "rcpsych.org" ||
dnsDomainIs(host, ".rdatoolkit.org") || host == "rdatoolkit.org" ||
dnsDomainIs(host, ".rdfybk.com") || host == "rdfybk.com" ||
dnsDomainIs(host, ".reaxys.com") || host == "reaxys.com" ||
dnsDomainIs(host, ".reproduction-online.org") || host == "reproduction-online.org" ||
dnsDomainIs(host, "resolver.ebscohost.com") || host == "resolver.ebscohost.com" ||
dnsDomainIs(host, ".resset.cn") || host == "resset.cn" ||
dnsDomainIs(host, ".reviews.com") || host == "reviews.com" ||
dnsDomainIs(host, ".routledge.com") || host == "routledge.com" ||
dnsDomainIs(host, ".rsc.org") || host == "rsc.org" ||
dnsDomainIs(host, ".rsnajnls.org") || host == "rsnajnls.org" ||
dnsDomainIs(host, ".rupress.org") || host == "rupress.org" ||
dnsDomainIs(host, ".sae.org") || host == "sae.org" ||
dnsDomainIs(host, ".sagepub.com") || host == "sagepub.com" ||
dnsDomainIs(host, ".saur.de") || host == "saur.de" ||
dnsDomainIs(host, ".sciencedirect.com") || host == "sciencedirect.com" ||
dnsDomainIs(host, ".sciencemag.org") || host == "sciencemag.org" ||
dnsDomainIs(host, ".sciinfo.cn") || host == "sciinfo.cn" ||
dnsDomainIs(host, ".scijournals.org") || host == "scijournals.org" ||
dnsDomainIs(host, ".scinote.com") || host == "scinote.com" ||
dnsDomainIs(host, ".scipmed.com") || host == "scipmed.com" ||
dnsDomainIs(host, ".scopus.com") || host == "scopus.com" ||
dnsDomainIs(host, "sdc-rpsimages.ebscohost.com") || host == "sdc-rpsimages.ebscohost.com" ||
dnsDomainIs(host, "search.ebscohost.com") || host == "search.ebscohost.com" ||
dnsDomainIs(host, ".seg.org") || host == "seg.org" ||
dnsDomainIs(host, ".serialssolutions.com") || host == "serialssolutions.com" ||
dnsDomainIs(host, ".sevedu.com") || host == "sevedu.com" ||
dnsDomainIs(host, ".sgmjournals.org") || host == "sgmjournals.org" ||
dnsDomainIs(host, ".shangyekj.com") || host == "shangyekj.com" ||
dnsDomainIs(host, ".shehuikxzl.cn") || host == "shehuikxzl.cn" ||
dnsDomainIs(host, ".shengwukx.cn") || host == "shengwukx.cn" ||
dnsDomainIs(host, ".shulikxhhx.cn") || host == "shulikxhhx.cn" ||
dnsDomainIs(host, ".siam.org") || host == "siam.org" ||
dnsDomainIs(host, ".sinomed.ac.cn") || host == "sinomed.ac.cn" ||
dnsDomainIs(host, ".sipriyearbook.org") || host == "sipriyearbook.org" ||
dnsDomainIs(host, ".smartpigai.com") || host == "smartpigai.com" ||
dnsDomainIs(host, ".snmjournals.org") || host == "snmjournals.org" ||
dnsDomainIs(host, ".socolar.com") || host == "socolar.com" ||
dnsDomainIs(host, ".softtone.com") || host == "softtone.com" ||
dnsDomainIs(host, ".soshoo.com") || host == "soshoo.com" ||
dnsDomainIs(host, ".soshoo.com.cn") || host == "soshoo.com.cn" ||
dnsDomainIs(host, ".southasiaarchive.com") || host == "southasiaarchive.com" ||
dnsDomainIs(host, ".spiedigitallibrary.org") || host == "spiedigitallibrary.org" ||
dnsDomainIs(host, ".spiedl.org") || host == "spiedl.org" ||
dnsDomainIs(host, ".springer.com") || host == "springer.com" ||
dnsDomainIs(host, ".springer.de") || host == "springer.de" ||
dnsDomainIs(host, ".springerlink.com") || host == "springerlink.com" ||
dnsDomainIs(host, ".springermaterials.com") || host == "springermaterials.com" ||
dnsDomainIs(host, ".springerprotocols.com") || host == "springerprotocols.com" ||
dnsDomainIs(host, ".ssap.com.cn") || host == "ssap.com.cn" ||
dnsDomainIs(host, ".sslawy.com") || host == "sslawy.com" ||
dnsDomainIs(host, ".sslibrary.com") || host == "sslibrary.com" ||
dnsDomainIs(host, "sso.ssap.com.cn") || host == "sso.ssap.com.cn" ||
dnsDomainIs(host, ".ssreader.com") || host == "ssreader.com" ||
dnsDomainIs(host, "ssvideo.superlib.com") || host == "ssvideo.superlib.com" ||
dnsDomainIs(host, ".statista.com") || host == "statista.com" ||
dnsDomainIs(host, "stw.lib.whu.edu.cn") || host == "stw.lib.whu.edu.cn" ||
dnsDomainIs(host, ".superlib.com") || host == "superlib.com" ||
dnsDomainIs(host, ".swetswise.com") || host == "swetswise.com" ||
dnsDomainIs(host, ".swetswise.com.cn") || host == "swetswise.com.cn" ||
dnsDomainIs(host, "syhq.shangyekj.com") || host == "syhq.shangyekj.com" ||
dnsDomainIs(host, ".tandf.co.uk") || host == "tandf.co.uk" ||
dnsDomainIs(host, ".tandfonline.com") || host == "tandfonline.com" ||
dnsDomainIs(host, ".teps.com.cn") || host == "teps.com.cn" ||
dnsDomainIs(host, ".teps.com.tw") || host == "teps.com.tw" ||
dnsDomainIs(host, ".thecochranelibrary.com") || host == "thecochranelibrary.com" ||
dnsDomainIs(host, ".thieme-connect.com") || host == "thieme-connect.com" ||
dnsDomainIs(host, ".thomsonreuters.com") || host == "thomsonreuters.com" ||
dnsDomainIs(host, ".tianwenxdqkx.cn") || host == "tianwenxdqkx.cn" ||
dnsDomainIs(host, ".tradelawguide.com") || host == "tradelawguide.com" ||
dnsDomainIs(host, ".tsinghua.edu.cn") || host == "tsinghua.edu.cn" ||
dnsDomainIs(host, ".twscholar.com") || host == "twscholar.com" ||
dnsDomainIs(host, ".ulrichsweb.com") || host == "ulrichsweb.com" ||
dnsDomainIs(host, ".umajor.org") || host == "umajor.org" ||
dnsDomainIs(host, ".umi.com") || host == "umi.com" ||
dnsDomainIs(host, ".unihan.com.cn") || host == "unihan.com.cn" ||
dnsDomainIs(host, ".unipus.cn") || host == "unipus.cn" ||
dnsDomainIs(host, ".unislib.com") || host == "unislib.com" ||
dnsDomainIs(host, ".useso.com") || host == "useso.com" ||
dnsDomainIs(host, ".usmle-easy.com") || host == "usmle-easy.com" ||
dnsDomainIs(host, ".vipexam.cn") || host == "vipexam.cn" ||
dnsDomainIs(host, ".vod.ivlib.com") || host == "vod.ivlib.com" ||
dnsDomainIs(host, ".wanfangdata.com.cn") || host == "wanfangdata.com.cn" ||
dnsDomainIs(host, ".webofknowledge.com") || host == "webofknowledge.com" ||
dnsDomainIs(host, ".wenhuakxjyty.cn") || host == "wenhuakxjyty.cn" ||
dnsDomainIs(host, ".wenxueleia.cn") || host == "wenxueleia.cn" ||
dnsDomainIs(host, ".westlawchina.com") || host == "westlawchina.com" ||
dnsDomainIs(host, ".westlaw.com") || host == "westlaw.com" ||
dnsDomainIs(host, ".westlawjapan.com") || host == "westlawjapan.com" ||
dnsDomainIs(host, "widgets.ebscohost.com") || host == "widgets.ebscohost.com" ||
dnsDomainIs(host, ".wiley.com") || host == "wiley.com" ||
dnsDomainIs(host, ".wisenews.net") || host == "wisenews.net" ||
dnsDomainIs(host, ".wisers.net") || host == "wisers.net" ||
dnsDomainIs(host, ".wisers.net.cn") || host == "wisers.net.cn" ||
dnsDomainIs(host, "wisesearch6.wisers.net") || host == "wisesearch6.wisers.net" ||
dnsDomainIs(host, ".wise-video.com") || host == "wise-video.com" ||
dnsDomainIs(host, ".wkinfo.com.cn") || host == "wkinfo.com.cn" ||
dnsDomainIs(host, ".wordpedia.com") || host == "wordpedia.com" ||
dnsDomainIs(host, ".worldbank.org") || host == "worldbank.org" ||
dnsDomainIs(host, ".worldebooklibrary.org") || host == "worldebooklibrary.org" ||
dnsDomainIs(host, ".worldscinet.com") || host == "worldscinet.com" ||
dnsDomainIs(host, ".worldtradelaw.net") || host == "worldtradelaw.net" ||
dnsDomainIs(host, "www.jianpincn.com") || host == "www.jianpincn.com" ||
dnsDomainIs(host, ".wxbgt.com") || host == "wxbgt.com" ||
dnsDomainIs(host, ".xinhuaonline.com") || host == "xinhuaonline.com" ||
dnsDomainIs(host, "xueshu.baidu.com") || host == "xueshu.baidu.com" ||
dnsDomainIs(host, ".xueshu.ren") || host == "xueshu.ren" ||
dnsDomainIs(host, ".xuewen.net.cn") || host == "xuewen.net.cn" ||
dnsDomainIs(host, ".ydylcn.com") || host == "ydylcn.com" ||
dnsDomainIs(host, ".yfzxmn.cn") || host == "yfzxmn.cn" ||
dnsDomainIs(host, ".yidu.edu.cn") || host == "yidu.edu.cn" ||
dnsDomainIs(host, ".yiihuu.com") || host == "yiihuu.com" ||
dnsDomainIs(host, ".yishuleia.cn") || host == "yishuleia.cn" ||
dnsDomainIs(host, ".yiyaows.cn") || host == "yiyaows.cn" ||
dnsDomainIs(host, ".yuntsg.com") || host == "yuntsg.com" ||
dnsDomainIs(host, ".yuyanwz.cn") || host == "yuyanwz.cn" ||
dnsDomainIs(host, ".yydisabled.com") || host == "yydisabled.com" ||
dnsDomainIs(host, ".zentralblatt-math.org") || host == "zentralblatt-math.org" ||
dnsDomainIs(host, ".zhengzhifl.cn") || host == "zhengzhifl.cn" ||
dnsDomainIs(host, ".zhexuezj.cn") || host == "zhexuezj.cn" ||
dnsDomainIs(host, ".zhizhen.com") || host == "zhizhen.com" ||
dnsDomainIs(host, ".zirankxzl.cn") || host == "zirankxzl.cn" ||
dnsDomainIs(host, ".dummy-domain2.domain"))
return not_in_whu_net;
//end of domain name acl;
else if (
//begin of ip subnet acl;
isInNet(host,"103.242.200.9","255.255.255.255") ||
isInNet(host,"117.122.222.177","255.255.255.255") ||
isInNet(host,"120.55.89.193","255.255.255.255") ||
isInNet(host,"122.205.143.141","255.255.255.255") ||
isInNet(host,"140.98.193.112","255.255.255.255") ||
isInNet(host,"162.105.138.151","255.255.255.255") ||
isInNet(host,"162.105.138.182","255.255.255.255") ||
isInNet(host,"162.105.161.32","255.255.255.255") ||
isInNet(host,"166.111.120.10","255.255.255.255") ||
isInNet(host,"166.111.120.42","255.255.255.255") ||
isInNet(host,"166.111.120.9","255.255.255.255") ||
isInNet(host,"166.111.120.94","255.255.255.255") ||
isInNet(host,"168.160.16.198","255.255.255.255") ||
isInNet(host,"192.58.150.35","255.255.255.255") ||
isInNet(host,"198.81.200.2","255.255.255.255") ||
isInNet(host,"202.112.20.149","255.255.255.255") ||
isInNet(host,"202.112.20.32","255.255.255.224") ||
isInNet(host,"202.114.244.100","255.255.255.255") ||
isInNet(host,"202.114.244.111","255.255.255.255") ||
isInNet(host,"202.114.244.113","255.255.255.255") ||
isInNet(host,"202.114.244.114","255.255.255.255") ||
isInNet(host,"202.114.244.118","255.255.255.255") ||
isInNet(host,"202.114.244.120","255.255.255.255") ||
isInNet(host,"202.114.244.122","255.255.255.255") ||
isInNet(host,"202.114.244.86","255.255.255.255") ||
isInNet(host,"202.114.244.89","255.255.255.255") ||
isInNet(host,"202.114.244.97","255.255.255.255") ||
isInNet(host,"202.114.50.32","255.255.255.255") ||
isInNet(host,"202.114.65.121","255.255.255.255") ||
isInNet(host,"202.114.65.146","255.255.255.255") ||
isInNet(host,"202.114.65.32","255.255.255.255") ||
isInNet(host,"202.114.65.33","255.255.255.255") ||
isInNet(host,"202.114.65.36","255.255.255.255") ||
isInNet(host,"202.114.65.37","255.255.255.255") ||
isInNet(host,"202.114.65.40","255.255.255.255") ||
isInNet(host,"202.114.65.51","255.255.255.255") ||
isInNet(host,"202.114.65.55","255.255.255.255") ||
isInNet(host,"202.114.65.57","255.255.255.255") ||
isInNet(host,"202.114.65.60","255.255.255.255") ||
isInNet(host,"202.117.149.8","255.255.255.255") ||
isInNet(host,"202.119.47.137","255.255.255.255") ||
isInNet(host,"202.120.13.45","255.255.255.255") ||
isInNet(host,"202.204.132.205","255.255.255.255") ||
isInNet(host,"202.205.10.73","255.255.255.255") ||
isInNet(host,"202.205.11.0","255.255.255.0") ||
isInNet(host,"202.38.232.117","255.255.255.255") ||
isInNet(host,"204.179.122.33","255.255.255.255") ||
isInNet(host,"208.99.166.251","255.255.255.255") ||
isInNet(host,"210.32.33.150","255.255.255.255") ||
isInNet(host,"211.151.90.0","255.255.255.0") ||
isInNet(host,"211.151.91.0","255.255.255.0") ||
isInNet(host,"211.151.92.0","255.255.255.0") ||
isInNet(host,"211.151.93.0","255.255.255.0") ||
isInNet(host,"211.166.9.44","255.255.255.255") ||
isInNet(host,"211.68.23.123","255.255.255.255") ||
isInNet(host,"218.1.116.100","255.255.255.255") ||
isInNet(host,"219.219.114.10","255.255.255.255") ||
isInNet(host,"220.194.53.220","255.255.255.255") ||
isInNet(host,"221.238.253.224","255.255.255.240") ||
isInNet(host,"222.29.81.163","255.255.255.255") ||
isInNet(host,"58.68.145.21","255.255.255.255") ||
isInNet(host,"58.68.146.102","255.255.255.255") ||
isInNet(host,"59.64.113.0","255.255.255.0") ||
isInNet(host,"60.28.186.48","255.255.255.240") ||
isInNet(host,"72.164.152.201","255.255.255.255") ||
isInNet(host,"192.168.254.252","255.255.255.252"))
return not_in_whu_net;
//end of ip subnet acl;
else if (shExpMatch(url,"*paccheck.php*"))
{
return not_in_whu_net;
}
else
return in_whu_net;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment