Forums

BulletProof Security
[resolved] Cron jobs not running when with BulletProof .htaccess - 403 error (3 posts)

  1. phildegruchy
    Member
    Posted 8 months ago #

    Hi there,

    I'm loving the plugin but have a serious problem where by cron jobs are not running when the new .htaccess file is active. If I revert to the old one then the cron jobs work again.

    The cron jobs are running a php file from with the plugin directories. The php script has a check in it to make sure that it will only execute if being run from the web server. The cron job looks like this:

    wget http://www.domain.com/wp-content/plugins/my_plugin/cron_import.php > /dev/null 2>&1

    Can you let me know if there is something within the .htacess file that I need to change to allow the above to run.

    Thanks,
    Phil

    http://wordpress.org/extend/plugins/bulletproof-security/

  2. phildegruchy
    Member
    Posted 8 months ago #

    I think I might have sorted it out myself! I added the following and all seems to work fine now! :)

    RewriteCond %{REQUEST_URI} ^/wp-content/plugins/my_plugin/ [NC]
    RewriteRule . - [S=13]

    Thanks,
    Phil

  3. AITpro
    Member
    Plugin Author

    Posted 8 months ago #

    Hmm I'm actually surprised that the plugin skip/bypass rule is working to fix this particular issue with wget, but that is great.

    And just an FYI on wget vs lynx -source.

    An alternative Cron command line command that is safer to use is lynx -source instead of wget -O, but lynx has some limitations so you may need to use wget for your purposes.

Reply

You must log in to post.

About this Plugin

About this Topic