diff --git a/src/mibew/.htaccess b/src/mibew/.htaccess
index 8a26f44f..1644ecb0 100644
--- a/src/mibew/.htaccess
+++ b/src/mibew/.htaccess
@@ -4,6 +4,11 @@ Options -Indexes
# Follow symbolic links in the directory
Options +FollowSymLinks
+
+ # Forbid apache to guess file extensions
+ Options -MultiViews
+
+
# Disable mod_security for Apache 1.x
SecFilterEngine Off
@@ -51,3 +56,8 @@ Options +FollowSymLinks
Deny from all
+
+# Deny access to CLI cron worker from the outside
+
+ Deny from all
+
diff --git a/src/mibew/cron.php b/src/mibew/cron.php
new file mode 100644
index 00000000..6793bcc8
--- /dev/null
+++ b/src/mibew/cron.php
@@ -0,0 +1,44 @@
+setOption('path', MIBEW_FS_ROOT . '/cache/stash');
+
+// Do the job.
+$worker = new CronWorker($cache_factory->getCache());
+$success = $worker->run();
+
+if ($success) {
+ echo("All cron jobs done\n");
+} else {
+ echo("Cron job failed. Here are the errors:\n");
+ foreach ($worker->getErrors() as $error) {
+ echo(' ' . $error . "\n");
+ }
+}