PageSourceSearch

https://0504z.com/4xx-errors/location_region_check.js

js 0504z.com collected 2026-10-09 04:28:24 UTC 1,669 bytes, 40 lines download raw bytes

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.