locking to domain
| From: | Ryan A | Date: | Fri, 30 Jan 2004 03:13:18 +0000 |
| Subject: | locking to domain | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176296@lists.php.net to get a copy of this message | ||
Hey all,
I have a rather simple need that I am sure a lot of you must have gone
through,
I need a bit of code so that the script can run only at "something.com"..I
am generating
a MD5 license "key" based on that...
Problem that I am having is.. wont I need 2 "keys" to see if the domain is
with a "www"
(eg www.something.com) or is being run without the "www" (eg:
http://something.com) ?
I'm pretty sure it can be done with one key....but how?
I tried google with
http://www.google.com/search?q=php+locking+script+to+domain&hl=en&lr=&ie=UTF-8&oe=utf-8&start=10&sa=N
and even hotscripts.com and the other search results without any success...
anybody have this handy bit of code I could borrow? :-)
Thanks,
-Ryan