Web Hosting Talk







View Full Version : Mod Security problem


JediKnight2
03-16-2007, 11:53 PM
How can I let a certain php file run without being bothered by Mod Security...

This is the error I get

[Fri Mar 16 23:46:59 2007] [error] [client XX.XX.XXX.XX] ModSecurity: Warning. Match of "rx ^apache.*perl" against "REQUEST_HEADERS:User-Agent" required. [id "990011"] [msg "Request Indicates an automated program explored the site"] [severity "NOTICE"] [hostname "www.***********"] [uri "/hosting/collector.php"] [unique_id "NU6sAkAipDcAAEpWZU4AAAAM"]

Basically I have a cron job that uses wget like this

wget http://www.xx***********/hosting/collector.php >/dev/null

to update an invoice system collector.

tanfwc
03-17-2007, 01:39 AM
Is the cron running on the same machine as the file is hosted? If so, run this command instead for cron

php -q /full/path/to/file/hosting/collector.php > /dev/null

Enjoy!

Ramprage
03-17-2007, 10:58 AM
Contact your hosting provider and report the problem with their ruleset.