Using wget bypass htaccess username password 401 authorization

Here is the command to access a website where using htaccess username and password to protect itself.

wget -O /dev/null --user="_any_htaccess_user_name_" --password="_htaccess_user_password_"


By the way, you can use wget to simulate a visitor access to website.  Often time it is used to trigger a cron job.

Another resource:

Hope it helps someone.


Popular posts from this blog

TCPDF How to show/display Chinese Character?

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services

How to fix fancy box/Easy Fancybox scroll not work in mobile