dtbl1231 2014-08-23 14: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 14:16
    关注

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

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

报告相同问题?

悬赏问题

  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型
  • ¥50 buildozer打包kivy app失败
  • ¥30 在vs2022里运行python代码
  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 三菱伺服电机按启动按钮有使能但不动作