Think about Loose Coupling | |
PerlMonks |
Re: Client IP questionby thomas895 (Deacon) |
on Dec 21, 2015 at 21:24 UTC ( [id://1150892]=note: print w/replies, xml ) | Need Help?? |
I'm assuming you're providing some kind of endpoint that webmasters (your clients) can link to/embed/whatever in their web pages. These typically work as follows: when your customer subscribes to your service, you provide some string that identifies their application. If you've ever used any commercial web analytics service, it's very similar. Perhaps you provide the customer something like this to embed in their webpage: <script src="http://example.com/my_cool_javascript.pl?id=abc1234"></script>...where that "abc1234" can be any string that your business uses to uniquely identify its customers. You would have to make it so that this value is also included in any other web requests that this javascript might make. When/if a customer's subscription expires, my_cool_javascript.pl will stop serving the javascript that it once did. You would need to devise some way of checking if a customer still has a subscription to your service.
-Thomas "Excuse me for butting in, but I'm interrupt-driven..."
In Section
Seekers of Perl Wisdom
|
|