User Tools

Site Tools


wget:mask_user_agent_and_use_wget_like_a_browser

This is an old revision of the document!


wget - Mask User Agent and use wget like a Browser

Some websites can disallow you to download its page by identifying that the user agent is not a browser. So you can mask the user agent by using the -–user-agent options and show wget like a browser as shown below.

wget --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3" URL-TO-DOWNLOAD
wget/mask_user_agent_and_use_wget_like_a_browser.1468105807.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki