English 中文(简体)
Cron Kohana Action and prevent CSRF
原标题:Cron Kohana action and prevent CSRF

我需要呼吁科加纳采取行动。 我只能使用该代码限制服务器IP:

$allowedIps = array( 127.0.0.1 , ::1 );
if(in_array($_SERVER[ REMOTE_ADDR ],$allowedIps))

我是否需要像象征性的一样预防孤儿院? 服务器是平行的甚高频。 我不认为网络上的任何用户会浏览其他网页,从而容易阅读通用报告格式。

如果需要,我可以想防止这种情况的唯一途径是,在神拉纳呼吁的外面制造一个无法进入的PHP,产生一个象征性的、可节省的纸面,并通过外部通过把这个信传给Kohaana。

http://forum.kohanaframework.org/discussion/1255/load-kohana- from-external-appscript/p1

最佳回答

如果要通过当地机器(根据你的代码样本)订购该文字的话,那么你可以简化,确保该守则通过国家扫盲委员会发出。

if (Kohana::$is_cli)
{
    // Run function
}

至于CSRF象征性,你不需要。 欧研中心通过利用他人点击代表他们采取行动的链接开展工作。 由于你能够通过浏览器(你能够做的灯塔)接触信道控制器/行动,你无需担心。

问题回答




相关问题
Cron on XAMPP (Mac OS)

I have installed XAMPP server on my Mac OS, how to setup a cron job on it? My requirement is that i want to call a php script at regular intervals . Thanks

Call function periodically in Java

we need run one function periodically in Java web application . How to call function of some class periodically ? Is there any way that call function when some event occured like high load in server ...

Cron in Google App Engine

I have made an app using Google App Engine in python of weekly Project and assessment report submitting. I want to check that on Friday who have submitted the report and who don t just send the ...

Mysql trigger/events vs Cronjob

I have an auction website which let my users place an unlimited amount of autobiddings. To monitor these autobiddings something has to check the database every second. My question is if it is ...

Run a PHP script every second using CLI

I have a dedicated server running Cent OS with a Parallel PLESK panel. I need to run a PHP script every second to update my database. These is no alternative way time-wise, it needs to be updated ...

Batch Job Dependencies Using Open Source/Free Software

I run a large data warehouse plant where we have a lot of nightly jobs running concerruently however many have dependencies on a extract or data load process before they start. Currently we use an ...

Automatic Database reads/write every second

I am making an auction website, which has an auto-bid system. This system lets people make biddings without having to be there. My question is how to implement such a system. I have made the php ...

热门标签