Message Boards Message Boards

0
|
3866 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Count Visitors / IP Address

Posted 9 years ago

Is it possible to count visitors of a deployed object? and eventually record the IP Addresses of the guests?

POSTED BY: Sandu Ursu
Posted 8 years ago

So far, I have only managed to create a Databin with the ID: 9J85249W. Then I deploy the following task:

CloudDeploy[
      DatabinAdd[
       Databin["9J85249W"], <|
        "info" -> Cases[Import["http://ipinfo.io/", "XMLObject"], 
           XMLElement["pre", {"class" -> "example-results-basic"}, {x__}] :> x, \[Infinity]][[1]]|>];
      Style["Thank you for your interest!", 
       RGBColor[0.368417`, 0.506779`, 0.709798`], 
       FontFamily -> "Helvetica", Italic, 24], 
      Permissions -> "Public"] // URLShorten

which, let's say, gives the url: https://wolfr.am/9JlzTE9h.

The problem is that it works only for me. That is, it does not record other guests but me.


I got, actually, a visitor from LA, California. I suppose he was recorded because he ran the deployment from Mathematica.

There is this $RequesterAddress example, but I have no idea how to modify it to work for my problem.

POSTED BY: Sandu Ursu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract