Re: locking to domain

From: Date: Fri, 18 Jul 2003 16:59:20 +0000
Subject: Re: locking to domain
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155808@lists.php.net to get a copy of this message
On Saturday 19 July 2003 00:00, Ryan A wrote: > I want to make sure my scripts can be executed on only one domain (or > localhost/ 127.0.0.1)...it should not matter if its > http://somesite.com/myscript.php > or http://somesite.com/~blah/myscript.php > or http://blah.somesite.commyscript.php > or http://somesite.com/1/2/asdf/234/myscript.php > > It should only work on "somsite.com" > > Any ideas on how i can do this? I've seen this done on some old perl > scripts but how in php? echo $_SERVER['HTTP_HOST'] -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* "... an experienced, industrious, ambitious, and often quite often picturesque liar." -- Mark Twain */

« previous php.general (#155808) next »