I agree and I don't think we'll block all spam registrations and messages. However, I've identified a pattern for most of the spam registrations and messages this particular site gets and I'd like to target those to avoid captcha.
Anyway, I gave the Scheduled tasks a try, but they don't seem to be working via /cli/joomla.php. I set the tasks to run every minute (for testing purposes)
When running the Cron
/usr/bin/ea-php83 /path/to/joomla/cli/joomla.php scheduler:run --all --vvv
I get the following output:
Content-type: text/html; charset=UTF-8
I tried with and without the verbose and tried with the id=7 as well.
It works properly using Web Cron, but your documentation says it's better to use Cron. My Webcron line (it was failing without the --user-agent)
wget -qO- --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" "https://mysite.com/component/ajax/?plugin=RunSchedulerWebcron&group=system&format=json&hash=myhash"
That being said, it doesn't seem to be a problem with any of the Admin Tools Tasks because I have tried with core tasks and it doesn't matter how many tasks I have enabled. Only one or none I get the same results. I know this is not an Admin Tools problem, but if you know how to fix it I'd appreciate it if you could share your knowledge.
This site was migrated from Joomla 3 to 5. Database tables are up to date.
Have a great weekend.