ColdFusion Scheduled Task - Security Question

Hi,
I'd like to use the CF administrator to schedule a weekly task to do some database cleanup.  Is there a way I can prevent anyone from running this public page other than making the name obscure as no one will see it on a web site?

Thanks,
hefterr

LVL 1
hefterrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

_agx_Commented:
A very simple approach might be to have the CF task pass some sort of url variable.  Something unguessable like a UUID or hashed secret (ie hash(secretValue) ...) Then have the cfm page check the value, and only proceed if it is correct. Otherwise, log the attempt and abort or redirect to some other page.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hefterrAuthor Commented:
Hi aqx,
OK, I was also thinking along those lines.  Just wasn't sure if the was "up to par".  In addition, I do you think it's a good idea checking for the HTTP_REFERER= as I assume it will be blank if not itiated from a browser.

Thanks,
hefterr
0
_agx_Commented:
Well, obviously it's not totally hack proof. You'd need something more robust for that.  But it's far better than just obscuring the file name.
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:35695#180078

Checking it the referrer certainly couldn't hurt. Just keep in mind it can be easily faked (or missing altogether). So don't depend on that value alone.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.