Jump to content

Locking a cron file from outside use


cooldude832

Recommended Posts

this is more a server managment issue, not php

 

but what you want to do is move the php file below your public_html folder so its not available from the internet.  then call the file using the absolute server patch eg: /home/myaccount/myfile.php

 

you could also do it using a htaccess file to lock down access to the file but the above way is the safest because they would have to obtain your hosting account password to get at the file.

well I am running it via LYNX and it is managed through my CMS so I can't put it below my web directory.

 

 

 

then create a folder called "cron" or somthign like that and put a htaccess file in it that limits access to localhost (or 127.0.0.1, same thing)

 

google is you best freind here

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.