PageSourceSearch

https://www.commercialistatelematico.com/wp-content/cache/min/1/wp…/js/get-user-ip.js?ver=1788857147

js commercialistatelematico.com collected 2026-09-26 10:05:14 UTC 1,125 bytes, 4 lines download raw bytes

1jQuery(document).ready(function($){const COOKIE_CLIENT_PUBLIC_IP="client_public_ip";fetch('https://api.ipify.org?format=json').then(res=>res.json()).then(data=>{let ipData=data.ip;if($('.client_login_ip').length){$('.client_login_ip').val(ipData)}
2fetch('/wp-admin/admin-ajax.php',{method:'POST',credentials:'same-origin',headers:{'Content-Type':'application/x-www-form-urlencoded',},body:'action=save_public_ip&ip='+encodeURIComponent(ipData)}).then(res=>res.json()).then(response=>{if(response.success){document.cookie=COOKIE_CLIENT_PUBLIC_IP+"="+ipData+"; path=/"}else{if(response?.data&&response.data.code==="not_is_user_logged_in"&&getCookie(COOKIE_CLIENT_PUBLIC_IP)){delete_cookie(COOKIE_CLIENT_PUBLIC_IP)}}}).catch(err=>{console.error('Errore AJAX:',err)})}).catch(err=>{console.error('Errore IP API:',err)});function getCookie(name){function escape(s){return s.replace(/([.*+?\^$(){}|\[\]\/\\])/g,'\\$1')}
3var match=document.cookie.match(RegExp('(?:^|;\\s*)'+escape(name)+'=([^;]*)'));return match?match[1]:null}
4function delete_cookie(name){document.cookie=name+'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'}})

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.