Cronjob with password protected site (.htaccess)

こ雲淡風輕ζ 提交于 2019-12-04 04:03:51

You are making a small mistake.

keep the http:// before the url.

You have


Change it to

Hope that works.

wget --user admin --password pass

Opens every minutes a website with a htaccess password

*/1 * * * *  wget -O /dev/null --user admin --password pass "" > /dev/null 2>&1

Add auth parameter to url. This works for me when call url directly.


I don't know how much secure it is...