On 2014-05-27 12:40, [email protected] wrote:
On 2014-05-27 11:38, Stephen Russell wrote:
Read this as well:
http://ipecho.net/developers.html
Cache your return! You don't need to fire off for every user all the
time.
Eh, it's just on front-door access and shouldn't take long, right?
Besides...isn't there a possibility the this person's IP address could
change over time??
Aah, I see the light now after reading that page:
------------------------
PS: Please don't abuse the system, try to cache the IP for a reasonable
amount of time before doing another request.
PS2: This limit shouldn't hinder development, but there's a limit in
place now, because the above suggestion appears to have been lost on
some users:
Every IP that has a request rate of 10 calls / minute over a period of
30 minutes. Will get blocked for 24 hours.
Although the limit is clear, it would still be in everyone's interrest
if you could cache the IP for a longer period of time.
------------------------
So I'll stuff the value in the registry along with a date/time stamp and
only seek out the site for a "check-in" if older than a period of 'x'.
I'm taking that code Dave gave and incorporating this ipecho.net site as
a backup in case the first site fails to give a response too.
Thanks!
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.