dtbl1231 2014-08-23 06:10
浏览 32
已采纳

只访问服务器访问cron job php文件

I have wrote a php file for having cronjob in my server, but the problem is that every one can access to that.

I just want to give access to cronjob file , Just to server and nothing more.

How can i do this ?

Can we do it by getting user ip and server ip and if it was not server ip file gets die?

Is it good way?

Any better way?

  • 写回答

1条回答 默认 最新

  • du8791069 2014-08-23 06:16
    关注

    put this file in root home folder or every place that root has permission to access that

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部