errors caused by hosting provider blocking php allow_url_fopen
-
Just an fyi
I had to alter two php modules (run.php & recaptcha_v3.php) that used the remote form of file_get_contents(). As my hosting provider does not permit php option “allow_url_fopen” to be set to ON (XSS vulnerability). This causes the file_get_contents calls to fail.
In run.php I simply replaced the remote form of file_get_contents to a local form. Used server directory path in call, instead of url path.
In recaptcha_v3.php I replaced the remote file_get_contents with a curl call that works on servers that do not allow php remote code embeds.
Great contact form plugin once I got it working with my hosting service, thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘errors caused by hosting provider blocking php allow_url_fopen’ is closed to new replies.