Hi Phill,

Yes, this will work fine. There are many items set via HTTP that do  
not get set via CRONTAB.

some HTTP items that are set:
HTTP_HOST
HTTP_USER_AGENT
REMOTE_ADDR
REMOTE_PORT
SERVER_PROTOCOL

to name just a few. Then some set via CRONTAB
MAILTO
PWD
LOGNAME
SHLVL

So it will be very straight forward on building the logic to restrict  
usage to crontab. Thanks again.

Sincerely,
Mike
-- 
Mike Brandonisio          *    Web Hosting
Tech One Illustration     *    Internet Marketing
tel (630) 759-9283        *    e-Commerce
[EMAIL PROTECTED]    *    http://www.jikometrix.net

     JIKOmetrix - Reliable web hosting


On Jul 27, 2006, at 9:46 AM, Phill Sparks wrote:

> The most secure way would be to keep it outside of the web-root.  Is
> the script PHP?  It would be possible to check the differences between
> a server ran script and a cli ran script.  You'll probably find many
> things different, for example the contents of $_SERVER.
>
> Phill
>
> On 27/07/06, Mike Brandonisio <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>>  I'm creating a re-billing script to process subscription renewals  
>> for
>>  a site. I want to use crontab to check once a day for expiring
>>  accounts and re-bill the credit card. This script will only be run
>>  via crontab. Is there a technique that I can apply to prevent access
>>  to the script via HTTP and only execute it via crontab. One thought
>>  was to put the script outside of the public root.
>>
>>  Sincerely,
>>  Mike
>>  --
>>  Mike Brandonisio * Web Hosting
>>  Tech One Illustration * Internet Marketing
>>  tel (630) 759-9283 * e-Commerce
>>  [EMAIL PROTECTED] * http://www.jikometrix.net
>
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to