Forum Moderators: phranque

Message Too Old, No Replies

.htaccess rule to make a page available locally only.

         

shabda

6:01 pm on Mar 23, 2006 (gmt 0)

10+ Year Member



I have a php script which i need to call periodically. So I have set up a cron job for the puposes "wget ......". However I think that some one can acess the url to run the script when it is not intended, so I would like to write a .htaccess rule so that if it is called locally, it is allowed to run, but if someone else tries to access it, it fails.

coopster

6:03 pm on Mar 23, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I think if you read through the Apache Module mod_access [httpd.apache.org] you will see how this can be done.