Jump to content

Security: allow_url_fopen is enabled


shinokada

Recommended Posts

I used PHPsecinfo to check my hosting security. http://phpsec.org/

It gives the following warning.

++++++++++++++

Warning

allow_url_fopen is enabled. This could be a serious security risk. You should disable allow_url_fopen and consider using the PHP cURL functions instead.

 

++++++++++++++

http://phpsec.org/projects/phpsecinfo/tests/allow_url_fopen.html

 

It recommends the followings.

 

+++++++++++++++

Recommendations

 

You should disable allow_url_fopen in the php.ini file:

 

; Disable allow_url_fopen for security reasons

allow_url_fopen = 'off'

 

The setting can also be disabled in apache's httpd.conf file:

 

# Disable allow_url_fopen for security reasons

php_flag  allow_url_fopen  off

 

For remote file access, consider using the cURL functions that PHP provides.

+++++++++++++

 

But I don't have access to php.ini since it is hosted.

How can I do it?

Is it cretical to do it?

 

Thanks in advance.

 

Link to comment
https://forums.phpfreaks.com/topic/168904-security-allow_url_fopen-is-enabled/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.