Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    19

    Default 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

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,170
    cPanel/Enkompass Access Level

    Root Administrator

    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

Similar Threads & Tags
Similar threads

  1. cron jobs?
    By chrisbuk in forum Enkompass Discussions
    Replies: 4
    Last Post: 08-23-2011, 09:19 AM
  2. Simple security question about mod-security rule sets.
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-09-2007, 05:37 AM
  3. security risks with cron jobs
    By mher in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-29-2006, 11:32 AM
  4. cPanel cron jobs or cron.daily , cron.hourly , etc.?
    By spaceman in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-01-2004, 08:16 PM
  5. Is enabling cron jobs for Cpanel a security risk?
    By silversurfer in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-29-2003, 01:58 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube