• Hello,

    I read everywhere that people disable automatic cron with

    define(‘DISABLE_WP_CRON’. true);
    (be careful, define(‘DISABLE_WP_CRON’. ‘true’); IS INCORRECT)

    But at the end, even if you disable it, bots or anybody can run it by visiting this page:
    wp-cron.php

    So is there any solution to stop this script to run totally even if someone visits this page ? yourdomain.com/wp-cron.php

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi @makeonlineshops

    One way I can think of would be by restricting file access.

    Thread Starter makeonlineshops

    (@makeonlineshops)

    Thank you, so I can put this in .htaccess and nobody will be able to run the file ?

    I think all .pho files should be blocked by default on any wordpress install.

    I now understand why so many people are hacked ! But I guess that it’s a good business to clean all these hacked installs…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable wp-cron.php even when someone visits the page ?’ is closed to new replies.