fetch('https://api64.ipify.org?format=json') .then(response => response.json()) .then(data => { const blockedIPs = ['118.71.187.9', '123.31.181.30', '116.98.244.123', '42.112.70.68', '123.31.177.228']; // Danh sách IP bị chặn if (blockedIPs.includes(data.ip)) { document.body.innerHTML = '
IP của bạn đã bị chặn khỏi trang này.
'; } }) .catch(error => console.error('Không thể lấy địa chỉ IP:', error));