User Tools

Site Tools


ubuntu:wget:mask_user_agent_and_use_wget_like_a_browser

Ubuntu - 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
ubuntu/wget/mask_user_agent_and_use_wget_like_a_browser.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki