How to Block Cron.php in Drupal
The Drupal cron function is necessary for Drupal to re-index itself, clear routine error logs and perform basic site maintenance. Ideally, you'll set cron to run every few days at the latest. If you are trying to make specific modifications to your website, you may want to disable the cron function temporarily. You can do this by adjusting the file permissions of the "Cron.php" file on your server. Once you are finished, you'll want to re-enable cron immediately so you can run the function on your site.
Instructions
-
-
1
Sign in to your Web host's online file manager to access the files on your server. Navigate to the folder your Drupal installation profile resides in.
-
2
Browse through the files until you find "Cron.php." It is in the root installation folder, not a subfolder. Click on it to select it.
-
-
3
Click the "Permissions" tab, or right-click the file and select "File Permissions."
-
4
Set the numeric permissions value to "400," which will block anyone from executing, reading or writing to the file, other than yourself. You can also manually deselect the "Read," "Write" and "Execute" boxes.
-
5
Save the changes to the file. When you are ready to re-enable the "Cron.php" file, set the permissions to "779."
-
1
Tips & Warnings
If you simply want to stop cron from running automatically, click on "Configuration" in the Drupal dashboard, and then click on "Cron." Select "Never" beneath "Run cron automatically." Using this method, you'll need to run cron manually by clicking "Run Cron" on the page.