I don't have a solution/implementation to the exact request that you made, but do have a couple high-level comments:
It seems to me that relying on internal hostdomain settings to get access to the right functions for the tool is fraught with danger: all it takes is for one user to know that this is how you enable a given featureset, and if he can figure out the hostdomain for a company that's paid you more $$$ to get more features activated, he may then spoof being from that other company, and get extra features for free.
I would think a better way would be to give each company unique license files, and have the application transmit some identifier based on the license file when it's talking with the server (maybe using Public Key Authentication), and have the server only activate the features when given a license key that has those features available.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.