Hi,
On our site the user action logs table is growing quickly, so we set up a Joomla native scheduled task of the type "Delete ActionLogs". However, we felt that the lazy scheduler trigger was, indeed, a bit lazy so we wanted to trigger the task with a cron job from the hosting environment to ensure that it will run on time. The cron command as copied from the Joomla options for the scheduled tasks looks like this:
wget 'https://ourdomain.com/component/ajax/?plugin=RunSchedulerWebcron&group=system&format=json&hash=...'
Then we noticed that this command is blocked by our .htaccess file which was made using AdminTools > .htaccess Maker, resulting in the message: ERROR 403: Forbidden.
When reverting to the Joomla default .htaccess the cron is not blocked.
Would it be safe to grant access to the path /component/ajax in our .htaccess, e.g. under "Allow direct access, including .php files, to these directories" in .htaccess Maker? Or do we need to take additional measures in order to keep it as safe as possible?
Kind regards