WordPress.org

Ready to get started?Download WordPress

Forums

XCloner - Backup and Restore
[resolved] Cronjob with external service (4 posts)

  1. m266
    Member
    Posted 3 years ago #

    I can only use cron jobs to an external service (eg cronjob.de).
    My workarround:
    Changes in cloner.cron.php:

    ####### VERIFY IP ACCESS
    /*
    $ip_list = @explode("\r\n", $_CONFIG['cron_ip']);
    $ip_list[] = $_SERVER['SERVER_ADDR'];
    $curent_ip = $_SERVER["REMOTE_ADDR"];

    if(!in_array($curent_ip, $ip_list)){

    echo "Access Denied for ip $curent_ip!";
    exit;

    }
    */
    #########################

    After disable this function I can use exterel cron jobs!

    Idee for a new feature:
    Disabling IP access control in settings for user with externel cron job.

    http://wordpress.org/extend/plugins/xcloner-backup-and-restore/

  2. xcloner
    Member
    Plugin Author

    Posted 3 years ago #

    I do not advise doing this hack as it leaves your cron link vulnerable to external access, instead, simple add the new service ip address and it should work, if not, add at least a password verification

    Ovidiu

  3. m266
    Member
    Posted 3 years ago #

    I know that this change is a security risk, but the hoster cronjob.de sometimes changes the IP.
    How can I use the WordPress cron job?

  4. m266
    Member
    Posted 3 years ago #

    I have resolved this problem:

    Install the plugin "Utopia" for using cronjobs with XCloner.
    Works fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic