This content originally appeared on Bram.us and was authored by Bramus!
Good post — with accompanying code — on PHP.Watch on how to tighten the almighty curl:
- Limit Curl Protocols
- Do not enable automatic redirects unless absolutely necessary
- If redirects are enabled enabled, limit allowed protocols (if different from #1 above)
- If redirects are enabled, set a strict limit
- Set a strict time-out
- Do not disable certification validation, or enforce it
- Disable insecure SSL and TLS versions
This content originally appeared on Bram.us and was authored by Bramus!
Print
Share
Comment
Cite
Upload
Translate

APA
Bramus! | Sciencx (2023-12-05T16:07:01+00:00) » PHP Curl Security Hardening. Retrieved from https://www.scien.cx/2021/02/02/php-curl-security-hardening/.
MLA" » PHP Curl Security Hardening." Bramus! | Sciencx - Tuesday February 2, 2021, https://www.scien.cx/2021/02/02/php-curl-security-hardening/
HARVARDBramus! | Sciencx Tuesday February 2, 2021 » PHP Curl Security Hardening., viewed 2023-12-05T16:07:01+00:00,<https://www.scien.cx/2021/02/02/php-curl-security-hardening/>
VANCOUVERBramus! | Sciencx - » PHP Curl Security Hardening. [Internet]. [Accessed 2023-12-05T16:07:01+00:00]. Available from: https://www.scien.cx/2021/02/02/php-curl-security-hardening/
CHICAGO" » PHP Curl Security Hardening." Bramus! | Sciencx - Accessed 2023-12-05T16:07:01+00:00. https://www.scien.cx/2021/02/02/php-curl-security-hardening/
IEEE" » PHP Curl Security Hardening." Bramus! | Sciencx [Online]. Available: https://www.scien.cx/2021/02/02/php-curl-security-hardening/. [Accessed: 2023-12-05T16:07:01+00:00]
rf:citation » PHP Curl Security Hardening | Bramus! | Sciencx | https://www.scien.cx/2021/02/02/php-curl-security-hardening/ | 2023-12-05T16:07:01+00:00
https://github.com/addpipe/simple-recorderjs-demo