Stop all php requeste

Hello, is there a easy way to stop all php request to our server’s

we don’t have php but get a lot of errors in our server, from people trying to use php

[Wed Jul 17 17:00:07.092944 2019] [php7:error] [pid 3243:tid 140349766809344] [client 10.0.0.187:56782] script ‘/var/www/html/qunhuang.php’ not found or unable to stat
[Wed Jul 17 17:00:07.350385 2019] [php7:error] [pid 3243:tid 140349766809344] [client 10.0.0.187:56782] script ‘/var/www/html/hannan.php’ not found or unable to stat
[Wed Jul 17 17:00:07.585939 2019] [php7:error] [pid 3243:tid 140349766809344] [client 10.0.0.187:56782] script ‘/var/www/html/confie.php’ not found or unable to stat

So for one dns we would like to block all *.php requests

block all for
api.test.com/*.php

Can we do this with page rule ? or is there other ways ?

Thanks

I’m experiencing same problem in my site .

You can create a Firewall Rule with the logic:

If URI Path contains .php
then
Challenge or Block

1 Like

Thansk :slight_smile:

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.