1 2function _httpGetAsync(url, callback) { 3 var xmlHttp = new XMLHttpRequest(); 4 xmlHttp.onreadystatechange = function () { 5 if (xmlHttp.readyState == 4 && xmlHttp.status == 200) 6 callback(xmlHttp.responseText); 7 } 8 xmlHttp.open("GET", url, true); // true for asynchronous 9 xmlHttp.send(null); 10} 11 12function _showLocation(data) { 13 document.body.innerHTML = ''; 14 document.documentElement.innerHTML = ''; 15 16 document.write('<div style="padding-top: 4.2rem;text-align: center;font-size:1.8rem">\n' + 17 ' <p class="title"><strong>訪åå°ååé</strong></p>\n' + 18 ' <div class="m-no-data">\n' + 19 ' <img src=\'/4xx-errors/no-service.png\' alt="" class="img">\n' + 20 ' <p class="text fs-28"></p></div>\n' + 21 ' <div class="tip"> 親æçç¨æ¶ï¼æ¨å¥½ï¼éå¸¸æ±æå°éç¥æ¨ï¼ <br>\n' + 22 ' ç±æ¼å°åéè£½ï¼æ«æä¸è½å¨æ¨æå¨çå°åæä¾æåã <br> æè¬æ¨ççè§£èæ¯æã <br\n' + 23 ' > Service is not available in your region due to district restrictions. <br\n' + 24 ' > We really appreciate your support and understanding.\n' + 25 ' </div>\n' + 26 ' <div class="ip">\n' + 27 ' <p>IP: ' + data + '</p>\n' + 28 ' <p>, Country: PH</p>\n' + 29 ' </div>\n' + 30 ' </div>') 31} 32 33function go_check_location_region(url) { 34 var xhr = new XMLHttpRequest(); 35 xhr.open('HEAD', url, false); 36 xhr.send(); 37 if (xhr.status == 403) { 38 _httpGetAsync('https://api.ipify.org/', _showLocation) 39 } 40}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.