{"id":21476,"date":"2023-09-20T11:27:51","date_gmt":"2023-09-20T09:27:51","guid":{"rendered":"https:\/\/wpbeveiligen.nl\/?p=21476"},"modified":"2023-07-13T11:29:18","modified_gmt":"2023-07-13T09:29:18","slug":"managing-cronjobs-in-wordpress","status":"publish","type":"post","link":"https:\/\/wpbeveiligen.nl\/en\/managing-cronjobs-in-wordpress\/","title":{"rendered":"Managing CronJobs in WordPress"},"content":{"rendered":"

What a Cronjob is according to Wikipedia: A Cronjob<\/b> or crontab is a Unix command that executes a program or script at a scheduled time. Cronjobs are used in Unix-like systems such as Linux, BSD, and Apple Macintosh. The word ‘cron’ comes from the English word chronograph, which is a type of stopwatch.<\/em><\/p>\n

What Cronjobs Do in WordPress<\/h2>\n

Cronjobs are used to periodically check for updates. Many plugins also use Cronjobs to perform tasks such as updating and removing information. You cannot simply disable the Cronjob function in WordPress.<\/p>\n

Some plugins that work with Cronjobs:<\/strong><\/p>\n

    \n
  1. WooCommerce<\/strong> – for storing and removing user data. Viewed products are stored or removed after a certain period of time.<\/li>\n
  2. UpdraftPlus<\/strong> – for creating periodic backups<\/li>\n
  3. Yoast SEO<\/strong> – for fetching link suggestions for posts and pages<\/li>\n<\/ol>\n

    In short, every website has some Cronjobs running in the background.<\/p>\n

    Want to know which Cronjobs are active?<\/p>\n

    Viewing and Managing Cronjobs in WordPress<\/h2>\n

    The WP Crontrol<\/a> plugin allows you to see the active Cronjobs in your WordPress website.<\/p>\n

    You can view active Cronjobs<\/strong> and update or delete them.
    \nAfter installing the plugin, you can find it in your Admin \u00bb Tools \u00bb Cron Events.<\/p>\n

    \"cron<\/h2>\n

    Cronjobs and Hackers<\/h2>\n

    Hackers can use Cronjobs to perform certain tasks periodically.<\/strong>
    \nThat’s why it’s important to see which Cronjobs are active!<\/p>\n

    Consider the following malicious Cronjobs, for example:<\/p>\n

      \n
    1. A Cronjob that registers an administrator account<\/strong>.
      \nIf such a Cronjob runs every hour, you can delete whatever you want, but hackers will still find their way in.<\/li>\n
    2. A Cronjob that deletes your logs<\/strong>.
      \nThis allows a hacker to operate without leaving any traces.<\/li>\n
    3. A Cronjob that deletes accounts<\/strong>.
      \nIf your account is deleted, you won’t be able to manage the website, and the hacker will have control over it.<\/li>\n
    4. A Cronjob that regenerates your password<\/strong>.
      \nIt’s incredibly frustrating to receive a new password every time. You can do a reset, but having to do it every hour is not ideal.<\/li>\n
    5. Cronjobs for forwarding data<\/strong>.
      \nIf a task is set up to forward your and your users’ information every 5 minutes, a hacker will know about an order or website change faster than you do!<\/li>\n<\/ol>\n

       <\/p>\n","protected":false},"excerpt":{"rendered":"

      What a Cronjob is according to Wikipedia: A Cronjob or crontab is a Unix command that executes a program or script at a scheduled time. Cronjobs are used in Unix-like systems such as Linux, BSD, and Apple Macintosh. The word ‘cron’ comes from the English word chronograph, which is a type of stopwatch. What Cronjobs […]<\/p>\n","protected":false},"author":4,"featured_media":9571,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[212],"tags":[],"_links":{"self":[{"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/posts\/21476"}],"collection":[{"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/comments?post=21476"}],"version-history":[{"count":0,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/posts\/21476\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/media\/9571"}],"wp:attachment":[{"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/media?parent=21476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/categories?post=21476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpbeveiligen.nl\/wp-json\/wp\/v2\/tags?post=21476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}