#1 (permalink)  
Old 06-06-2009, 03:53 AM
Registered User
 
Join Date: Nov 2008
Posts: 17
Frano8 is on a distinguished road
Mod security effecting cron jobs

I am having problems in cron jobs running due to mod security I thinks this is the cron job I want to run:

GET "http://www.path_to_domain/admin/currencies.php?page=1&cID=5&action=update"

but i always receive an email error and the follwoing error in mod_security:

Access denied with code 406 (phase 2). Match of "rx ^apache.*perl" against "REQUEST_HEADERS:User-Agent" required. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "58"] [id "990011"] [msg "Request Indicates an automated program explored the site"] [severity "NOTICE"]

406

Is there anyway around this?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-06-2009, 04:27 AM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,886
Infopro is on a distinguished road
Lightbulb

You could disable that rule or just change this up a bit. I suggest changing it.

This is probably not exactly what you need, but should give you an idea what would work.


Code:
php -q -f /home/username/public_html/admin/currencies.php?page=1&cID=5&action=update /home/username/public_html/admin/ cron 0 10
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple security question about mod-security rule sets. jols cPanel and WHM Discussions 1 08-09-2007 04:37 AM
Cron Jobs Chriz1977 cPanel and WHM Discussions 3 06-12-2007 08:26 AM
security risks with cron jobs mher cPanel and WHM Discussions 4 04-29-2006 10:32 AM
cPanel cron jobs or cron.daily , cron.hourly , etc.? spaceman cPanel and WHM Discussions 6 01-01-2004 07:16 PM
Is enabling cron jobs for Cpanel a security risk? silversurfer cPanel and WHM Discussions 1 10-29-2003 12:58 PM


All times are GMT -5. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc