CGI.user_agent will tell you what client is making the call
On 7 June 2012 08:38, Marco van den Oever <[email protected]>wrote: > I don't know if the task still runs when i add that parameter, my thought > is that if i add it i can fetch it before the execution code with <cfif > url.password eq "mypassword">, but i might be totally wrong. > > I have no security with permissions set. > > What do you mean with user agent? > > Op donderdag 7 juni 2012 00:51:27 UTC+2 schreef AJ Mercer het volgende: > >> wouldn't the password=password just be added to the attributes of the task >> and so when you hit the farcry url with the object id of the task >> it will still run? >> >> If you added security to check if you have permissions to run it from >> within the webtop, >> it would stop running as a CF task. >> >> >> Maybe you could look at the user agent to see if it is CF running the >> task, and if not check for password=password. >> >> >> Does cfide/administrator user CFLOGIN? >> If so, maybe you could test for that and web top secrity to see if it is >> a logged in user runing the task?? >> >> >> >> On 7 June 2012 05:11, Marco van den Oever <[email protected]>wrote: >> >>> Ah ok thanks for the info :) So as a parameter i could add >>> "password=mypassword"? >>> Where can i find the info of the possibilities of the scheduled task >>> parameters? >>> >>> Op woensdag 6 juni 2012 22:55:52 UTC+2 schreef Blair McK het volgende: >>> >>>> If someone knew the objectid of the task then they could run it >>>> externally. That can be useful for debugging, but can be a problem for >>>> security. The parameters are added to the query string of the task. You can >>>> use it to configure the task - or add some very basic authentication. :) >>>> >>>> Blair >>>> On Jun 7, 2012 5:12 AM, "Marco van den Oever" < >>>> [email protected]> wrote: >>>> >>>>> And what is the field "Parameters for?" >>>>> >>>>> Op woensdag 6 juni 2012 21:09:34 UTC+2 schreef Marco van den Oever het >>>>> volgende: >>>>>> >>>>>> Hi all, just wondering, if i create i scheduled task through the >>>>>> webtop admin, do i need to protect it with a password (surrounding code >>>>>> with if password is eq to) or is it already not possible to reach the >>>>>> scheduled task somehow? >>>>> >>>>> -- >>>>> You received this message cos you are subscribed to "farcry-dev" >>>>> Google group. >>>>> To post, email: [email protected] >>>>> To unsubscribe, email: >>>>> farcry-dev+unsubscribe@**googleg**roups.com<farcry-dev%[email protected]> >>>>> For more options: >>>>> http://groups.google.com/**group**/farcry-dev<http://groups.google.com/group/farcry-dev> >>>>> ------------------------------****-- >>>>> Follow us on Twitter: http://twitter.com/farcry >>>> >>>> -- >>> You received this message cos you are subscribed to "farcry-dev" Google >>> group. >>> To post, email: [email protected] >>> To unsubscribe, email: >>> farcry-dev+unsubscribe@**googlegroups.com<farcry-dev%[email protected]> >>> For more options: >>> http://groups.google.com/**group/farcry-dev<http://groups.google.com/group/farcry-dev> >>> ------------------------------**-- >>> Follow us on Twitter: http://twitter.com/farcry >>> >> >> >> >> -- >> >> *AJ Mercer* >> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org >> community="Open" /> <http://webonix.org> >> http://twitter.com/webonix >> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/> >> >> -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: [email protected] > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > -- *AJ Mercer* <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org community="Open" /> <http://webonix.org> http://twitter.com/webonix Railo Community Manager <http://www.getrailo.org/index.cfm/community/team/> -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
