How to use wget through a proxy connection

This tutorial is for using Linux wget using a proxy connection.

Procedure:

1. Change wgetrc file. Try changing this file using your favourite text editor. I am using nano editor:

sudo nano /etc/wgetrc

2. Search http_proxy tag in the file.

http_proxy=http://proxy.yoyodyne.com:18023/

erase “#” sign and change http_proxy=http://proxy.yoyodyne.com:18023/ with your proxy URL and proxy port, example:

http_proxy=http://127.0.0.1:9050

3. Search use_proxy tag and erase “#” sign.

4. Save file. You can download now with the command normally:

wget http://www.blgr.info

Just make sure to save a backup copy of your wgetrc file in case you want to revert to the original configuration.

Leave a Reply

Your email address will not be published. Required fields are marked *