Is Curl() function safe?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kvijayhari
    New Member
    • Jul 2007
    • 24

    Is Curl() function safe?

    hi

    I've decided to use curl() to fetch the links from a website page from my server.

    If the page any harmful executable files, will my server execute that when i'm using the curl() function? Is is safe to use curl() modules for this puropose?

    What will the security measures i should take if i continue to use curl() functions?
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    I'd take the same precautions as you would when YOU, yourself, browse the internet.

    curl() doesn't just wander off and click on links. It just gets the result of the page, the exact code you would get in the browser source code if you visited the page yourself.

    many things won't work, ie javascript, etc because it just gets the source code, it doesn't run it, so in that sense it's "safer".

    Comment

    Working...