File_get_contents PHP function stopped to work

#1

Hi there,
It’s my fist post here. If I do any mistakes please pardon me.

I have a PHP Laravel based application.
I had to use php function, file_get_contents within my application.
After tied with cloud flare it’s stooped to work and creates major blockage to run my regular functionality of the application.
Could you please suggest, how do I run or keep the “php function, file_get_contents” while using cloud flare as well.

1 Like

#2

Check your Firewall Events Log in the Cloudflare Dashboard to see if it is triggering a block. file_get_contents can be risky to use and Cloudflare’s WAF might be blocking suspicious requests.

1 Like

#3

I have moved the site form cloud flare. Once I’m confirm that I could disable this block then I will back to Cloud flare.
Could you help me to show a screenshot of this setting that

0 Likes

#4

Hello masidur17,

Here is a screen cap of the “Managed Ruleset” sdayman
mentioned.
In the Firewall settings:
Managed Rules [tab]

Cloudflare Managed Ruleset [heading]

below this heading is a group of toggle
buttons on/off.

Some are CMS specific, others are intended to deal with bots, XSS attacks
and other pest. Meaning you might need to test a combo of rules that
helps fix your issue.

A red arrow points to PHP toggle.

1 Like

#5

Thanks, it is really helpful.
I have free account and I’m not getting the option you have shown.

0 Likes

#6

Have a look at ‘Managed Rules’

0 Likes