Title: Block wp-cron.php issue
Last modified: December 16, 2019

---

# Block wp-cron.php issue

 *  Resolved [resurehtonatey](https://wordpress.org/support/users/resurehtonatey/)
 * (@resurehtonatey)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/)
 * Hello,
 * If I use option to block access to wp-cron.php file:
 * > The file wp-cron.php is the portion of WordPress that handles scheduled events
   > within a WordPress site. If remote cron calls not being used this can be set
   > to Yes..
   >  Site domain rezolved to IP IP If blocked, all internal calls to cron
   > will continue to run fine. All calls from a different IP are blocked, including
   > direct calls.
 * It add this directives:
 *     ```
       RewriteCond %{ENV:REDIRECT_STATUS} ^$
       RewriteCond %{REMOTE_ADDR} !^PART\.OF\.THE\.IP$
       RewriteRule ^wp-cron.php /index.php?wph-throw-404 [L]
       ```
   
 * Other rewrite rules seems disturbed and:
    * WP-Cron Events:
 * > There was a problem spawning a call to the WP-Cron system on your site. This
   > means WP-Cron events on your site may not work. The problem was:
   >  Unexpected
   > HTTP response code: 404
    -  This topic was modified 6 years, 5 months ago by [resurehtonatey](https://wordpress.org/support/users/resurehtonatey/).

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12243324)
 * Hi,
    Thanks for your feedback. This should work fine, what server type you run?
   Does your site run behind a proxy? Do you use a CDN service? Does the Cron call
   is actually internally or being triggered remotely? The message does not appear
   to be created by WordPress core, which plugin is that?
 * Thanks
 *  Thread Starter [resurehtonatey](https://wordpress.org/support/users/resurehtonatey/)
 * (@resurehtonatey)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12245665)
 * Hi,
 * For details:
    * on a shared server * no proxy * no CDN * internally * personal
   installation
 * Sorry, I installed this plugin to see and mangage crons: [https://wordpress.org/plugins/wp-crontrol/](https://wordpress.org/plugins/wp-crontrol/)
 * Thanks
 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12246580)
 * Hi,
    Do you use Single or MultiSite environment? Disabling other plugins but 
   WP Hide and WP Crontrol makes a difference?
 * Thanks
 *  Thread Starter [resurehtonatey](https://wordpress.org/support/users/resurehtonatey/)
 * (@resurehtonatey)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12258314)
 * Hi,
 * Single Site.
    I will try soon. Note: label in front of the wp-cron option is 
   incorrect.
 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12258428)
 * Hi,
    I’am not able to replicate the issue on this side. If still not working 
   after disabling other plugins, can you please get in touch through contact at
   plugin website and i’ll assist further.
 * Can you be more specific upon the label issue?
 * Thanks
 *  Thread Starter [resurehtonatey](https://wordpress.org/support/users/resurehtonatey/)
 * (@resurehtonatey)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12264260)
 * Hi,
    So… I disabled and re-enabled one by one plugin with _Block wp-cron.php_
   option enabled. No more alert for WP-Cron Events
 * About the label issue:
 * > Help – Block **wp-activate**.php
   > The file wp-cron.php is the portion of WordPress that handles scheduled events
   > within a WordPress site. If remote cron calls not being used this can be set
   > to Yes..
 * I close the issue soon, thanks for your reactivity
 * edit: issue reappears, a plugin should interferes
    -  This reply was modified 6 years, 5 months ago by [resurehtonatey](https://wordpress.org/support/users/resurehtonatey/).
    -  This reply was modified 6 years, 5 months ago by [resurehtonatey](https://wordpress.org/support/users/resurehtonatey/).
 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12264364)
 * Hi,
    Just to confirm, there was another plugin which created the issue?
 * I see what you mean, the label will be updated in the next plugin release.
 * Thanks
 *  Thread Starter [resurehtonatey](https://wordpress.org/support/users/resurehtonatey/)
 * (@resurehtonatey)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12265328)
 * Hi,
 * So…
    After logs consultations. I see another IP from my provider’s cluster appears
   often. I add it in htaccess rules:
 *     ```
       RewriteCond %{REMOTE_ADDR} !^MY\SERVER\IP$
       RewriteCond %{REMOTE_ADDR} !^ANOTHER\CLUSTER\IP$
       RewriteRule ^wp-cron.php /index.php?wph-throw-404 [L]
       ```
   
 * And it works =o
 * Maybe the web application firewall from the infrastructure or anything else.
 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12265610)
 * Hi,
    That’s correct, only the IP which is being reported by by the server through
   php is being white-listed. Your solution ( the extra conditional in rewrite) 
   is correct.
 * Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Block wp-cron.php issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-hide-security-enhancer/assets/icon-256x256.png?rev=2937681)
 * [WP Hide & Security Enhancer](https://wordpress.org/plugins/wp-hide-security-enhancer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hide-security-enhancer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hide-security-enhancer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hide-security-enhancer/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Maya](https://wordpress.org/support/users/tdgu/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/block-wp-cron-php-issue/#post-12265610)
 * Status: resolved