allow_url_fopen required
-
Hello,
I was reviewing the log file the CrowdSec plugin created and found several entries all following this pattern:
2022-01-02T13:06:02.594325+00:00|300|{"type":"UNKNOWN_EXCEPTION_WHILE_BOUNCING","ip":"XX.XXX.XXX.XX","message":"file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0","code":2,"file":"/home/XXX/wp-content/plugins/crowdsec/vendor/crowdsec/bouncer/src/RestClient.php","line":105}
After I changed the PHP setting to allow this function, I now get log entries like this:
2022-01-02T13:39:12.183038+00:00|200|{"type":"CLEAN_IP","ip":"13.239.163.169","cache":"miss"}
Which I assume this is more correct.
I have the function
allow_url_fopen
disabled for security reasons, and wanted to know if this plugin can only operate with this function enabled. Even though everyone says having this enabled is a giant security risk.Would there be anyway to use this plugin without using this function, i.e. unix sockets?
Also you have an entry here to explain the standalone mode, but there isn’t any information there.
- The topic ‘allow_url_fopen required’ is closed to new replies.