1async function defend_wp_firewall_get_org_IP() { 2 if (typeof defend_wp_firewall_common_blocklist_obj != 'undefined' && defend_wp_firewall_common_blocklist_obj.ipify_ip) { 3 4 return true; 5 } 6 try { 7 const ORG_IP_DWP = await fetch("https://api.ipify.org?format=json"); 8 let thisIP = await ORG_IP_DWP.json(); 9 if (typeof thisIP != 'undefined' && thisIP && thisIP.ip) { 10 defend_wp_firewall_save_original_ip_got_from_ipify(thisIP.ip); 11 } 12 } catch (error) { 13 console.error('ipify Error:', error); // Handle errors 14 } 15 16} 17 18function defend_wp_firewall_save_original_ip_got_from_ipify(thisIP) { 19 var data = new URLSearchParams({ 20 'action': 'save_ipify_ip_dfwp', 21 'security': defend_wp_firewall_common_blocklist_obj.security, 22 'ip': thisIP, 23 }); 24 25 fetch(defend_wp_firewall_common_blocklist_obj.ajaxurl, { 26 method: 'POST', 27 body: data 28 }) 29} 30 31defend_wp_firewall_get_org_IP();
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.