Set php file permissions so only my server's curl can run

Posted by robr on Stack Overflow See other posts from Stack Overflow or by robr
Published on 2010-04-17T17:31:04Z Indexed on 2010/04/17 17:33 UTC
Read the original article Hit count: 158

Filed under:
|
|
|

I have a PHP script that I don't want anyone to be able to run through their browser.

It sends emails and is called via curl by my server's cron, yet needs to be in the public www directory. What permissions or owner do I need to set the file to to allow only my server's curl to execute (or do I mean read) the file?

I'm on centos.

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about curl