0
我在社交媒體網絡中分享我的域名鏈接。我想監視用戶點擊鏈接從哪個社交媒體,他們的IP地址,他們的國家。我使用下面的代碼來獲取信息。獲取客戶的IP地址和國家和以前的點擊頁面網址
Dim url As String = "http://ipinfo.io"
Try
Dim request As WebRequest = WebRequest.Create(url)
Dim ws As WebResponse = request.GetResponse()
Dim jsonString As String = String.Empty
Using sreader As System.IO.StreamReader = New System.IO.StreamReader(ws.GetResponseStream())
jsonString = sreader.ReadToEnd()
End Using
Dim jsSerializer As System.Web.Script.Serialization.JavaScriptSerializer = New System.Web.Script.Serialization.JavaScriptSerializer()
Dim Information As ClientInfo = jsSerializer.Deserialize(Of ClientInfo)(jsonString)
Catch ex As Exception
End Try
但它給我的信息託管的IP地址,以及我的網站的國家。