Category: PHP, javascript

be with us , with our site https://khabarkaav.ir Perhaps for the security of your site you need to know that what is real ip users when that using of vpn or proxy or socks :What is their real IP?That you can follow more closely Today we want to find out real ip users when time that they using of proxy or vpnWebRTC technology allows us to achieve thisTo get started, create a ‘js’ file called ‘getrealip.js’ and copy the following code: function findIP(onNewIP) {var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;var pc = new myPeerConnection({iceServers: [{urls: “stun:stun.l.google.com:19302”}]}),noop = function() {},localIPs = {},ipRegex = /([0–9]{1,3}(\. 0–9]{1,3}){3}|[a-f0–9]{1,4}(:[a-f0–9]{1,4}){7})/g,key;function ipIterate(ip) {if (!localIPs[ip]) onNewIP(ip);localIPs[ip] = true;}pc.createDataChannel(“”);pc.createOffer(function(sdp) {sdp.sdp.split(‘\n’).forEach(function(line) {if (line.indexOf(‘candidate’) < 0) return;line.match(ipRegex).forEach(ipIterate);});pc.setLocalDescription(sdp, noop, noop);}, noop);pc.onicecandidate = function(ice) {if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;ice.candidate.candidate.match(ipRegex).forEach(ipIterate);};}var ul = document.createElement(‘ul’);ul.textContent = ‘Your IPs are: ‘document.body.appendChild(ul);function addIP(ip) {console.log(‘got ip: ‘, ip);var li = document.createElement(‘li’);li.textContent = ip;ul.appendChild(li);}findIP(addIP); Then Then create the php file with any name and put it in your root server or host folderEnter the following code into the php file and then save: And in final you see output in screen :) reference:https://khabarkaav.ir/%d9%be%db%8c%d8%af%d8%a7-%da%a9%d8%b1%d8%af%d9%86-ip-%d9%88%d8%a7%d9%82%d8%b9%db%8c-%da%a9%d8%a7%d8%b1%d8%a8%d8%b1-%d8%a7%da%af%d8%b1-%d8%a7%d8%b2-vpn-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%da%a9/ Written by
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners