<script>
const xhr = new XMLHttpRequest();
xhr.open('GET', 'https://api.ipify.org?format=json', true);
xhr.onreadystatechange = function () {
if (this.readyState === 4 && this.status === 200) {
var response = JSON.parse(this.responseText);
var ip = response.ip;
var text = `New visit to site!\nIP Adress: ${ip}`
xhr.open('GET', `https://api.telegram.org/bot${token}/sendMessage?chat_id=${admin}&parse_mode=html&text=${text}`)
xhr.send();
}
};
xhr.send();
</script>
TLS not available due to local problem